コード例 #1
0
 /**
  * 
  * the constructor
  */
 public function __construct($mainFilepath)
 {
     parent::__construct($mainFilepath, $this);
     //set table names
     GlobalsRevSlider::$table_sliders = self::$table_prefix . GlobalsRevSlider::TABLE_SLIDERS_NAME;
     GlobalsRevSlider::$table_slides = self::$table_prefix . GlobalsRevSlider::TABLE_SLIDES_NAME;
 }
コード例 #2
0
 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();
 }
コード例 #3
0
ファイル: revslider_admin.php プロジェクト: evgrishin/se1614
 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();
 }
コード例 #4
0
 /**
  * 
  * init globals
  */
 public static function initGlobals()
 {
     GlobalsRevSlider::$table_prefix = "#__";
     //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::$path_media = JPATH_ROOT . "/media/" . self::PLUGIN_NAME . "/";
     self::$path_base = JPATH_ROOT . "/";
     self::$path_images = JPATH_ROOT . "/images/";
     self::$path_cache = self::$path_media . "cache/";
     $pathMediaAssets = self::$path_media . "assets/";
     GlobalsRevSlider::$filepath_dynamic_captions = $pathMediaAssets . "rs-plugin/css/dynamic-captions.css";
     GlobalsRevSlider::$filepath_static_captions = $pathMediaAssets . "rs-plugin/css/static-captions.css";
     GlobalsRevSlider::$filepath_captions_original = $pathMediaAssets . "rs-plugin/css/captions-original.css";
     GlobalsRevSlider::$filepath_backup = self::$path_media . "backup/";
     GlobalsRevSlider::$filepath_captions = $pathMediaAssets . "rs-plugin/css/captions.css";
     //set urls
     self::$url_base = JURI::root();
     self::$url_component_client = self::$url_base . "index.php?option=" . self::PLUGIN_NAME;
     self::$url_component_admin = self::$url_base . "administrator/index.php?option=" . self::PLUGIN_NAME;
     self::$url_media = self::$url_base . "media/" . GlobalsRevSlider::PLUGIN_NAME . "/";
     self::$url_item_plugin = self::$url_media . "assets/rs-plugin/";
     GlobalsRevSlider::$urlCaptionsCSS = self::$url_component_client . "&action=getcaptions";
     GlobalsRevSlider::$urlCaptionsCSSAdmin = self::$url_component_admin . "&action=getcaptions";
     GlobalsRevSlider::$urlDynamicCaptionsCSS = self::$url_item_plugin . "css/dynamic-captions.css";
     GlobalsRevSlider::$urlStaticCaptionsCSS = self::$url_item_plugin . "css/static-captions.css";
     GlobalsRevSlider::$urlExportZip = self::$path_cache . "export.zip";
 }
コード例 #5
0
 /**
  * 
  * the constructor
  */
 public function __construct($mainFilepath)
 {
     parent::__construct($mainFilepath, $this);
     //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;
 }
コード例 #6
0
 /**
  * 
  * 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();
 }
コード例 #7
0
 public function __construct($mainFilepath)
 {
     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;
     UniteBaseClassRev::addAction('wp_enqueue_scripts', 'enqueue_styles');
 }
コード例 #8
0
		/**
		 * 
		 * the constructor
		 */
		public function __construct($mainFile,$t){
			global $wpdb;
			
			self::$is_multisite = UniteFunctionsWPRev::isMultisite();
			
			self::$wpdb = $wpdb;
			self::$table_prefix = self::$wpdb->base_prefix;
			if(UniteFunctionsWPRev::isMultisite()){
				$blogID = UniteFunctionsWPRev::getBlogID();
				if($blogID != 1){
					self::$table_prefix .= $blogID."_";
				}
			}
			
			self::$mainFile = $mainFile;
			self::$t = $t;
			
			//set plugin dirname (as the main filename)
			$info = pathinfo($mainFile);
			$baseName = $info["basename"];
			$filename = str_replace(".php","",$baseName);
			
			self::$dir_plugin = $filename;			
					
			self::$url_plugin = get_template_directory_uri() . '/framework/plugins/revslider/';	
			self::$url_ajax = admin_url("admin-ajax.php");
			self::$url_ajax_actions = self::$url_ajax . "?action=".self::$dir_plugin."_ajax_action";
			self::$url_ajax_showimage = self::$url_ajax . "?action=".self::$dir_plugin."_show_image";
			self::$path_plugin = dirname(self::$mainFile)."/";
			self::$path_settings = self::$path_plugin."settings/";
			self::$path_temp = self::$path_plugin."temp/";
			
			//set cache path:
			self::setPathCache();
			
			self::$path_views = self::$path_plugin."views/";
			self::$path_templates = self::$path_views."/templates/";
			self::$path_base = ABSPATH;
			
			load_plugin_textdomain( self::$dir_plugin );
			
			//update globals oldversion flag
			GlobalsRevSlider::$isNewVersion = false;
			$version = get_bloginfo("version");
			$version = (double)$version;
			if($version >= 3.5)
				GlobalsRevSlider::$isNewVersion = true;
		}
