示例#1
0
 /**
  * Constructor. Hooks all interactions to initialize the class.
  *
  * @since 2.2.0
  */
 public function __construct()
 {
     self::$instance = $this;
     $this->theme_options_file = $this->demo_files_path . $this->theme_options_file_name;
     $this->widgets = $this->demo_files_path . $this->widgets_file_name;
     $this->content_demo = $this->demo_files_path . $this->content_demo_file_name;
     add_action('admin_menu', array($this, 'add_admin'));
 }
示例#2
0
 /**
  * Constructor. Hooks all interactions to initialize the class.
  *
  * @since 0.0.1
  */
 public function __construct()
 {
     $this->demo_files_path = dirname(__FILE__) . '/demo-files/';
     self::$instance = $this;
     parent::__construct();
 }