/** * Registers the report columns to the WP screen * * @author Jonathan Davis * @since 1.3 * * @return void **/ public function screencolumns() { ShoppUI::register_column_headers($this->screen, $this->columns()); }
/** * Provides overall layout for the order manager interface * * Makes use of WordPress postboxes to generate panels (box) content * containers that are customizable with drag & drop, collapsable, and * can be toggled to be hidden or visible in the interface. * * @author Jonathan Davis * @return **/ public function layout() { $Shopp = Shopp::object(); $Admin =& $Shopp->Flow->Admin; ShoppUI::register_column_headers($this->screen, apply_filters('shopp_order_manager_columns', array('items' => __('Items', 'Shopp'), 'qty' => __('Quantity', 'Shopp'), 'price' => __('Price', 'Shopp'), 'total' => __('Total', 'Shopp')))); include $this->ui('events.php'); include $this->ui('ui.php'); do_action('shopp_order_manager_layout'); }
public function images_ui() { ShoppUI::register_column_headers('shopp_page_shopp-settings-images', array('cb' => '<input type="checkbox" />', 'name' => __('Name', 'Shopp'), 'dimensions' => __('Dimensions', 'Shopp'), 'fit' => __('Fit', 'Shopp'), 'quality' => __('Quality', 'Shopp'), 'sharpness' => __('Sharpness', 'Shopp'))); }
/** * Registers the column headers for the product list manager * * @author Jonathan Davis * @return void **/ public function columns() { $headings = array('default' => array('cb' => '<input type="checkbox" />', 'name' => __('Name', 'Shopp'), 'category' => __('Category', 'Shopp'), 'price' => __('Price', 'Shopp'), 'inventory' => __('Inventory', 'Shopp'), 'featured' => __('Featured', 'Shopp'), 'date' => __('Date', 'Shopp')), 'inventory' => array('inventory' => __('Inventory', 'Shopp'), 'sku' => __('SKU', 'Shopp'), 'name' => __('Name', 'Shopp')), 'bestselling' => array('cb' => '<input type="checkbox" />', 'name' => __('Name', 'Shopp'), 'sold' => __('Sold', 'Shopp'), 'gross' => __('Sales', 'Shopp'), 'price' => __('Price', 'Shopp'), 'inventory' => __('Inventory', 'Shopp'), 'featured' => __('Featured', 'Shopp'), 'date' => __('Date', 'Shopp'))); $columns = isset($headings[$this->view]) ? $headings[$this->view] : $headings['default']; // Remove inventory column if inventory tracking is disabled if (!shopp_setting_enabled('inventory')) { unset($columns['inventory']); } // Remove category column from the "trash" view if ('trash' == $this->view) { unset($columns['category']); } ShoppUI::register_column_headers('toplevel_page_shopp-products', apply_filters('shopp_manage_product_columns', $columns)); }
/** * Registers column headings for the category list manager * * @author Jonathan Davis * @since 1.0 * @return void **/ public function layout() { $columns = array('cb' => '<input type="checkbox" />', 'name' => Shopp::__('Name'), 'slug' => Shopp::__('Slug'), 'products' => Shopp::__('Products'), 'templates' => Shopp::__('Templates'), 'menus' => Shopp::__('Menus')); ShoppUI::register_column_headers($this->id, apply_filters('shopp_manage_category_columns', $columns)); }
public function layout() { $Purchase = ShoppPurchase(); ShoppUI::register_column_headers($this->id, apply_filters('shopp_order_manager_columns', array('items' => __('Items', 'Shopp'), 'qty' => __('Quantity', 'Shopp'), 'price' => __('Price', 'Shopp'), 'total' => __('Total', 'Shopp')))); new ShoppAdminOrderContactBox($this->id, 'topside', 'core', array('Purchase' => $Purchase)); new ShoppAdminOrderBillingAddressBox($this->id, 'topic', 'core', array('Purchase' => $Purchase)); new ShoppAdminOrderShippingAddressBox($this->id, 'topsider', 'core', array('Purchase' => $Purchase)); new ShoppAdminOrderManageBox($this->id, 'normal', 'core', array('Purchase' => $Purchase, 'Gateway' => $Purchase->gateway())); if (isset($Purchase->data) && '' != join('', (array) $Purchase->data) || apply_filters('shopp_orderui_show_orderdata', false)) { new ShoppAdminOrderDataBox($this->id, 'normal', 'core', array('Purchase' => $Purchase)); } if (count($Purchase->events) > 0) { new ShoppAdminOrderHistoryBox($this->id, 'normal', 'core', array('Purchase' => $Purchase)); } new ShoppAdminOrderNotesBox($this->id, 'normal', 'core', array('Purchase' => $Purchase)); do_action('shopp_order_new_layout'); }