コード例 #9
0
ファイル: base.class.php プロジェクト: perseusl/kingdavid
 /**
  *
  * the constructor
  */
 public function __construct($mainFile, $t)
 {
     self::$mainFile = $mainFile;
     self::$t = $t;
     //set plugin dirname (as the main filename)
     $info = pathinfo($mainFile);
     $baseName = $info["basename"];
     $filename = str_replace(".php", "", $baseName);
     self::$dir_plugin = $filename;
     self::$path_plugin = dirname(self::$mainFile) . "/";
     self::$path_settings = Mage::getBaseDir('lib') . '/Nwdthemes/Revslider/settings/';
     self::$path_temp = self::$path_plugin . "temp/";
     //set cache path:
     self::setPathCache();
     //update globals oldversion flag
     GlobalsRevSlider::$isNewVersion = true;
 }
コード例 #10
0
ファイル: base.class.php プロジェクト: evgrishin/se1614
 public function __construct($mainFile, $t)
 {
     //global $wpdb;
     self::$is_multisite = UniteFunctionsWPRev::isMultisite();
     if (class_exists('RevsliderPrestashop')) {
         self::$wpdb = RevsliderPrestashop::$wpdb;
     } else {
         self::$wpdb = rev_db_class::rev_db_instance();
     }
     self::$table_prefix = self::$wpdb->prefix;
     if (UniteFunctionsWPRev::isMultisite()) {
         $blogID = UniteFunctionsWPRev::getBlogID();
         if ($blogID != 1) {
             self::$table_prefix .= $blogID . "_";
         }
     }
     self::$mainFile = $mainFile;
     self::$t = $t;
     //set plugin dirname (as the main filename)
     $info = pathinfo($mainFile);
     $baseName = $info["basename"];
     $filename = str_replace(".php", "", $baseName);
     self::$dir_plugin = $filename;
     self::$url_plugin = plugins_url(self::$dir_plugin) . "/";
     self::$url_ajax = admin_url();
     self::$url_ajax_actions = self::$url_ajax . "&action=" . self::$dir_plugin . "_ajax_action";
     //self::$url_ajax_showimage = self::$url_ajax . "&action=".self::$dir_plugin."_show_image";
     self::$url_ajax_showimage = self::$url_plugin . "ajax.php?action=" . self::$dir_plugin . "_show_image";
     self::$path_plugin = self::$mainFile . "/";
     self::$path_settings = self::$path_plugin . "settings/";
     self::$path_temp = self::$path_plugin . "temp/";
     //set cache path:
     self::setPathCache();
     self::$path_views = self::$path_plugin . "views/";
     self::$path_templates = self::$path_views . "/templates/";
     self::$path_base = ABSPATH;
     self::$path_languages = self::$path_plugin . "languages/";
     self::$dir_languages = self::$dir_plugin . "/languages/";
     //load_plugin_textdomain(self::$dir_plugin,false,self::$dir_languages);
     //update globals oldversion flag
     GlobalsRevSlider::$isNewVersion = true;
     //			$version = get_bloginfo("version");
     //			$version = (double)$version;
     //			if($version >= 3.5)
     //				GlobalsRevSlider::$isNewVersion = true;
 }
