Esempio n. 1
0
 /**
  * Constructor. Hooks all interactions to initialize the class.
  *
  * @since 0.0.1
  */
 public function __construct()
 {
     $upload_dir = wp_upload_dir();
     $this->demo_files_path = trailingslashit($upload_dir['path']);
     self::$instance = $this;
     parent::__construct();
 }
Esempio n. 2
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'));
 }
 /**
  * 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();
 }
Esempio n. 4
0
 /**
  * Constructor. Hooks all interactions to initialize the class.
  *
  * @since 0.0.1
  */
 public function __construct($parent, $redux_instance)
 {
     $this->parent = $parent;
     $this->ReduxParent = $redux_instance;
     $this->active_import = $this->parent->active_import;
     $this->active_import_id = $this->parent->active_import_id;
     $this->initSettings();
     self::$instance = $this;
     parent::__construct();
 }
Esempio n. 5
0
 /**
  * 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();
 }
Esempio n. 7
0
 /**
  * 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();
 }
Esempio n. 8
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;
     $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'));
 }
Esempio n. 9
0
 /**
  * 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'));
 }
Esempio n. 10
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();
 }
Esempio n. 11
0
 /**
  * Constructor. Hooks all interactions to initialize the class.
  *
  * @since 0.0.1
  */
 public function __construct()
 {
     $this->demo_files_path = get_template_directory() . '/includes/radium-one-click-demo-install/demo-files/';
     //can
     self::$instance = $this;
     parent::__construct();
 }
Esempio n. 12
0
 /**
  * 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'));
 }
Esempio n. 13
0
 /**
  * Constructor. Hooks all interactions to initialize the class.
  *
  * @since 0.0.1
  */
 public function __construct()
 {
     $this->demo_files_path = ST_THEME_DIR . '/dummy-data/';
     self::$instance = $this;
     parent::__construct();
 }
Esempio n. 14
0
 /**
  * Constructor. Hooks all interactions to initialize the class.
  *
  * @since 0.0.1
  */
 public function __construct()
 {
     $this->demo_files_path = get_template_directory_uri() . '/core/one-click-demo/demo-files/';
     //can
     self::$instance = $this;
     parent::__construct();
 }
Esempio n. 15
0
 /**
  * Constructor. Hooks all interactions to initialize the class.
  *
  * @since 0.0.1
  */
 public function __construct()
 {
     $this->demo_files_path = get_template_directory() . '/demo-content/';
     self::$instance = $this;
     parent::__construct();
 }
Esempio n. 16
0
 /**
  * Constructor. Hooks all interactions to initialize the class.
  *
  * @since 0.0.1
  */
 public function __construct()
 {
     $this->demo_files_path = get_template_directory() . '/lib/one-click-install/demo-data/';
     //can
     self::$instance = $this;
     parent::__construct();
 }