/** * 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')); }
/** * 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_filter('add_post_metadata', array($this, 'check_previous_meta'), 10, 5); add_action('import_end', array($this, 'after_wp_importer')); $this->process_imports(); }
/** * Constructor. Hooks all interactions to initialize the class. * * @since 2.2.0 */ public function __construct() { self::$instance = $this; // If woocommerce install so content with woocommerce should be install... if (class_exists('Woocommerce')) { $this->content_demo = $this->demo_files_path . $this->content_demo_file_name_woocommerce; } else { $this->content_demo = $this->demo_files_path . $this->content_demo_file_name; } add_action('admin_menu', array($this, 'add_admin')); }
/** * 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; /*@todo: changed path of widgets and demo file for same in all demos $this->content_demo = $this->demo_files_path . $this->content_demo_file_name; */ $this->content_demo = $this->mango_demo_content_path . $this->content_demo_file_name; add_filter('add_post_metadata', array($this, 'check_previous_meta'), 10, 5); add_action('import_end', array($this, 'after_wp_importer')); $this->process_imports(); }
/** * Constructor. Hooks all interactions to initialize the class. * * @since 2.2.0 */ public function __construct($theme_options_name = null, $theme_options_file = null, $widgets_file = null, $content_file = null, $menus = array(), $import_content = true, $import_widgets = true, $import_settings = true) { self::$instance = $this; $this->theme_options_name = $theme_options_name; $this->theme_options_file = $theme_options_file; $this->widgets_file = $widgets_file; $this->content_file = $content_file; $this->menus = $menus; $this->import_content = $import_content; $this->import_widgets = $import_widgets; $this->import_settings = $import_settings; $this->demo_installer(); }
/** * 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; $this->theme_options_file_rtl = $this->demo_files_path . $this->theme_options_rtl_file_name; $this->widgets_rtl = $this->demo_files_path . $this->widgets_rtl_file_name; $this->content_demo_rtl = $this->demo_files_path . $this->content_demo_rtl_file_name; //add_action( 'admin_menu', array($this, 'add_admin') ); add_action('wp_ajax_demo_installer', array($this, 'run_installer')); add_action('wp_ajax_nopriv_demo_installer', 'run_installer'); add_action('admin_enqueue_scripts', array($this, 'add_scripts')); }
/** * Constructor. Hooks all interactions to initialize the class. * * @since 2.2.0 */ public function __construct() { if (isset($_POST['be_demo_file']) && !empty($_POST['be_demo_file'])) { $demo = $_POST['be_demo_file'] . '/'; } else { $demo = 'demo1/'; } self::$instance = $this; $this->demo_files_path = $this->demo_files_path . $demo; $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')); }
/** * Constructor. Hooks all interactions to initialize the class. * * @since 0.0.2 */ public function __construct() { self::$instance = $this; $this->demo_files_path = apply_filters('radium_theme_importer_demo_files_path', $this->demo_files_path); $this->theme_options_file = apply_filters('radium_theme_importer_theme_options_file', $this->demo_files_path . $this->theme_options_file_name); $this->widgets = apply_filters('radium_theme_importer_widgets_file', $this->demo_files_path . $this->widgets_file_name); $this->content_demo = apply_filters('radium_theme_importer_content_demo_file', $this->demo_files_path . $this->content_demo_file_name); $this->imported_demos = get_option('radium_imported_demo'); if ($this->theme_options_framework == 'optiontree') { $this->theme_option_name = ot_options_id(); } if ($this->add_admin_menu) { add_action('admin_menu', array($this, 'add_admin')); } add_filter('add_post_metadata', array($this, 'check_previous_meta'), 10, 5); add_action('radium_import_end', array($this, 'after_wp_importer')); }