本文整理汇总了PHP中UniteFunctionsWPRev::getUrlContent方法的典型用法代码示例。如果您正苦于以下问题:PHP UniteFunctionsWPRev::getUrlContent方法的具体用法?PHP UniteFunctionsWPRev::getUrlContent怎么用?PHP UniteFunctionsWPRev::getUrlContent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UniteFunctionsWPRev
的用法示例。
在下文中一共展示了UniteFunctionsWPRev::getUrlContent方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: onShowImage
/**
*
* on show image ajax event. outputs image with parameters
*/
public static function onShowImage()
{
$pathImages = UniteFunctionsWPRev::getPathContent();
$urlImages = UniteFunctionsWPRev::getUrlContent();
try {
$imageView = new UniteImageViewRev(self::$path_cache, $pathImages, $urlImages);
$imageView->showImageFromGet();
} catch (Exception $e) {
header("status: 500");
echo $e->getMessage();
exit;
}
}
示例2: onShowImage
/**
*
* on show image ajax event. outputs image with parameters
*/
public static function onShowImage()
{
$img = Tools::getValue('img');
if (empty($img)) {
die('Image doesn\'t exists!');
}
$pathImages = UniteFunctionsWPRev::getPathContent();
$urlImages = UniteFunctionsWPRev::getUrlContent();
try {
$imageView = new UniteImageViewRev(self::$path_cache, $pathImages, $urlImages);
$imageView->showImageFromGet();
} catch (Exception $e) {
header("status: 500");
echo $e->getMessage();
exit;
}
}
示例3:
<?php
global $revSliderVersion;
$wrapperClass = "";
if (GlobalsRevSlider::$isNewVersion == false) {
$wrapperClass = " oldwp";
}
?>
<script type="text/javascript">
var g_uniteDirPlagin = "<?php
echo self::$dir_plugin;
?>
";
var g_urlContent = "<?php
echo UniteFunctionsWPRev::getUrlContent();
?>
";
var g_urlAjaxShowImage = "<?php
echo UniteBaseClassRev::$url_ajax_showimage;
?>
";
var g_urlAjaxActions = "<?php
echo UniteBaseClassRev::$url_ajax_actions;
?>
";
var g_settingsObj = {};
</script>
<div id="div_debug"></div>
示例4: hookdisplayBackOfficeHeader
public function hookdisplayBackOfficeHeader()
{
if (Tools::getvalue('configure') == 'revsliderprestashop') {
$this->context->controller->addCSS($this->_path . 'css/jui/new/jquery-ui-1.10.3.custom.min.css');
$this->context->controller->addCSS($this->_path . 'css/admin.css');
$this->context->controller->addCSS($this->_path . 'css/tipsy.css');
$this->context->controller->addCSS($this->_path . 'css/load-styles.css');
$this->context->controller->addCSS($this->_path . 'js/farbtastic/farbtastic.css');
$this->context->controller->addCSS($this->_path . 'js/codemirror/codemirror.css');
$this->context->controller->addCSS($this->_path . 'css/edit_layers.css');
$this->context->controller->addCSS($this->_path . 'css/thickbox.css');
$this->context->controller->addCSS($this->_path . 'rs-plugin/css/settings.css');
$this->context->controller->addCSS($this->_path . 'rs-plugin/css/static-captions.css');
$g_urlContent = UniteFunctionsWPRev::getUrlContent();
$dynamicadmincss = 'index.php?controller=Revolutionslider_ajax&token=' . Context::getcontext()->controller->token . '&revControllerAction=captions';
$this->smarty->assign('dynamicadmincss', $dynamicadmincss);
$this->smarty->assign('g_urlContent', $g_urlContent);
$this->smarty->assign('this_path', $this->_path);
return $this->display(__FILE__, 'views/templates/admin/revolution_admin.tpl');
}
}