public function __construct($mainFilepath, $view = true) { self::addMenuPage('Revolution Slider', "adminPages"); if ($view) { parent::__construct($mainFilepath, $this, self::DEFAULT_VIEW); } else { parent::__construct($mainFilepath, $this, ''); } GlobalsRevSlider::$table_sliders = self::$table_prefix . GlobalsRevSlider::TABLE_SLIDERS_NAME; GlobalsRevSlider::$table_slides = self::$table_prefix . GlobalsRevSlider::TABLE_SLIDES_NAME; GlobalsRevSlider::$table_static_slides = self::$table_prefix . GlobalsRevSlider::TABLE_STATIC_SLIDES_NAME; GlobalsRevSlider::$table_settings = self::$table_prefix . GlobalsRevSlider::TABLE_SETTINGS_NAME; GlobalsRevSlider::$table_css = self::$table_prefix . GlobalsRevSlider::TABLE_CSS_NAME; GlobalsRevSlider::$table_layer_anims = self::$table_prefix . GlobalsRevSlider::TABLE_LAYER_ANIMS_NAME; GlobalsRevSlider::$filepath_backup = self::$path_plugin . "backup/"; GlobalsRevSlider::$filepath_captions = self::$path_plugin . "rs-plugin/css/captions.css"; $captionscssurl = rev_site_admin_url() . "?route=module/revslideropencart/getcaptionscss&token=" . sds_get_oc_token(); GlobalsRevSlider::$urlCaptionsCSS = $captionscssurl; GlobalsRevSlider::$urlStaticCaptionsCSS = self::$url_plugin . "rs-plugin/css/static-captions.css"; GlobalsRevSlider::$filepath_dynamic_captions = self::$path_plugin . "rs-plugin/css/dynamic-captions.css"; GlobalsRevSlider::$filepath_static_captions = self::$path_plugin . "rs-plugin/css/static-captions.css"; GlobalsRevSlider::$filepath_captions_original = self::$path_plugin . "rs-plugin/css/captions-original.css"; GlobalsRevSlider::$urlExportZip = self::$path_plugin . "export.zip"; GlobalsRevSlider::$urlExportZipurl = self::$url_plugin . "export.zip"; $this->init(); }
public function __construct($mainFilepath, $view = true) { self::addMenuPage('Revolution Slider', "adminPages"); if ($view) { parent::__construct($mainFilepath, $this, self::DEFAULT_VIEW); } else { parent::__construct($mainFilepath, $this, ''); //$this->addEvent_onActivate(); } //set table names GlobalsRevSlider::$table_sliders = self::$table_prefix . GlobalsRevSlider::TABLE_SLIDERS_NAME; GlobalsRevSlider::$table_slides = self::$table_prefix . GlobalsRevSlider::TABLE_SLIDES_NAME; GlobalsRevSlider::$table_static_slides = self::$table_prefix . GlobalsRevSlider::TABLE_STATIC_SLIDES_NAME; GlobalsRevSlider::$table_settings = self::$table_prefix . GlobalsRevSlider::TABLE_SETTINGS_NAME; GlobalsRevSlider::$table_css = self::$table_prefix . GlobalsRevSlider::TABLE_CSS_NAME; GlobalsRevSlider::$table_layer_anims = self::$table_prefix . GlobalsRevSlider::TABLE_LAYER_ANIMS_NAME; GlobalsRevSlider::$filepath_backup = self::$path_plugin . "backup/"; GlobalsRevSlider::$filepath_captions = self::$path_plugin . "rs-plugin/css/captions.css"; GlobalsRevSlider::$urlCaptionsCSS = Context::getContext()->link->getAdminLink('Revolutionslider_ajax') . '&revControllerAction=captions'; GlobalsRevSlider::$urlStaticCaptionsCSS = self::$url_plugin . "rs-plugin/css/static-captions.css"; GlobalsRevSlider::$filepath_dynamic_captions = self::$path_plugin . "rs-plugin/css/dynamic-captions.css"; GlobalsRevSlider::$filepath_static_captions = self::$path_plugin . "rs-plugin/css/static-captions.css"; GlobalsRevSlider::$filepath_captions_original = self::$path_plugin . "rs-plugin/css/captions-original.css"; GlobalsRevSlider::$urlExportZip = self::$path_plugin . "export.zip"; $this->init(); }
/** * * the constructor */ public function __construct($mainFilepath) { parent::__construct($mainFilepath, $this, self::DEFAULT_VIEW); //set table names GlobalsRevSlider::$table_sliders = self::$table_prefix . GlobalsRevSlider::TABLE_SLIDERS_NAME; GlobalsRevSlider::$table_slides = self::$table_prefix . GlobalsRevSlider::TABLE_SLIDES_NAME; GlobalsRevSlider::$filepath_captions = self::$path_plugin . "rs-plugin/css/captions.css"; GlobalsRevSlider::$filepath_captions_original = self::$path_plugin . "rs-plugin/css/captions-original.css"; GlobalsRevSlider::$urlCaptionsCSS = self::$url_plugin . "rs-plugin/css/captions.css"; $this->init(); }
/** * * the constructor */ public function __construct($mainFilepath) { parent::__construct($mainFilepath, $this, self::DEFAULT_VIEW); //print globals /* $class = new ReflectionClass('GlobalsRevSlider'); $arr = $class->getStaticProperties(); dmp($arr); */ $this->init(); self::onAddScripts(); self::adminPages(); }
/** * * the constructor */ public function __construct($mainFilepath) { parent::__construct($mainFilepath, $this, self::DEFAULT_VIEW); //set table names GlobalsRevSlider::$table_sliders = self::$table_prefix . GlobalsRevSlider::TABLE_SLIDERS_NAME; GlobalsRevSlider::$table_slides = self::$table_prefix . GlobalsRevSlider::TABLE_SLIDES_NAME; GlobalsRevSlider::$table_settings = self::$table_prefix . GlobalsRevSlider::TABLE_SETTINGS_NAME; GlobalsRevSlider::$table_css = self::$table_prefix . GlobalsRevSlider::TABLE_CSS_NAME; GlobalsRevSlider::$table_layer_anims = self::$table_prefix . GlobalsRevSlider::TABLE_LAYER_ANIMS_NAME; GlobalsRevSlider::$filepath_backup = self::$path_plugin . "backup/"; GlobalsRevSlider::$filepath_captions = self::$path_plugin . "rs-plugin/css/captions.css"; GlobalsRevSlider::$urlCaptionsCSS = self::$url_plugin . "rs-plugin/css/captions.php"; GlobalsRevSlider::$urlStaticCaptionsCSS = self::$url_plugin . "rs-plugin/css/static-captions.css"; GlobalsRevSlider::$filepath_dynamic_captions = self::$path_plugin . "rs-plugin/css/dynamic-captions.css"; GlobalsRevSlider::$filepath_static_captions = self::$path_plugin . "rs-plugin/css/static-captions.css"; GlobalsRevSlider::$filepath_captions_original = self::$path_plugin . "rs-plugin/css/captions-original.css"; GlobalsRevSlider::$urlExportZip = self::$path_plugin . "export.zip"; $this->init(); }