Exemplo n.º 1
0
 public function __construct($post_types, $payment = false)
 {
     parent::__construct();
     if (isset($_REQUEST['page']) && $_REQUEST['page'] == 'et-overview') {
         $this->add_action('admin_enqueue_scripts', 'overview_scripts');
         $this->add_action('admin_print_styles', 'overview_styles');
     }
     $this->post_types = $post_types;
     $this->payment = $payment;
 }
Exemplo n.º 2
0
 function __construct($args, $pages)
 {
     /**
      * add action to add submenu
      * callback sub_menu_page in parent class AE_Page
      */
     $this->add_action('admin_menu', 'sub_menu_page');
     $this->args = $args['args'];
     // page container
     $this->container = $args['container'];
     // page header
     if (isset($args['header'])) {
         $this->header = $args['header'];
     }
     // all pages list
     $this->pages = $pages;
     self::$instance = $this;
     parent::__construct();
 }