本文整理匯總了PHP中NextendUri::getRelative方法的典型用法代碼示例。如果您正苦於以下問題:PHP NextendUri::getRelative方法的具體用法?PHP NextendUri::getRelative怎麽用?PHP NextendUri::getRelative使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類NextendUri
的用法示例。
在下文中一共展示了NextendUri::getRelative方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: nextendimport
nextendimport('nextend.form.form');
NextendForm::loadQtip();
$js = NextendJavascript::getInstance();
$js->loadLibrary('jquery');
nextendimport('nextend.fonts.google');
$fonts = NextendFontsGoogle::getInstance();
$fonts->addFont('Open Sans');
$fonts->addFont('Open Sans', 600);
$fonts->addFont('Open Sans', 700);
?>
<script type="text/javascript">
window.nextendFixRelative = function(uri){
if(uri.substr(0, 1) == '/' || uri.indexOf('://') != -1) return uri;
return '<?php
echo NextendUri::getRelative();
?>
'+uri;
}
window.nextendimageurl = <?php
echo nextendIsJoomla() ? intval(NextendSmartSliderJoomlaSettings::get('imageurl', 1)) : 0;
?>
;
</script>
<div id="smartslider-admin" class="nextend-nowindow smartslider-advanced-layers-simple-active smartslider-device-all-active ni">
<div class="smartslider-head">
<div class="smartslider-logo" style="cursor: pointer;" onclick="location.href='<?php
echo $this->route('controller=sliders');