本文整理汇总了PHP中smarty_function_router函数的典型用法代码示例。如果您正苦于以下问题:PHP smarty_function_router函数的具体用法?PHP smarty_function_router怎么用?PHP smarty_function_router使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了smarty_function_router函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: content_5684d6e3ea4469_88607807
function content_5684d6e3ea4469_88607807($_smarty_tpl)
{
if (!is_callable('smarty_function_router')) {
include '/var/www/bunker//engine/modules/viewer/plugs/function.router.php';
}
$_smarty_tpl->tpl_vars['oPage'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['oPage']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['aPagesMain']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['oPage']->key => $_smarty_tpl->tpl_vars['oPage']->value) {
$_smarty_tpl->tpl_vars['oPage']->_loop = true;
?>
<li <?php
if ($_smarty_tpl->tpl_vars['sAction']->value == 'page' && $_smarty_tpl->tpl_vars['sEvent']->value == $_smarty_tpl->tpl_vars['oPage']->value->getUrl()) {
?>
class="active"<?php
}
?>
><a href="<?php
echo smarty_function_router(array('page' => 'page'), $_smarty_tpl);
echo $_smarty_tpl->tpl_vars['oPage']->value->getUrlFull();
?>
/" ><?php
echo $_smarty_tpl->tpl_vars['oPage']->value->getTitle();
?>
</a><i></i></li>
<?php
}
?>
<?php
}
开发者ID:lunavod,项目名称:bunker_stable,代码行数:33,代码来源:bd1fe37755b95fc856d53689138801235e2d2e0e.file.main_menu.tpl.php
示例2: content_559ae0fb327e68_20058240
function content_559ae0fb327e68_20058240($_smarty_tpl)
{
if (!is_callable('smarty_function_cfg')) {
include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.cfg.php';
}
if (!is_callable('smarty_function_router')) {
include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.router.php';
}
?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName><?php
echo smarty_function_cfg(array('name' => 'view.name'), $_smarty_tpl);
?>
</ShortName>
<Description><?php
echo $_smarty_tpl->tpl_vars['sHtmlTitle']->value;
?>
</Description>
<Contact><?php
echo $_smarty_tpl->tpl_vars['sAdminMail']->value;
?>
</Contact>
<Url type="text/html" template="<?php
echo smarty_function_router(array('page' => 'search'), $_smarty_tpl);
?>
topics/?q={searchTerms}" />
<LongName><?php
echo $_smarty_tpl->tpl_vars['sHtmlDescription']->value;
?>
</LongName>
<Image height="64" width="64" type="image/png"><?php
echo smarty_function_cfg(array('name' => 'path.static.skin'), $_smarty_tpl);
?>
/images/logo.png</Image>
<Image height="16" width="16" type="image/vnd.microsoft.icon"><?php
echo smarty_function_cfg(array('name' => 'path.static.skin'), $_smarty_tpl);
?>
/images/favicon.ico</Image>
<Developer><?php
echo smarty_function_cfg(array('name' => 'view.name'), $_smarty_tpl);
?>
(<?php
echo smarty_function_cfg(array('name' => 'path.root.web'), $_smarty_tpl);
?>
)</Developer>
<Attribution>
© «<?php
echo smarty_function_cfg(array('name' => 'view.name'), $_smarty_tpl);
?>
»
</Attribution>
<SyndicationRight>open</SyndicationRight>
<AdultContent>false</AdultContent>
<Language>ru-ru</Language>
<OutputEncoding>UTF-8</OutputEncoding>
<InputEncoding>UTF-8</InputEncoding>
</OpenSearchDescription><?php
}
开发者ID:olegverstka,项目名称:kprf.dev,代码行数:58,代码来源:81e6c0263acf35e9e4a5f93440d636baf06579ee.file.opensearch.tpl.php
示例3: content_568a8b5671e609_68528413
function content_568a8b5671e609_68528413($_smarty_tpl)
{
if (!is_callable('smarty_function_router')) {
include 'D:\\OpenServer\\domains\\kprf.dev\\www/engine/modules/viewer/plugs\\function.router.php';
}
?>
<nav id="nav">
<?php
if ($_smarty_tpl->tpl_vars['menu']->value) {
?>
<?php
if (in_array($_smarty_tpl->tpl_vars['menu']->value, $_smarty_tpl->tpl_vars['aMenuContainers']->value)) {
echo $_smarty_tpl->tpl_vars['aMenuFetch']->value[$_smarty_tpl->tpl_vars['menu']->value];
} else {
echo $_smarty_tpl->getSubTemplate("menu." . $_smarty_tpl->tpl_vars['menu']->value . ".tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
}
?>
<?php
}
?>
<?php
if ($_smarty_tpl->tpl_vars['oUserCurrent']->value) {
?>
<a href="<?php
echo smarty_function_router(array('page' => 'topic'), $_smarty_tpl);
?>
add/" class="button button-write js-write-window-show" id="modal_write_show"><?php
echo $_smarty_tpl->tpl_vars['aLang']->value['block_create'];
?>
</a>
<?php
}
?>
<div class="search-header">
<div class="search-header-show" id="search-header-show"><i class="icon-synio-search"></i> <a href="#" class="link-dotted"><?php
echo $_smarty_tpl->tpl_vars['aLang']->value['search_submit'];
?>
</a></div>
<form class="search-header-form" id="search-header-form" action="<?php
echo smarty_function_router(array('page' => 'search'), $_smarty_tpl);
?>
topics/" style="display: none">
<input type="text" placeholder="<?php
echo $_smarty_tpl->tpl_vars['aLang']->value['search'];
?>
" maxlength="255" name="q" class="input-text">
<input type="submit" value="" title="<?php
echo $_smarty_tpl->tpl_vars['aLang']->value['search_submit'];
?>
" class="input-submit">
</form>
</div>
</nav><?php
}
开发者ID:olegverstka,项目名称:kprf.dev,代码行数:57,代码来源:0b6773ddf03c87f6ae58b704a6237e535870357b.file.nav.tpl.php
示例4: content_55d3380ee03570_87660797
function content_55d3380ee03570_87660797($_smarty_tpl)
{
if (!is_callable('smarty_function_router')) {
include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.router.php';
}
if (!is_callable('smarty_function_hook')) {
include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.hook.php';
}
?>
<ul class="nav nav-menu">
<?php
if ($_smarty_tpl->tpl_vars['oUserCurrent']->value) {
?>
<li <?php
if ($_smarty_tpl->tpl_vars['sMenuItemSelect']->value == 'user') {
?>
class="active"<?php
}
?>
><a href="<?php
echo smarty_function_router(array('page' => 'stream'), $_smarty_tpl);
?>
user/"><?php
echo $_smarty_tpl->tpl_vars['aLang']->value['stream_menu_user'];
?>
</a></li>
<?php
}
?>
<li <?php
if ($_smarty_tpl->tpl_vars['sMenuItemSelect']->value == 'all') {
?>
class="active"<?php
}
?>
><a href="<?php
echo smarty_function_router(array('page' => 'stream'), $_smarty_tpl);
?>
all/"><?php
echo $_smarty_tpl->tpl_vars['aLang']->value['stream_menu_all'];
?>
</a></li>
<?php
echo smarty_function_hook(array('run' => 'menu_stream_item'), $_smarty_tpl);
?>
</ul>
<?php
echo smarty_function_hook(array('run' => 'menu_stream'), $_smarty_tpl);
?>
<?php
}
开发者ID:olegverstka,项目名称:kprf.dev,代码行数:54,代码来源:f3e7ec0db6d66f01e01e1c291748070232bf5ee0.file.menu.stream.tpl.php
示例5: content_55d33fa2222402_37030499
function content_55d33fa2222402_37030499($_smarty_tpl)
{
if (!is_callable('smarty_function_hook')) {
include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.hook.php';
}
if (!is_callable('smarty_function_router')) {
include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.router.php';
}
echo $_smarty_tpl->getSubTemplate('header.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
?>
<h2 class="page-header"><?php
echo $_smarty_tpl->tpl_vars['aLang']->value['search'];
?>
</h2>
<?php
echo smarty_function_hook(array('run' => 'search_begin'), $_smarty_tpl);
?>
<form action="<?php
echo smarty_function_router(array('page' => 'search'), $_smarty_tpl);
?>
topics/" class="search" method="GET">
<?php
echo smarty_function_hook(array('run' => 'search_form_begin'), $_smarty_tpl);
?>
<input type="text" placeholder="<?php
echo $_smarty_tpl->tpl_vars['aLang']->value['search'];
?>
" maxlength="255" name="q" class="input-text" id="SS_SearchField">
<input type="submit" value="" title="<?php
echo $_smarty_tpl->tpl_vars['aLang']->value['search_submit'];
?>
" class="input-submit icon icon-search">
<?php
echo smarty_function_hook(array('run' => 'search_form_end'), $_smarty_tpl);
?>
</form>
<?php
echo smarty_function_hook(array('run' => 'search_end'), $_smarty_tpl);
?>
<?php
echo $_smarty_tpl->getSubTemplate('footer.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
}
开发者ID:olegverstka,项目名称:kprf.dev,代码行数:54,代码来源:4292c3aa722b9513bd5f0f82a1c3f9412a19d15f.file.index.tpl.php
示例6: content_559c873bcd8536_96904361
function content_559c873bcd8536_96904361($_smarty_tpl)
{
if (!is_callable('smarty_function_router')) {
include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.router.php';
}
if ($_smarty_tpl->tpl_vars['aCountryList']->value && count($_smarty_tpl->tpl_vars['aCountryList']->value) > 0) {
?>
<section class="block">
<header class="block-header">
<h3><?php
echo $_smarty_tpl->tpl_vars['aLang']->value['block_country_tags'];
?>
</h3>
</header>
<div class="block-content">
<ul class="tag-cloud word-wrap">
<?php
$_smarty_tpl->tpl_vars['oCountry'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['oCountry']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['aCountryList']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['oCountry']->key => $_smarty_tpl->tpl_vars['oCountry']->value) {
$_smarty_tpl->tpl_vars['oCountry']->_loop = true;
?>
<li><a class="tag-size-<?php
echo $_smarty_tpl->tpl_vars['oCountry']->value->getSize();
?>
" href="<?php
echo smarty_function_router(array('page' => 'people'), $_smarty_tpl);
?>
country/<?php
echo $_smarty_tpl->tpl_vars['oCountry']->value->getId();
?>
/"><?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['oCountry']->value->getName(), ENT_QUOTES, 'UTF-8', true);
?>
</a></li>
<?php
}
?>
</ul>
</div>
</section>
<?php
}
}
开发者ID:olegverstka,项目名称:kprf.dev,代码行数:51,代码来源:a8020d32102bcf5e73b24a521d7073b83264b9c0.file.block.tagsCountry.tpl.php
示例7: content_5684d6cb06df96_93955939
function content_5684d6cb06df96_93955939($_smarty_tpl)
{
if (!is_callable('smarty_function_router')) {
include '/var/www/bunker//engine/modules/viewer/plugs/function.router.php';
}
?>
<li class="item-messages" title="Ответы"><i class="item-icon"></i></i><a href="<?php
echo smarty_function_router(array('page' => 'feedbacks'), $_smarty_tpl);
?>
"><?php
echo $_smarty_tpl->tpl_vars['aLang']->value['plugin']['feedbacks']['answers_menu'];
?>
<i class="fa fa-comment right"></i></a></li>
<?php
}
开发者ID:lunavod,项目名称:bunker_stable,代码行数:15,代码来源:683306670c478ce69b6e69394a0ef94c29d71d2f.file.navbar_item.tpl.php
示例8: content_5684d6ccd78c03_67115879
function content_5684d6ccd78c03_67115879($_smarty_tpl)
{
if (!is_callable('smarty_function_router')) {
include '/var/www/bunker//engine/modules/viewer/plugs/function.router.php';
}
?>
<li><a href="<?php
echo smarty_function_router(array('page' => "admin"), $_smarty_tpl);
?>
mhb/"><?php
echo $_smarty_tpl->tpl_vars['aLang']->value['plugin']['mhb']['admin_admin_menu'];
?>
</a></li>
<?php
}
开发者ID:lunavod,项目名称:bunker_stable,代码行数:15,代码来源:bf5d290258798954bdc3c0bd4fdfc15a818532a1.file.admin_edit_menu.tpl.php
示例9: content_55cf1bd68793a3_27593757
function content_55cf1bd68793a3_27593757($_smarty_tpl)
{
if (!is_callable('smarty_function_router')) {
include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.router.php';
}
$_smarty_tpl->tpl_vars["noSidebar"] = new Smarty_variable(true, null, 0);
echo $_smarty_tpl->getSubTemplate('header.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
?>
<script type="text/javascript">
jQuery(document).ready(function($){
$('#reminder-form').bind('submit',function(){
ls.user.reminder('reminder-form');
return false;
});
$('#reminder-form-submit').attr('disabled',false);
});
</script>
<h2 class="page-header"><?php
echo $_smarty_tpl->tpl_vars['aLang']->value['password_reminder'];
?>
</h2>
<form action="<?php
echo smarty_function_router(array('page' => 'login'), $_smarty_tpl);
?>
reminder/" method="POST" id="reminder-form">
<p><label for="reminder-mail"><?php
echo $_smarty_tpl->tpl_vars['aLang']->value['password_reminder_email'];
?>
</label>
<input type="text" name="mail" id="reminder-mail" class="input-text input-width-200" />
<small class="validate-error-hide validate-error-reminder"></small></p>
<button type="submit" name="submit_reminder" class="button button-primary" id="reminder-form-submit" disabled="disabled"><?php
echo $_smarty_tpl->tpl_vars['aLang']->value['password_reminder_submit'];
?>
</button>
</form>
<?php
echo $_smarty_tpl->getSubTemplate('footer.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
}
开发者ID:olegverstka,项目名称:kprf.dev,代码行数:47,代码来源:98dbe6f36b5eb3bbee4b19891b26deffa897b0f8.file.reminder.tpl.php
示例10: content_5578b5d9e42400_32193636
function content_5578b5d9e42400_32193636($_smarty_tpl)
{
if (!is_callable('smarty_function_router')) {
include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.router.php';
}
echo $_smarty_tpl->getSubTemplate('header.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('sMenuHeadItemSelect' => "blogs"), 0);
?>
<h2 class="page-header"><?php
echo $_smarty_tpl->tpl_vars['aLang']->value['blogs'];
?>
</h2>
<form action="" method="POST" id="form-blogs-search" onsubmit="return false;" class="search-item">
<div class="search-input-wrapper">
<input type="text" placeholder="<?php
echo $_smarty_tpl->tpl_vars['aLang']->value['blogs_search_title_hint'];
?>
" autocomplete="off" name="blog_title" class="input-text" value="" onkeyup="ls.timer.run(ls.blog.searchBlogs,'blogs_search',['form-blogs-search'],1000);">
<div class="input-submit" onclick="jQuery('#form-blogs-search').submit()"></div>
</div>
</form>
<div id="blogs-list-search" style="display:none;"></div>
<div id="blogs-list-original">
<?php
echo smarty_function_router(array('page' => 'blogs', 'assign' => 'sBlogsRootPage'), $_smarty_tpl);
?>
<?php
echo $_smarty_tpl->getSubTemplate('blog_list.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('bBlogsUseOrder' => true, 'sBlogsRootPage' => $_smarty_tpl->tpl_vars['sBlogsRootPage']->value), 0);
?>
<?php
echo $_smarty_tpl->getSubTemplate('paging.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('aPaging' => $_smarty_tpl->tpl_vars['aPaging']->value), 0);
?>
</div>
<?php
echo $_smarty_tpl->getSubTemplate('footer.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
}
开发者ID:olegverstka,项目名称:kprf.dev,代码行数:44,代码来源:29c7a85a495561fdaffa84bda88ced3597c1f3eb.file.index.tpl.php
示例11: content_559c873b570c50_61879475
function content_559c873b570c50_61879475($_smarty_tpl)
{
if (!is_callable('smarty_function_router')) {
include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.router.php';
}
?>
<!-- Simplesearch plugin -->
<div class="block SS_Peoplesearch">
<header class="block-header sep">
<h3><?php
echo $_smarty_tpl->tpl_vars['aLang']->value['plugin']['simplesearch']['People_Search'];
?>
</h3>
</header>
<div class="block-content">
<form action="<?php
echo smarty_function_router(array('page' => 'search'), $_smarty_tpl);
?>
people/" method="GET" class="search">
<input type="text" value="" name="q" placeholder="<?php
echo $_smarty_tpl->tpl_vars['aLang']->value['plugin']['simplesearch']['Search_Field_Tip'];
?>
" class="input-text" />
<input type="submit" value="" title="<?php
echo $_smarty_tpl->tpl_vars['aLang']->value['search_submit'];
?>
" class="input-submit icon icon-search" />
<label><input type="checkbox" value="1" checked="checked" name="strict" /><?php
echo $_smarty_tpl->tpl_vars['aLang']->value['plugin']['simplesearch']['People_Search_Strict_Search'];
?>
</label>
</form>
<small>
<?php
echo $_smarty_tpl->tpl_vars['aLang']->value['plugin']['simplesearch']['People_Search_Tip'];
?>
</small>
</div>
</div>
<!-- /Simplesearch plugin -->
<?php
}
开发者ID:olegverstka,项目名称:kprf.dev,代码行数:44,代码来源:78d137b20e9d143161fae3fac2cacd34f5d14498.file.block.people.tpl.php
示例12: content_5577f781564633_32131467
function content_5577f781564633_32131467($_smarty_tpl)
{
if (!is_callable('smarty_function_router')) {
include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.router.php';
}
?>
<li <?php
if ($_smarty_tpl->tpl_vars['sMenuHeadItemSelect']->value == 'receptiondesk') {
?>
class="active"<?php
}
?>
><a href="<?php
echo smarty_function_router(array('page' => 'receptiondesk'), $_smarty_tpl);
?>
"><?php
echo $_smarty_tpl->tpl_vars['aLang']->value['plugin']['receptiondesk']['receptiondesk_main_menu_item'];
?>
</a><i></i></li><?php
}
开发者ID:olegverstka,项目名称:kprf.dev,代码行数:20,代码来源:4d9a775de3883516293cce7b8f155868721bcfe5.file.inj_main_menu_item.tpl.php
示例13: content_568a8b56a79cd0_02826733
function content_568a8b56a79cd0_02826733($_smarty_tpl)
{
if (!is_callable('smarty_function_router')) {
include 'D:\\OpenServer\\domains\\kprf.dev\\www/engine/modules/viewer/plugs\\function.router.php';
}
if ($_smarty_tpl->tpl_vars['oUserCurrent']->value && $_smarty_tpl->tpl_vars['oUserCurrent']->value->isAdministrator()) {
?>
<section class="toolbar-admin">
<a href="<?php
echo smarty_function_router(array('page' => 'admin'), $_smarty_tpl);
?>
" title="<?php
echo $_smarty_tpl->tpl_vars['aLang']->value['admin_title'];
?>
">
<i></i>
</a>
</section>
<?php
}
}
开发者ID:olegverstka,项目名称:kprf.dev,代码行数:21,代码来源:ea216eca15bfe4adddd06be73722ef1fa8022b5b.file.toolbar_admin.tpl.php
示例14: content_5684d6cc854b32_75764697
function content_5684d6cc854b32_75764697($_smarty_tpl)
{
if (!is_callable('smarty_function_router')) {
include '/var/www/bunker//engine/modules/viewer/plugs/function.router.php';
}
if ($_smarty_tpl->tpl_vars['oUserCurrent']->value && $_smarty_tpl->tpl_vars['oUserCurrent']->value->isAdministrator()) {
?>
<section class="toolbar-admin">
<a href="<?php
echo smarty_function_router(array('page' => 'admin'), $_smarty_tpl);
?>
" title="<?php
echo $_smarty_tpl->tpl_vars['aLang']->value['admin_title'];
?>
">
<i class="fa fa-cog"></i>
</a>
</section>
<?php
}
}
开发者ID:lunavod,项目名称:bunker_stable,代码行数:21,代码来源:fbd7d0503915f7f82173c5cb20d8301434c74e2c.file.toolbar_admin.tpl.php
示例15: content_5577f7815ef2a8_49923963
function content_5577f7815ef2a8_49923963($_smarty_tpl)
{
if (!is_callable('smarty_function_router')) {
include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.router.php';
}
if ($_smarty_tpl->tpl_vars['oUserCurrent']->value && $_smarty_tpl->tpl_vars['oUserCurrent']->value->isAdministrator()) {
?>
<section class="toolbar-admin">
<a href="<?php
echo smarty_function_router(array('page' => 'admin'), $_smarty_tpl);
?>
" title="<?php
echo $_smarty_tpl->tpl_vars['aLang']->value['admin_title'];
?>
">
<i></i>
</a>
</section>
<?php
}
}
开发者ID:olegverstka,项目名称:kprf.dev,代码行数:21,代码来源:c9f01b2d8f08ff6e08a73395254d9e0a7a472a8c.file.toolbar_admin.tpl.php