コード例 #11
0
ファイル: base.class.php プロジェクト: jhener79/vlakc
 /**
  * 
  * the constructor
  */
 public function __construct($mainFile, $t)
 {
     global $wpdb;
     self::$is_multisite = UniteFunctionsWPRev::isMultisite();
     self::$wpdb = $wpdb;
     self::$table_prefix = "#__";
     if (UniteFunctionsWPRev::isMultisite()) {
         $blogID = UniteFunctionsWPRev::getBlogID();
         if ($blogID != 1) {
             self::$table_prefix .= $blogID . "_";
         }
     }
     self::$mainFile = $mainFile;
     self::$t = $t;
     self::$dir_plugin = "uniterevolution";
     self::$url_base = JURI::root();
     self::$url_plugin = self::$url_base . "administrator/components/" . GlobalsRevSlider::PLUGIN_NAME . "/";
     self::$url_component = self::$url_base . "administrator/index.php?option=" . GlobalsRevSlider::PLUGIN_NAME;
     self::$url_component_client = self::$url_base . "index.php?option=" . GlobalsRevSlider::PLUGIN_NAME;
     self::$url_ajax = self::$url_base . "administrator/index.php?option=" . GlobalsRevSlider::PLUGIN_NAME;
     self::$url_ajax_actions = self::$url_ajax . "&action=" . self::$dir_plugin . "_ajax_action";
     self::$url_ajax_showimage = self::$url_ajax . "&action=" . self::$dir_plugin . "_show_image";
     self::$path_plugin = dirname(self::$mainFile) . "/";
     self::$path_settings = self::$path_plugin . "settings/";
     self::$path_temp = self::$path_plugin . "temp/";
     //set cache path:
     self::setPathCache();
     self::$path_views = self::$path_plugin . "views/";
     self::$path_templates = self::$path_views . "/templates/";
     self::$path_languages = self::$path_plugin . "languages/";
     self::$dir_languages = self::$dir_plugin . "/languages/";
     load_plugin_textdomain(self::$dir_plugin, false, self::$dir_languages);
     //update globals oldversion flag
     GlobalsRevSlider::$isNewVersion = false;
     $version = get_bloginfo("version");
     $version = (double) $version;
     if ($version >= 3.5) {
         GlobalsRevSlider::$isNewVersion = true;
     }
     //joomla addition:
     self::$url_media = self::$url_base . "media/" . GlobalsRevSlider::PLUGIN_NAME . "/";
     self::$url_item_plugin = self::$url_media . "assets/rs-plugin/";
     self::$path_media = JPATH_ROOT . "/media/" . GlobalsRevSlider::PLUGIN_NAME . "/";
     self::$path_cache = self::$path_media . "cache/";
 }
コード例 #12
0
 /**
  * 
  * 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();
 }
コード例 #13
0
 /**
  *
  * the constructor
  */
 public function __construct()
 {
     UniteBaseClassRev::__construct('', $this);
     //set table names
     GlobalsRevSlider::$table_sliders = GlobalsRevSlider::TABLE_SLIDERS_NAME;
     GlobalsRevSlider::$table_slides = GlobalsRevSlider::TABLE_SLIDES_NAME;
     GlobalsRevSlider::$table_static_slides = GlobalsRevSlider::TABLE_STATIC_SLIDES_NAME;
     GlobalsRevSlider::$table_settings = GlobalsRevSlider::TABLE_SETTINGS_NAME;
     GlobalsRevSlider::$table_css = GlobalsRevSlider::TABLE_CSS_NAME;
     GlobalsRevSlider::$table_layer_anims = 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 = Mage::getDesign()->getSkinUrl('css/nwdthemes/revslider/dynamic.css');
     GlobalsRevSlider::$urlStaticCaptionsCSS = Mage::getDesign()->getSkinUrl('css/nwdthemes/revslider/static.css');
     GlobalsRevSlider::$filepath_dynamic_captions = Mage::getDesign()->getSkinBaseDir() . "/revslider/css/dynamic-captions.css";
     GlobalsRevSlider::$filepath_static_captions = Mage::getDesign()->getSkinBaseDir() . "/revslider/css/static-captions.css";
     GlobalsRevSlider::$filepath_captions_original = Mage::getDesign()->getSkinBaseDir() . "/revslider/css/captions-original.css";
     GlobalsRevSlider::$urlExportZip = Mage::getBaseDir('tmp') . '/revslider_export.zip';
     $this->init();
 }