当前位置: 首页>>代码示例>>PHP>>正文


PHP UniteBaseClassRev::path_temp方法代码示例

本文整理汇总了PHP中UniteBaseClassRev::path_temp方法的典型用法代码示例。如果您正苦于以下问题:PHP UniteBaseClassRev::path_temp方法的具体用法?PHP UniteBaseClassRev::path_temp怎么用?PHP UniteBaseClassRev::path_temp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在UniteBaseClassRev的用法示例。


在下文中一共展示了UniteBaseClassRev::path_temp方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

		/**
		 * 
		 * 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;
		}
开发者ID:plusinterativa,项目名称:clientes,代码行数:52,代码来源:base.class.php

示例2: __construct

 /**
  *
  * 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;
 }
开发者ID:perseusl,项目名称:kingdavid,代码行数:21,代码来源:base.class.php

示例3: __construct

 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;
 }
开发者ID:evgrishin,项目名称:se1614,代码行数:46,代码来源:base.class.php

示例4: __construct

 /**
  * 
  * 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/";
 }
开发者ID:jhener79,项目名称:vlakc,代码行数:49,代码来源:base.class.php


注:本文中的UniteBaseClassRev::path_temp方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。