本文整理汇总了PHP中Uri::base_path方法的典型用法代码示例。如果您正苦于以下问题:PHP Uri::base_path方法的具体用法?PHP Uri::base_path怎么用?PHP Uri::base_path使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Uri
的用法示例。
在下文中一共展示了Uri::base_path方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: icon_label
$anchor_text_default = icon_label('site.see_more', 'both', false, null, 'fa fa-');
$href = Uri::create_url($see_more_link['uri']);
$anchor_text = !empty($see_more_link['text']) ? $see_more_link['text'] : $anchor_text_default;
$load_after_link_attr = array('class' => 'listMoreBox');
echo Html::anchor($href, $anchor_text, $load_after_link_attr);
} elseif (!empty($next_page)) {
?>
<nav id="page-nav">
<?php
$uri = sprintf('news/api4site/list.html?page=%d', $next_page);
if (!empty($category_name)) {
$uri .= '&category=' . $category_name;
}
if (!empty($tag_string)) {
$uri .= '&tag=' . $tag_string;
}
?>
<a href="<?php
echo Uri::base_path($uri);
?>
"></a>
</nav>
<?php
}
?>
<?php
if (IS_API) {
?>
</body></html><?php
}
示例2:
<!-- Le fav and touch icons -->
<link rel="shortcut icon" href="<?php
echo Uri::base_path('assets/img/ico/favicon.ico');
?>
">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="<?php
echo Uri::base_path('assets/img/ico/apple-touch-icon-144-precomposed.png');
?>
">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="<?php
echo Uri::base_path('assets/img/ico/apple-touch-icon-114-precomposed.png');
?>
">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="<?php
echo Uri::base_path('assets/img/ico/apple-touch-icon-72-precomposed.png');
?>
">
<link rel="apple-touch-icon-precomposed" href="<?php
echo Uri::base_path('assets/img/ico/apple-touch-icon-57-precomposed.png');
?>
">
示例3: get_uid
$img_max_sizes = Site_Upload::conv_size_str_to_array(conf('upload.types.img.accepted_max_size.default'));
?>
<script>
var GL = {};
GL.execute_flg = false;
function get_uid() {return <?php
echo !IS_ADMIN && Auth::check() ? $u->id : 0;
?>
;}
function check_is_admin() {return <?php
echo IS_ADMIN ? 'true' : 'false';
?>
;}
function getBasePath() {return '<?php
echo Uri::base_path();
?>
';}
function getCurrentPath() {return '<?php
echo Uri::string();
?>
';}
function getBaseUrl() {
var is_current_protocol = (arguments.length > 0) ? arguments[0] : false;
if (is_current_protocol) return '<?php
echo Uri::base(true);
?>
';
return '<?php
echo Uri::base();
?>
示例4: get_media_uri
public static function get_media_uri($uri, $is_absolute_url = false)
{
if (FBD_MEDIA_BASE_URL) {
return Uri::convert_protocol2resuested(FBD_MEDIA_BASE_URL . $uri);
}
return $is_absolute_url ? Uri::base(false) . $uri : Uri::base_path($uri);
}
示例5: conf
<?php
if (conf('library.angularJs.isEnabled') && $use_angularjs) {
$angularjs_version = conf('library.angularJs.versions.latest');
//if (conf('legacyBrowserSupport.isEnabled') && \MyAgent\Agent::check_legacy_ie(conf('legacyBrowserSupport.legacyIECriteriaVersion')))
//{
// $jquery_version = conf('library.angularJs.versions.legacy');
//}
?>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/<?php
echo $angularjs_version;
?>
/angular.min.js"></script>
<script>
if (typeof angular == 'undefined') document.write('<script src="<?php
echo Uri::base_path('assets/js/angularjs/' . $angularjs_version . '/angular.min.js');
?>
"><\/script>')
</script>
<?php
}
?>
<?php
Asset::js(array('bootstrap.js', 'apprise-1.5.full.js', 'jquery.autogrow-textarea.js', 'jquery.jgrowl.js', 'moment.js', 'moment.lang_ja.js', 'livestamp.js', 'js-url/js-url.js', 'util.js'), null, 'js_common', false, true);
echo Asset::render('js_common', false, 'js');
?>
<script>var gapi;</script>
<?php
if (is_enabled_share('google')) {