本文整理汇总了PHP中Uri::create_url方法的典型用法代码示例。如果您正苦于以下问题:PHP Uri::create_url方法的具体用法?PHP Uri::create_url怎么用?PHP Uri::create_url使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Uri
的用法示例。
在下文中一共展示了Uri::create_url方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: render
">
<?php
echo render('_parts/member_profile', array('member' => !empty($related_member_table_name) ? $obj->{$related_member_table_name} : $obj, 'next_id' => $next_id, 'access_from' => Auth::check() ? 'member' : 'guest', 'is_list' => true, 'page_type' => 'list', 'display_type' => 'summary', 'is_simple_list' => $is_simple_list));
?>
</div>
<?php
}
?>
</div>
<?php
}
?>
<?php
if ($next_id) {
$gete_data_list = array();
$gete_data_list['max_id'] = $next_id;
if (!empty($since_id)) {
$gete_data_list['since_id'] = $since_id;
}
$load_after_link_attr = array('data-get_data' => json_encode($gete_data_list));
$href = IS_API ? '#' : Uri::create_url(Uri::string(), array('max_id' => $next_id));
echo Html::anchor($href, icon_label('site.see_more', 'both', false, null, 'fa fa-'), array_merge($load_after_link_attr, $load_link_attr_default));
}
?>
<?php
if (IS_API) {
?>
</body></html><?php
}
示例2: render
echo render('news::_parts/news_subinfo', array('news' => $news, 'tags' => $tags, 'is_simple_view' => true));
?>
</div>
<?php
}
?>
</div>
<?php
}
?>
<?php
if (!empty($see_more_link)) {
$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;
}
?>
示例3: strim
if (Uri::check_current_is_base_path()) {
?>
website<?php
} else {
?>
article<?php
}
?>
">
<meta property="og:description" content="<?php
echo !empty($common['description']) ? strim($common['description'], conf('view_params_default.ogp.trimWidth.body'), null, false, true) : FBD_HEADER_DESCRIPTION_DEFAULT;
?>
">
<meta property="og:url" content="<?php
echo Uri::current();
?>
">
<meta property="og:image" content="<?php
echo Uri::create_url(!empty($common['image']) ? $common['image'] : 'assets/img/ico/apple-touch-icon-144-precomposed.png', null, 'url');
?>
">
<meta property="og:site_name" content="<?php
echo FBD_SITE_NAME;
?>
">
<meta property="og:email" content="<?php
echo FBD_ADMIN_MAIL;
?>
">