_x('News', 'post type general name'), 'singular_name' => _x('News', 'post type singular name'), 'add_new' => _x('Add news', 'product item'), 'add_new_item' => __('Add news'), 'edit_item' => __('Edit news'), 'new_item' => __('New news'), 'view_item' => __('View news'), 'search_items' => __('Find news'), 'not_found' => __('No news found'), 'not_found_in_trash' => __('No news found in recycle bin'), 'parent_item_colon' => '' ); $args = array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_in_nav_menus' => false, 'show_ui' => true, 'query_var' => true, 'rewrite' => true, 'capability_type' => 'post', 'hierarchical' => false, 'menu_position' => null, 'supports' => array('title','editor','excerpt'), ); register_post_type('news', $args ); $labels = array( 'name' => _x('We33 News', 'post type general name'), 'singular_name' => _x('W33 News', 'post type singular name'), 'add_new' => _x('Add news', 'product item'), 'add_new_item' => __('Add news'), 'edit_item' => __('Edit news'), 'new_item' => __('New news'), 'view_item' => __('View news'), 'search_items' => __('Find news'), 'not_found' => __('No news found'), 'not_found_in_trash' => __('No news found in recycle bin'), 'parent_item_colon' => '' ); $args = array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_in_nav_menus' => false, 'show_ui' => true, 'query_var' => true, 'rewrite' => true, 'capability_type' => 'post', 'hierarchical' => false, 'menu_position' => null, 'supports' => array('title','editor','excerpt'), ); register_post_type('we33_news', $args ); $labels = array( 'name' => _x('Nobugdetproject News', 'post type general name'), 'singular_name' => _x('Nobugdetproject News', 'post type singular name'), 'add_new' => _x('Add news', 'product item'), 'add_new_item' => __('Add news'), 'edit_item' => __('Edit news'), 'new_item' => __('New news'), 'view_item' => __('View news'), 'search_items' => __('Find news'), 'not_found' => __('No news found'), 'not_found_in_trash' => __('No news found in recycle bin'), 'parent_item_colon' => '' ); $args = array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_in_nav_menus' => false, 'show_ui' => true, 'query_var' => true, 'rewrite' => true, 'capability_type' => 'post', 'hierarchical' => false, 'menu_position' => null, 'supports' => array('title','editor','excerpt'), ); register_post_type('nobugdetproject_news', $args ); $labels = array( 'name' => _x('Exhibitions', 'post type general name'), 'singular_name' => _x('Exhibitions', 'post type singular name'), 'add_new' => _x('Add exhibition', 'product item'), 'add_new_item' => __('Add exhibition'), 'edit_item' => __('Edit exhibition'), 'new_item' => __('New exhibition'), 'view_item' => __('View exhibition'), 'search_items' => __('Find exhibition'), 'not_found' => __('No exhibition found'), 'not_found_in_trash' => __('No exhibition found in recycle bin'), 'parent_item_colon' => '' ); $args = array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_in_nav_menus' => false, 'show_ui' => true, 'query_var' => true, 'rewrite' => true, 'capability_type' => 'post', 'hierarchical' => false, 'menu_position' => null, 'supports' => array('title','editor','excerpt'), 'taxonomies' => array('post_tag') ); register_post_type('exhibition', $args ); $labels = array( 'name' => _x('Artists', 'post type general name'), 'singular_name' => _x('Artist', 'post type singular name'), 'add_new' => _x('Add artist', 'product item'), 'add_new_item' => __('Add artist'), 'edit_item' => __('Edit artist'), 'new_item' => __('New artist'), 'view_item' => __('View artist'), 'search_items' => __('Find artist'), 'not_found' => __('No artist found'), 'not_found_in_trash' => __('No artist found in recycle bin'), 'parent_item_colon' => '' ); $args = array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_in_nav_menus' => true, 'show_ui' => true, 'query_var' => true, 'rewrite' => true, 'capability_type' => 'post', 'hierarchical' => false, 'menu_position' => null, 'supports' => array('title','editor','excerpt'), ); register_post_type('artist', $args ); register_taxonomy('works', array("artist"), array( 'hierarchical' => true, 'label' =>'Work categories',"rewrite" => false) ); register_taxonomy('portfolio', array("artist"), array( 'hierarchical' => true, 'label' =>'Portfolio') ); $labels = array( 'name' => _x('Products', 'post type general name'), 'singular_name' => _x('Product Item', 'post type singular name'), 'add_new' => _x('Add product', 'product item'), 'add_new_item' => __('Add product'), 'edit_item' => __('Edit product'), 'new_item' => __('New product'), 'view_item' => __('View product'), 'search_items' => __('Find product'), 'not_found' => __('No product found'), 'not_found_in_trash' => __('No product found in recycle bin'), 'parent_item_colon' => '' ); $args = array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_in_nav_menus' => false, 'show_ui' => true, 'query_var' => true, 'rewrite' => true, 'capability_type' => 'post', 'hierarchical' => false, 'menu_position' => null, 'supports' => array('title','editor','excerpt'), ); register_post_type( 'product' , $args ); register_taxonomy('product_categories', array("product"), array( 'hierarchical' => true, 'label' =>'Categories') ); register_taxonomy("eshop_medium", array("product"), array("hierarchical" => true, "label" => "Medium", "singular_label" => "Medium", "rewrite" => true, "show_in_nav_menus" => false)); $labels = array( 'name' => _x('Payments', 'post type general name'), 'singular_name' => _x('Payments', 'post type singular name'), 'search_items' => __('Find payment'), 'add_new' => _x('Add new payment', 'product item'), 'add_new_item' => __('Add new payment'), 'edit_item' => __('Edit payment'), 'new_item' => __('╬Łew payment'), 'view_item' => __('Find payment'), 'not_found' => __('No payment method found'), 'not_found_in_trash' => __('No payment method found in recycle bin'), 'parent_item_colon' => '' ); $args = array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_in_nav_menus' => false, 'show_ui' => true, 'query_var' => true, '_builtin' => false, 'rewrite' => true, 'capability_type' => 'post', 'hierarchical' => false, 'menu_position' => null, 'supports' => array('title','editor') ); register_post_type( 'eshoppayment' , $args ); //include("eshop/discount_coupon.php"); //include("eshop/product_availability.php"); //include("eshop/eshop_customers.php"); //include("eshop/eshop_policy.php"); //include("eshop/eshop_orders.php"); } function cms_eshop_add_pages(){ $plugin_page=add_object_page('Eshop', 'Eshop', 10, 'eshop_orders', eshop_orders); $find_invalid_sales = mysql_query("SELECT * FROM gr_eshop_orders where validated!='1'") or die (mysql_error()); if (mysql_num_rows($find_invalid_sales) > 0) { add_submenu_page('eshop_orders', 'Orders', 'Orders ' . mysql_num_rows($find_invalid_sales) . '', 10, 'eshop_orders' , eshop_orders); } else { add_submenu_page('eshop_orders', 'Orders', 'Orders', 10, 'eshop_orders' , eshop_orders); } add_submenu_page('eshop_orders', 'Customers', 'Customers', 10, 'eshop_customers' , eshop_customers); add_submenu_page('eshop_orders', 'Discount coupons', 'Discount coupons', 10, 'eshop_disc_coupons' , eshop_disc_coupons); add_submenu_page('eshop_orders', 'Policy', 'Policy', 10 , 'eshop_policy' , eshop_policy); } ?>