本文整理汇总了PHP中smarty_function_hook函数的典型用法代码示例。如果您正苦于以下问题:PHP smarty_function_hook函数的具体用法?PHP smarty_function_hook怎么用?PHP smarty_function_hook使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了smarty_function_hook函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: smarty_function_hook
/**
* Плагин для смарти
* Запускает хуки из шаблона на выполнение
*
* @param array $aParams
* @param Smarty $oSmarty
*
* @return string
*/
function smarty_function_hook($aParams, &$oSmarty)
{
if (empty($aParams['run'])) {
trigger_error('Hook: missing "run" parametr', E_USER_WARNING);
return;
}
$sReturn = '';
if (strpos($aParams['run'], ',')) {
$aHooks = F::Array_Str2Array($aParams['run']);
unset($aParams['run']);
foreach ($aHooks as $sHook) {
$aParams['run'] = $sHook;
$sReturn .= smarty_function_hook($aParams, $oSmarty);
}
} else {
$sHookName = 'template_' . strtolower($aParams['run']);
unset($aParams['run']);
$aResultHook = E::ModuleHook()->Run($sHookName, $aParams);
if (array_key_exists('template_result', $aResultHook)) {
$sReturn = join('', $aResultHook['template_result']);
}
if (!empty($aParams['assign'])) {
$oSmarty->assign($aParams['assign'], $sReturn);
$sReturn = '';
}
}
return $sReturn;
}
示例2: content_55797af686b5a0_41907144
function content_55797af686b5a0_41907144($_smarty_tpl)
{
if (!is_callable('smarty_function_hook')) {
include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.hook.php';
}
?>
<ul class="nav nav-pills nav-pills-profile">
<li <?php
if ($_smarty_tpl->tpl_vars['sMenuSubItemSelect']->value == 'main') {
?>
class="active"<?php
}
?>
>
<a href="<?php
echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getUserWebPath();
?>
"><?php
echo $_smarty_tpl->tpl_vars['aLang']->value['user_menu_profile_whois'];
?>
</a>
</li>
<?php
echo smarty_function_hook(array('run' => 'menu_profile_whois_item', 'oUserProfile' => $_smarty_tpl->tpl_vars['oUserProfile']->value), $_smarty_tpl);
?>
</ul>
<?php
echo smarty_function_hook(array('run' => 'menu_profile_whois', 'oUserProfile' => $_smarty_tpl->tpl_vars['oUserProfile']->value), $_smarty_tpl);
?>
<?php
}
开发者ID:olegverstka,项目名称:kprf.dev,代码行数:35,代码来源:1a470688ad3bd4479ad68285b493422c9cad6078.file.menu.profile_whois.tpl.php
示例3: 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
示例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_5684d6cb8d3b94_72141234
function content_5684d6cb8d3b94_72141234($_smarty_tpl)
{
if (!is_callable('smarty_function_hook')) {
include '/var/www/bunker//engine/modules/viewer/plugs/function.hook.php';
}
echo $_smarty_tpl->getSubTemplate('topic_part_header.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
?>
<div class="topic-content text">
<?php
echo smarty_function_hook(array('run' => 'topic_content_begin', 'topic' => $_smarty_tpl->tpl_vars['oTopic']->value, 'bTopicList' => $_smarty_tpl->tpl_vars['bTopicList']->value), $_smarty_tpl);
?>
<?php
if ($_smarty_tpl->tpl_vars['bTopicList']->value) {
?>
<?php
echo $_smarty_tpl->tpl_vars['oTopic']->value->getTextShort();
?>
<?php
} else {
?>
<?php
echo $_smarty_tpl->tpl_vars['oTopic']->value->getText();
?>
<?php
}
?>
<?php
echo smarty_function_hook(array('run' => 'topic_content_end', 'topic' => $_smarty_tpl->tpl_vars['oTopic']->value, 'bTopicList' => $_smarty_tpl->tpl_vars['bTopicList']->value), $_smarty_tpl);
?>
</div>
<?php
echo $_smarty_tpl->getSubTemplate('topic_part_footer.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
?>
<?php
}
开发者ID:lunavod,项目名称:bunker_stable,代码行数:48,代码来源:90ef04e1f704bbf81d5e24115b416ae8f942b21a.file.topic_topic.tpl.php
示例6: content_5577f8e6325fc4_97292412
function content_5577f8e6325fc4_97292412($_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';
}
if (!is_callable('smarty_block_hookb')) {
include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/block.hookb.php';
}
if (!is_callable('smarty_function_cfg')) {
include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.cfg.php';
}
if (!$_smarty_tpl->tpl_vars['oUserCurrent']->value) {
?>
<div class="modal modal-login" id="window_login_form">
<header class="modal-header">
<a href="#" class="close jqmClose"></a>
</header>
<script type="text/javascript">
jQuery(function($){
$('#popup-login-form').bind('submit',function(){
ls.user.login('popup-login-form');
return false;
});
$('#popup-login-form-submit').attr('disabled',false);
});
</script>
<div class="modal-content">
<ul class="nav nav-pills nav-pills-tabs">
<li class="active js-block-popup-login-item" data-type="login"><a href="#"><?php
echo $_smarty_tpl->tpl_vars['aLang']->value['user_login_submit'];
?>
</a></li>
<?php
if (!$_smarty_tpl->tpl_vars['oConfig']->value->GetValue('general.reg.invite')) {
?>
<li class="js-block-popup-login-item" data-type="registration"><a href="#"><?php
echo $_smarty_tpl->tpl_vars['aLang']->value['registration'];
?>
</a></li>
<?php
} else {
?>
<li><a href="<?php
echo smarty_function_router(array('page' => 'registration'), $_smarty_tpl);
?>
"><?php
echo $_smarty_tpl->tpl_vars['aLang']->value['registration'];
?>
</a></li>
<?php
}
?>
<li class="js-block-popup-login-item" data-type="reminder"><a href="#"><?php
echo $_smarty_tpl->tpl_vars['aLang']->value['password_reminder'];
?>
</a></li>
</ul>
<div class="tab-content js-block-popup-login-content" data-type="login">
<?php
echo smarty_function_hook(array('run' => 'login_popup_begin'), $_smarty_tpl);
?>
<form action="<?php
echo smarty_function_router(array('page' => 'login'), $_smarty_tpl);
?>
" method="post" id="popup-login-form">
<?php
echo smarty_function_hook(array('run' => 'form_login_popup_begin'), $_smarty_tpl);
?>
<p><input type="text" name="login" id="popup-login" placeholder="<?php
echo $_smarty_tpl->tpl_vars['aLang']->value['user_login'];
?>
" class="input-text input-width-full"></p>
<p><input type="password" name="password" id="popup-password" placeholder="<?php
echo $_smarty_tpl->tpl_vars['aLang']->value['user_password'];
?>
" class="input-text input-width-300" style="width: 322px">
<button type="submit" name="submit_login" class="button button-primary" id="popup-login-form-submit" disabled="disabled"><?php
echo $_smarty_tpl->tpl_vars['aLang']->value['user_login_submit'];
?>
</button></p>
<label class="remember-label"><input type="checkbox" name="remember" class="input-checkbox" checked /> <?php
echo $_smarty_tpl->tpl_vars['aLang']->value['user_login_remember'];
?>
</label>
<small class="validate-error-hide validate-error-login"></small>
<?php
//.........这里部分代码省略.........
开发者ID:olegverstka,项目名称:kprf.dev,代码行数:101,代码来源:a9f39a861a42eeb1f101260ff091014f1eb22441.file.window_login.tpl.php
示例7: content_5684d6e3f27631_29807133
function content_5684d6e3f27631_29807133($_smarty_tpl)
{
if (!is_callable('smarty_function_router')) {
include '/var/www/bunker//engine/modules/viewer/plugs/function.router.php';
}
if (!is_callable('smarty_function_hook')) {
include '/var/www/bunker//engine/modules/viewer/plugs/function.hook.php';
}
?>
<ul class="nav-foldable">
<li <?php
if ($_smarty_tpl->tpl_vars['sMenuItemSelect']->value == 'topic') {
?>
class="active"<?php
}
?>
><a href="<?php
echo smarty_function_router(array('page' => 'topic'), $_smarty_tpl);
?>
add/"><?php
echo $_smarty_tpl->tpl_vars['aLang']->value['block_create'];
?>
<?php
echo $_smarty_tpl->tpl_vars['aLang']->value['topic_menu_add'];
?>
</a></li>
<li <?php
if ($_smarty_tpl->tpl_vars['sMenuItemSelect']->value == 'blog') {
?>
class="active"<?php
}
?>
><a href="<?php
echo smarty_function_router(array('page' => 'blog'), $_smarty_tpl);
?>
add/"><?php
echo $_smarty_tpl->tpl_vars['aLang']->value['block_create'];
?>
<?php
echo $_smarty_tpl->tpl_vars['aLang']->value['blog_menu_create'];
?>
</a></li>
<?php
echo smarty_function_hook(array('run' => 'menu_create_item', 'sMenuItemSelect' => $_smarty_tpl->tpl_vars['sMenuItemSelect']->value), $_smarty_tpl);
?>
</ul>
<?php
if ($_smarty_tpl->tpl_vars['sMenuItemSelect']->value == 'topic') {
?>
<ul class="nav-foldable">
<li <?php
if ($_smarty_tpl->tpl_vars['sMenuSubItemSelect']->value == 'topic') {
?>
class="active"<?php
}
?>
><a href="<?php
echo smarty_function_router(array('page' => 'topic'), $_smarty_tpl);
?>
add/"><?php
echo $_smarty_tpl->tpl_vars['aLang']->value['topic_menu_add_topic'];
?>
</a></li>
<li <?php
if ($_smarty_tpl->tpl_vars['sMenuSubItemSelect']->value == 'question') {
?>
class="active"<?php
}
?>
><a href="<?php
echo smarty_function_router(array('page' => 'question'), $_smarty_tpl);
?>
add/"><?php
echo $_smarty_tpl->tpl_vars['aLang']->value['topic_menu_add_question'];
?>
</a></li>
<li <?php
if ($_smarty_tpl->tpl_vars['sMenuSubItemSelect']->value == 'link') {
?>
class="active"<?php
}
?>
><a href="<?php
echo smarty_function_router(array('page' => 'link'), $_smarty_tpl);
?>
add/"><?php
echo $_smarty_tpl->tpl_vars['aLang']->value['topic_menu_add_link'];
?>
</a></li>
<li <?php
if ($_smarty_tpl->tpl_vars['sMenuSubItemSelect']->value == 'photoset') {
?>
class="active"<?php
}
?>
><a href="<?php
echo smarty_function_router(array('page' => 'photoset'), $_smarty_tpl);
//.........这里部分代码省略.........
开发者ID:lunavod,项目名称:bunker_stable,代码行数:101,代码来源:d45e7095a2285b5a11e9677e85d57152a25ea914.file.menu.create.tpl.php
示例8: content_5684d70d08b5f5_43639404
function content_5684d70d08b5f5_43639404($_smarty_tpl)
{
if (!is_callable('smarty_function_hook')) {
include '/var/www/bunker//engine/modules/viewer/plugs/function.hook.php';
}
echo $_smarty_tpl->getSubTemplate('topic_part_header.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
?>
<div class="topic-content text">
<?php
echo smarty_function_hook(array('run' => 'topic_content_begin', 'topic' => $_smarty_tpl->tpl_vars['oTopic']->value, 'bTopicList' => $_smarty_tpl->tpl_vars['bTopicList']->value), $_smarty_tpl);
?>
<?php
if ($_smarty_tpl->tpl_vars['bTopicList']->value) {
?>
<?php
echo $_smarty_tpl->tpl_vars['oTopic']->value->getTextShort();
?>
<?php
} else {
?>
<?php
echo $_smarty_tpl->tpl_vars['oTopic']->value->getText();
?>
<?php
}
?>
<?php
echo smarty_function_hook(array('run' => 'topic_content_end', 'topic' => $_smarty_tpl->tpl_vars['oTopic']->value, 'bTopicList' => $_smarty_tpl->tpl_vars['bTopicList']->value), $_smarty_tpl);
?>
</div>
<?php
if ($_smarty_tpl->tpl_vars['bTopicList']->value && $_smarty_tpl->tpl_vars['oTopic']->value->getTextShort() != $_smarty_tpl->tpl_vars['oTopic']->value->getText()) {
?>
<div class="topic-more">
<a href="<?php
echo $_smarty_tpl->tpl_vars['oTopic']->value->getUrl();
?>
#cut" title="<?php
echo $_smarty_tpl->tpl_vars['aLang']->value['topic_read_more'];
?>
" class="button button-primary">
<?php
if ($_smarty_tpl->tpl_vars['oTopic']->value->getCutText()) {
?>
<?php
echo $_smarty_tpl->tpl_vars['oTopic']->value->getCutText();
?>
<?php
} else {
?>
<?php
echo $_smarty_tpl->tpl_vars['aLang']->value['topic_read_more'];
?>
<?php
}
?>
</a>
</div>
<?php
}
?>
<?php
echo $_smarty_tpl->getSubTemplate('topic_part_footer.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
?>
<?php
}
开发者ID:lunavod,项目名称:bunker_stable,代码行数:82,代码来源:5a3e6f96f8adda677664ecb1b92bfd97c4a77795.file.topic_topic.tpl.php
示例9: content_5684d6cb047511_64957306
function content_5684d6cb047511_64957306($_smarty_tpl)
{
if (!is_callable('smarty_function_cfg')) {
include '/var/www/bunker//engine/modules/viewer/plugs/function.cfg.php';
}
if (!is_callable('smarty_function_router')) {
include '/var/www/bunker//engine/modules/viewer/plugs/function.router.php';
}
if (!is_callable('smarty_function_hook')) {
include '/var/www/bunker//engine/modules/viewer/plugs/function.hook.php';
}
?>
<input type="checkbox" id="hmt" class="hidden-menu-ticker">
<label class="btn-menu" for="hmt">
<span class="first"></span>
<span class="second"></span>
<span class="third"></span>
<a href="/">
<img src="<?php
echo smarty_function_cfg(array('name' => "path.static.skin"), $_smarty_tpl);
?>
/logo.png" class="logo">
</a>
</label>
<div class="nav nav-userbar hidden-menu">
<ul>
<a href="/">
</a>
<?php
if ($_smarty_tpl->tpl_vars['oUserCurrent']->value) {
?>
<li class="nav-userbar-username" title="<?php
echo $_smarty_tpl->tpl_vars['oUserCurrent']->value->getLogin();
?>
">
<a href="<?php
echo $_smarty_tpl->tpl_vars['oUserCurrent']->value->getUserWebPath();
?>
" class="username">
<?php
echo $_smarty_tpl->tpl_vars['oUserCurrent']->value->getLogin();
?>
<img src="<?php
echo $_smarty_tpl->tpl_vars['oUserCurrent']->value->getProfileAvatarPath(24);
?>
" alt="avatar" class="avatar" />
</a>
</li>
<li title="<?php
echo $_smarty_tpl->tpl_vars['aLang']->value['block_create'];
?>
">
<a href="<?php
echo smarty_function_router(array('page' => 'topic'), $_smarty_tpl);
?>
add/" class="write" id="modal_write_show">
<?php
echo $_smarty_tpl->tpl_vars['aLang']->value['block_create'];
?>
<i class="fa fa-pencil-square-o"></i>
</a>
</li>
<li title="<?php
echo $_smarty_tpl->tpl_vars['aLang']->value['user_privat_messages'];
if ($_smarty_tpl->tpl_vars['iUserCurrentCountTalkNew']->value) {
?>
(<?php
echo $_smarty_tpl->tpl_vars['iUserCurrentCountTalkNew']->value;
?>
)<?php
}
?>
">
<a href="<?php
echo smarty_function_router(array('page' => 'talk'), $_smarty_tpl);
?>
" <?php
if ($_smarty_tpl->tpl_vars['iUserCurrentCountTalkNew']->value) {
?>
class="new-messages"<?php
}
?>
id="new_messages">
<?php
echo $_smarty_tpl->tpl_vars['aLang']->value['user_privat_messages'];
if ($_smarty_tpl->tpl_vars['iUserCurrentCountTalkNew']->value) {
?>
(<?php
echo $_smarty_tpl->tpl_vars['iUserCurrentCountTalkNew']->value;
?>
)<?php
}
?>
<i class="fa fa-envelope<?php
if (!$_smarty_tpl->tpl_vars['iUserCurrentCountTalkNew']->value) {
?>
-o<?php
//.........这里部分代码省略.........
开发者ID:lunavod,项目名称:bunker_stable,代码行数:101,代码来源:6d0062f367c0549ebca02c8448b9faada4e29ff0.file.userbar.tpl.php
示例10: content_5577f7814f34e6_65079724
function content_5577f7814f34e6_65079724($_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_modifier_declension')) {
include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/modifier.declension.php';
}
if (!is_callable('smarty_function_hook')) {
include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.hook.php';
}
?>
<div class="modal modal-write" id="modal_write">
<header class="modal-header">
<a href="#" class="close jqmClose"></a>
</header>
<div class="modal-content"><ul class="write-list"><?php
if ($_smarty_tpl->tpl_vars['iUserCurrentCountTopicDraft']->value) {
?>
<li class="write-item-type-draft"><a href="<?php
echo smarty_function_router(array('page' => 'topic'), $_smarty_tpl);
?>
saved/" class="write-item-image"></a><a href="<?php
echo smarty_function_router(array('page' => 'topic'), $_smarty_tpl);
?>
saved/" class="write-item-link"><?php
echo $_smarty_tpl->tpl_vars['iUserCurrentCountTopicDraft']->value;
?>
<?php
echo smarty_modifier_declension($_smarty_tpl->tpl_vars['iUserCurrentCountTopicDraft']->value, $_smarty_tpl->tpl_vars['aLang']->value['draft_declension'], 'russian');
?>
</a></li><?php
}
?>
<li class="write-item-type-topic"><a href="<?php
echo smarty_function_router(array('page' => 'topic'), $_smarty_tpl);
?>
add" class="write-item-image"></a><a href="<?php
echo smarty_function_router(array('page' => 'topic'), $_smarty_tpl);
?>
add" class="write-item-link"><?php
echo $_smarty_tpl->tpl_vars['aLang']->value['block_create_topic_topic'];
?>
</a></li><li class="write-item-type-blog"><a href="<?php
echo smarty_function_router(array('page' => 'blog'), $_smarty_tpl);
?>
add" class="write-item-image"></a><a href="<?php
echo smarty_function_router(array('page' => 'blog'), $_smarty_tpl);
?>
add" class="write-item-link"><?php
echo $_smarty_tpl->tpl_vars['aLang']->value['block_create_blog'];
?>
</a></li><li class="write-item-type-message"><a href="<?php
echo smarty_function_router(array('page' => 'talk'), $_smarty_tpl);
?>
add" class="write-item-image"></a><a href="<?php
echo smarty_function_router(array('page' => 'talk'), $_smarty_tpl);
?>
add" class="write-item-link"><?php
echo $_smarty_tpl->tpl_vars['aLang']->value['block_create_talk'];
?>
</a></li><?php
echo smarty_function_hook(array('run' => 'write_item', 'isPopup' => true), $_smarty_tpl);
?>
</ul></div>
</div>
<?php
}
开发者ID:olegverstka,项目名称:kprf.dev,代码行数:69,代码来源:40cfeff7b60f36d3688755d244501bbb199a6782.file.window_write.tpl.php
示例11: content_5684d6ccd5b518_12381183
function content_5684d6ccd5b518_12381183($_smarty_tpl)
{
if (!is_callable('smarty_function_router')) {
include '/var/www/bunker//engine/modules/viewer/plugs/function.router.php';
}
if (!is_callable('smarty_function_hook')) {
include '/var/www/bunker//engine/modules/viewer/plugs/function.hook.php';
}
?>
<ul class="nav nav-list nav-menu well well-small">
<li class="nav-header"><?php
echo $_smarty_tpl->tpl_vars['oLang']->value->_adm_menu_panel;
?>
</li>
<li class="nav-menu_info <?php
if ($_smarty_tpl->tpl_vars['sEvent']->value == '' || $_smarty_tpl->tpl_vars['sEvent']->value == 'info') {
?>
active<?php
}
?>
">
<a href="<?php
echo smarty_function_router(array('page' => 'admin'), $_smarty_tpl);
?>
info/"><?php
echo $_smarty_tpl->tpl_vars['oLang']->value->_adm_menu_info;
?>
</a>
</li>
<li class="nav-menu_params <?php
if ($_smarty_tpl->tpl_vars['sMenuSubItemSelect']->value == 'params') {
?>
active<?php
}
?>
">
<a href="<?php
echo smarty_function_router(array('page' => 'admin'), $_smarty_tpl);
?>
params/"><?php
echo $_smarty_tpl->tpl_vars['oLang']->value->adm_menu_params;
?>
</a>
</li>
<li class="nav-header"><?php
echo $_smarty_tpl->tpl_vars['oLang']->value->_adm_menu_config;
?>
</li>
<li class="nav-menu_settings <?php
if ($_smarty_tpl->tpl_vars['sMenuSubItemSelect']->value == 'settings') {
?>
active<?php
}
?>
">
<a href="<?php
echo smarty_function_router(array('page' => 'admin'), $_smarty_tpl);
?>
site/settings/"><?php
echo $_smarty_tpl->tpl_vars['oLang']->value->_adm_menu_settings;
?>
</a>
</li>
<li class="nav-menu_reset <?php
if ($_smarty_tpl->tpl_vars['sMenuSubItemSelect']->value == 'reset') {
?>
active<?php
}
?>
">
<a href="<?php
echo smarty_function_router(array('page' => 'admin'), $_smarty_tpl);
?>
site/reset/"><?php
echo $_smarty_tpl->tpl_vars['oLang']->value->_adm_menu_reset;
?>
</a>
</li>
<li class="nav-menu_plugins <?php
if ($_smarty_tpl->tpl_vars['sMenuSubItemSelect']->value == 'plugins') {
?>
active<?php
}
?>
">
<a href="<?php
echo smarty_function_router(array('page' => 'admin'), $_smarty_tpl);
?>
plugins/"><?php
echo $_smarty_tpl->tpl_vars['oLang']->value->_adm_menu_plugins;
?>
</a>
</li>
<li class="nav-header"><?php
echo $_smarty_tpl->tpl_vars['oLang']->value->_adm_menu_site;
?>
</li>
<li class="nav-menu_users <?php
//.........这里部分代码省略.........
开发者ID:lunavod,项目名称:bunker_stable,代码行数:101,代码来源:1b4f40dff7d49feff505445210b67138b493125c.file.inc.menu.main.tpl.php
示例12: content_55797af6597b13_48897372
function content_55797af6597b13_48897372($_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">
<li <?php
if ($_smarty_tpl->tpl_vars['sMenuItemSelect']->value == 'all') {
?>
class="active"<?php
}
?>
><a href="<?php
echo smarty_function_router(array('page' => 'people'), $_smarty_tpl);
?>
"><?php
echo $_smarty_tpl->tpl_vars['aLang']->value['people_menu_users_all'];
?>
</a></li>
<li <?php
if ($_smarty_tpl->tpl_vars['sMenuItemSelect']->value == 'online') {
?>
class="active"<?php
}
?>
><a href="<?php
echo smarty_function_router(array('page' => 'people'), $_smarty_tpl);
?>
online/"><?php
echo $_smarty_tpl->tpl_vars['aLang']->value['people_menu_users_online'];
?>
</a></li>
<li <?php
if ($_smarty_tpl->tpl_vars['sMenuItemSelect']->value == 'new') {
?>
class="active"<?php
}
?>
><a href="<?php
echo smarty_function_router(array('page' => 'people'), $_smarty_tpl);
?>
new/"><?php
echo $_smarty_tpl->tpl_vars['aLang']->value['people_menu_users_new'];
?>
</a></li>
<?php
echo smarty_function_hook(array('run' => 'menu_people_people_item'), $_smarty_tpl);
?>
</ul>
<?php
echo smarty_function_hook(array('run' => 'menu_people'), $_smarty_tpl);
?>
<?php
}
开发者ID:olegverstka,项目名称:kprf.dev,代码行数:62,代码来源:f9f4d244a760f3238a29745f10996483d9fab7ea.file.menu.people.tpl.php
示例13: content_5684d6e4153a72_98738086
function content_5684d6e4153a72_98738086($_smarty_tpl)
{
if (!is_callable('smarty_function_hook')) {
include '/var/www/bunker//engine/modules/viewer/plugs/function.hook.php';
}
if (!is_callable('smarty_function_router')) {
include '/var/www/bunker//engine/modules/viewer/plugs/function.router.php';
}
if (!is_callable('smarty_function_cfg')) {
include '/var/www/bunker//engine/modules/viewer/plugs/function.cfg.php';
}
?>
<?php
echo smarty_function_hook(array('run' => 'content_end'), $_smarty_tpl);
?>
</div> <!-- /content -->
<footer id="footer">
<?php
if ($_smarty_tpl->tpl_vars['oUserCurrent']->value) {
?>
<ul class="footer-profile-links clearfix">
<li><a href="<?php
echo $_smarty_tpl->tpl_vars['oUserCurrent']->value->getUserWebPath();
?>
"><i class="icon-profile-profile"></i></a></li>
<li><a href="<?php
echo smarty_function_router(array('page' => 'talk'), $_smarty_tpl);
?>
"><i class="icon-profile-messages"></i></a></li>
<li><a href="<?php
echo $_smarty_tpl->tpl_vars['oUserCurrent']->value->getUserWebPath();
?>
created/topics/"><i class="icon-profile-submited"></i></a></li>
<li><a href="<?php
echo $_smarty_tpl->tpl_vars['oUserCurrent']->value->getUserWebPath();
?>
favourites/topics/"><i class="icon-profile-favourites"></i></a></li>
<li><a href="<?php
echo $_smarty_tpl->tpl_vars['oUserCurrent']->value->getUserWebPath();
?>
friends/"><i class="icon-profile-friends"></i></a></li>
<li><a href="<?php
echo smarty_function_router(array('page' => 'stream'), $_smarty_tpl);
?>
"><i class="icon-profile-activity"></i></a></li>
<li><a href="<?php
echo smarty_function_router(array('page' => 'settings'), $_smarty_tpl);
?>
"><i class="icon-profile-settings"></i></a></li>
</ul>
<?php
}
?>
<div class="footer-inner">
<ul class="footer-links clearfix">
<li><a href="<?php
echo smarty_function_cfg(array('name' => 'path.root.web'), $_smarty_tpl);
?>
/?force-mobile=off"><?php
echo $_smarty_tpl->tpl_vars['aLang']->value['desktop_version'];
?>
</a></li>
<li><a href="<?php
echo smarty_function_router(array('page' => 'rss'), $_smarty_tpl);
?>
">RSS</a></li>
</ul>
<div class="copyright">
© <?php
echo smarty_function_cfg(array('name' => 'view.name'), $_smarty_tpl);
?>
<br />
<br />
<?php
echo smarty_function_hook(array('run' => 'copyright'), $_smarty_tpl);
?>
<br />
Дизайн от <a href="http://designmobile.ru">DesignMobile</a>
</div>
</div>
<?php
echo smarty_function_hook(array('run' => 'footer_end'), $_smarty_tpl);
?>
</footer>
</div> <!-- /wrapper -->
</div> <!-- /container -->
<?php
echo smarty_function_hook(array('run' => 'body_end'), $_smarty_tpl);
?>
//.........这里部分代码省略.........
开发者ID:lunavod,项目名称:bunker_stable,代码行数:101,代码来源:ba826c1a84b9bc34630b9adb53d0157f48e07999.file.footer.tpl.php
示例14: content_5577f78155b131_89638652
function content_5577f78155b131_89638652($_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_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';
}
?>
<header id="header" role="banner">
<?php
echo smarty_function_hook(array('run' => 'header_banner_begin'), $_smarty_tpl);
?>
<h1 class="site-name"><a href="<?php
echo smarty_function_cfg(array('name' => 'path.root.web'), $_smarty_tpl);
?>
"><?php
echo smarty_function_cfg(array('name' => 'view.name'), $_smarty_tpl);
?>
</a></h1>
<ul class="nav nav-main" id="nav-main">
<!--<li <?php
if ($_smarty_tpl->tpl_vars['sMenuHeadItemSelect']->value == 'blog') {
?>
class="active"<?php
}
?>
><a href="<?php
echo smarty_function_cfg(array('name' => 'path.root.web'), $_smarty_tpl);
?>
"><?php
echo $_smarty_tpl->tpl_vars['aLang']->value['topic_title'];
?>
</a> <i></i></li>
<li <?php
if ($_smarty_tpl->tpl_vars['sMenuHeadItemSelect']->value == 'blogs') {
?>
class="active"<?php
}
?>
><a href="<?php
echo smarty_function_router(array('page' => 'blogs'), $_smarty_tpl);
?>
"><?php
echo $_smarty_tpl->tpl_vars['aLang']->value['blogs'];
?>
</a> <i></i></li>
<li <?php
if ($_smarty_tpl->tpl_vars['sMenuHeadItemSelect']->value == 'people') {
?>
class="active"<?php
}
?>
><a href="<?php
echo smarty_function_router(array('page' => 'people'), $_smarty_tpl);
?>
"><?php
echo $_smarty_tpl->tpl_vars['aLang']->value['people'];
?>
</a> <i></i></li>
<li <?php
if ($_smarty_tpl->tpl_vars['sMenuHeadItemSelect']->value == 'stream') {
?>
class="active"<?php
}
?>
><a href="<?php
echo smarty_function_router(array('page' => 'stream'), $_smarty_tpl);
?>
"><?php
echo $_smarty_tpl->tpl_vars['aLang']->value['stream_menu'];
?>
</a> <i></i></li> -->
<?php
echo smarty_function_hook(array('run' => 'main_menu_item'), $_smarty_tpl);
?>
<li class="nav-main-more"><a href="#" id="dropdown-mainmenu-trigger" onclick="return false"><?php
echo $_smarty_tpl->tpl_vars['aLang']->value['more'];
?>
</a></li>
</ul>
<ul class="dropdown-nav-main dropdown-menu" id="dropdown-mainmenu-menu"></ul>
<?php
echo smarty_function_hook(array('run' => 'main_menu'), $_smarty_tpl);
?>
<?php
//.........这里部分代码省略.........
开发者ID:olegverstka,项目名称:kprf.dev,代码行数:101,代码来源:50edb50d051c488ad28124f7fc7233a1409ec9ef.file.header_top.tpl.php
示例15: content_5577f7814cdac0_58090673
function content_5577f7814cdac0_58090673($_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_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';
}
if (!is_callable('smarty_function_json')) {
include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.json.php';
}
if (!is_callable('smarty_function_add_block')) {
include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.add_block.php';
}
?>
<!doctype html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="ru"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="ru"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="ru"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="ru"> <!--<![endif]-->
<head>
<?php
echo smarty_function_hook(array('run' => 'html_head_begin'), $_smarty_tpl);
?>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title><?php
echo $_smarty_tpl->tpl_vars['sHtmlTitle']->value;
?>
</title>
<meta name="description" content="<?php
echo $_smarty_tpl->tpl_vars['sHtmlDescription']->value;
?>
">
<meta name="keywords" content="<?php
echo $_smarty_tpl->tpl_vars['sHtmlKeywords']->value;
?>
">
<?php
echo $_smarty_tpl->tpl_vars['aHtmlHeadFiles']->value['css'];
?>
<link href='http://fonts.googleapis.com/css?family=PT+Sans:400,700&subset=latin,cyrillic' rel='stylesheet' type='text/css'>
<link href="<?php
echo smarty_function_cfg(array('name' => 'path.static.skin'), $_smarty_tpl);
?>
/images/favicon.ico?v1" rel="shortcut icon" />
<link rel="search" type="application/opensearchdescription+xml" href="<?php
echo smarty_function_router(array('page' => 'search'), $_smarty_tpl);
?>
opensearch/" title="<?php
echo smarty_function_cfg(array('name' => 'view.name'), $_smarty_tpl);
?>
" />
<?php
if ($_smarty_tpl->tpl_vars['aHtmlRssAlternate']->value) {
?>
<link rel="alternate" type="application/rss+xml" href="<?php
echo $_smarty_tpl->tpl_vars['aHtmlRssAlternate']->value['url'];
?>
" title="<?php
echo $_smarty_tpl->tpl_vars['aHtmlRssAlternate']->value['title'];
?>
">
<?php
}
?>
<?php
if ($_smarty_tpl->tpl_vars['sHtmlCanonical']->value) {
?>
<link rel="canonical" href="<?php
echo $_smarty_tpl->tpl_vars['sHtmlCanonical']->value;
?>
" />
<?php
}
?>
<?php
if ($_smarty_tpl->tpl_vars['bRefreshToHome']->value) {
?>
<meta HTTP-EQUIV="Refresh" CONTENT="3; URL=<?php
echo smarty_function_cfg(array('name' => 'path.root.web'), $_smarty_tpl);
?>
/">
<?php
//.........这里部分代码省略.........
开发者ID:olegverstka,项目名称:kprf.dev,代码行数:101,代码来源:9a2a03a9f053606bbe5107128592ec0232d21092.file.header.tpl.php