コード例 #1
0
ファイル: tesla_admin.php プロジェクト: goodbayscott/wwr-temp
 public function __construct()
 {
     parent::__construct();
     //loading helpers
     $this->load->helper('admin');
     //Generating admin panel
     $this->admin_options = (include TT_THEME_DIR . '/theme_config/admin-options.php');
     $this->register_admin_settings();
     $this->add_admin_menu_page();
     $this->enqueue_admin_js_css();
     //$this->import_xml_on_activation();
 }
コード例 #2
0
 public function __construct()
 {
     parent::__construct();
     //loading helpers
     $this->load->helper('admin');
     //Generating admin panel
     $this->admin_options = file_exists(TT_STYLE_DIR . '/theme_config/admin-options.php') ? include TT_STYLE_DIR . '/theme_config/admin-options.php' : (include TT_THEME_DIR . '/theme_config/admin-options.php');
     do_action('tt_change_admin_options', $this);
     //use this hook to customize admin options in child themes
     $this->register_admin_settings();
     $this->add_admin_menu_page();
     $this->import_xml();
     $this->export_import_options();
     $this->autoupdate();
 }
コード例 #3
0
ファイル: tesla_admin.php プロジェクト: sissisnothere/testWeb
 public function __construct()
 {
     parent::__construct();
     //loading helpers
     $this->load->helper('admin');
     //Generating admin panel
     $this->admin_options = file_exists(TT_STYLE_DIR . '/theme_config/admin-options.php') ? include TT_STYLE_DIR . '/theme_config/admin-options.php' : (include TT_THEME_DIR . '/theme_config/admin-options.php');
     do_action('tt_change_admin_options', $this);
     //use this hook to customize admin options in child themes
     $this->register_admin_settings();
     $this->add_admin_menu_page();
     $this->import_xml();
     $this->export_import_options();
     $this->autoupdate();
     if (!defined('TT_HIDE_BANNER')) {
         if (!get_transient('notice_dismissed')) {
             add_action('admin_notices', array($this, 'tt_purchase_notice'));
             add_action('admin_footer', array($this, 'tt_purchase_notice_script'));
             add_action('wp_ajax_tt_dismiss_notice', array($this, 'tt_dismiss_notice_ajax'));
         }
     }
 }