Exemplo n.º 1
0
 public function __construct($page = false, $title = false)
 {
     $page = $page ? $page : 'awpcp-admin-listings';
     $title = $title ? $title : awpcp_admin_page_title(__('Manage Listings', 'AWPCP'));
     parent::__construct($page, $title, __('Listings', 'AWPCP'));
     $this->table = null;
     add_action('wp_ajax_awpcp-listings-delete-ad', array($this, 'ajax'));
 }
Exemplo n.º 2
0
 public function __construct()
 {
     $page = 'awpcp-admin-fees';
     $title = awpcp_admin_page_title(__('Manage Listing Fees', 'AWPCP'));
     parent::__construct($page, $title, __('Fees', 'AWPCP'));
     add_action('wp_ajax_awpcp-fees-add', array($this, 'ajax'));
     add_action('wp_ajax_awpcp-fees-edit', array($this, 'ajax'));
     add_action('wp_ajax_awpcp-fees-delete', array($this, 'ajax'));
 }
 public function __construct()
 {
     $page = 'awpcp-admin-credit-plans';
     $title = awpcp_admin_page_title(__('Manage Credit Plans', 'AWPCP'));
     $menu = __('Credit Plans', 'AWPCP');
     parent::__construct($page, $title, $menu);
     $this->table = null;
     add_action('wp_ajax_awpcp-credit-plans-add', array($this, 'ajax'));
     add_action('wp_ajax_awpcp-credit-plans-edit', array($this, 'ajax'));
     add_action('wp_ajax_awpcp-credit-plans-delete', array($this, 'ajax'));
 }
 public function __construct($page, $title, $form_fields, $table_factory)
 {
     parent::__construct($page, $title, _x('Form Fields', 'sub menu title', 'AWPCP'));
     $this->form_fields = $form_fields;
     $this->table_factory = $table_factory;
 }