function content_5684d6e40788a6_62890551($_smarty_tpl) { if (!is_callable('smarty_function_cfg')) { include '/var/www/bunker//engine/modules/viewer/plugs/function.cfg.php'; } if (!is_callable('smarty_function_lang_load')) { include '/var/www/bunker//engine/modules/viewer/plugs/function.lang_load.php'; } if ($_smarty_tpl->tpl_vars['oConfig']->value->GetValue('view.tinymce')) { ?> <?php if (!$_smarty_tpl->tpl_vars['sSettingsTinymce']->value) { ?> <?php $_smarty_tpl->tpl_vars["sSettingsTinymce"] = new Smarty_variable("ls.settings.getTinymce()", null, 0); ?> <?php } ?> <script src="<?php echo smarty_function_cfg(array('name' => 'path.root.engine_lib'), $_smarty_tpl); ?> /external/tinymce-jq/tiny_mce.js"></script> <script type="text/javascript"> jQuery(function($){ tinyMCE.init(<?php echo $_smarty_tpl->tpl_vars['sSettingsTinymce']->value; ?> ); }); </script> <?php } else { ?> <?php if (!$_smarty_tpl->tpl_vars['sImgToLoad']->value) { ?> <?php $_smarty_tpl->tpl_vars["sImgToLoad"] = new Smarty_variable("topic_text", null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate('window_load_img.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('sToLoad' => $_smarty_tpl->tpl_vars['sImgToLoad']->value), 0); ?> <?php if (!$_smarty_tpl->tpl_vars['sSettingsTinymce']->value) { ?> <?php $_smarty_tpl->tpl_vars["sSettingsMarkitup"] = new Smarty_variable("ls.settings.getMarkitup()", null, 0); ?> <?php } ?> <script type="text/javascript"> jQuery(function($){ ls.lang.load(<?php echo smarty_function_lang_load(array('name' => "panel_b,panel_i,panel_u,panel_s,panel_url,panel_url_promt,panel_code,panel_video,panel_image,panel_cut,panel_quote,panel_list,panel_list_ul,panel_list_ol,panel_title,panel_clear_tags,panel_video_promt,panel_list_li,panel_image_promt,panel_user,panel_user_promt"), $_smarty_tpl); ?> ); // Подключаем редактор $('.markitup-editor').markItUp(<?php echo $_smarty_tpl->tpl_vars['sSettingsMarkitup']->value; ?> ); }); </script> <?php } }
function content_568441c1e0cb73_32964196($_smarty_tpl) { if (!is_callable('smarty_function_lang_load')) { include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.lang_load.php'; } if (!is_callable('smarty_function_hook')) { include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.hook.php'; } if ($_smarty_tpl->tpl_vars['sEvent']->value == 'add') { ?> <?php echo $_smarty_tpl->getSubTemplate('header.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('menu_content' => 'create'), 0); ?> <?php } else { ?> <?php echo $_smarty_tpl->getSubTemplate('header.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?> <?php echo $_smarty_tpl->getSubTemplate('menu.blog_edit.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate('editor.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('sImgToLoad' => 'blog_description', 'sSettingsTinymce' => 'ls.settings.getTinymceComment()', 'sSettingsMarkitup' => 'ls.settings.getMarkitupComment()'), 0); ?> <script type="text/javascript"> jQuery(document).ready(function($){ ls.lang.load(<?php echo smarty_function_lang_load(array('name' => "blog_create_type_open_notice,blog_create_type_close_notice"), $_smarty_tpl); ?> ); ls.blog.loadInfoType($('#blog_type').val()); }); </script> <form method="post" enctype="multipart/form-data" class="wrapper-content"> <?php echo smarty_function_hook(array('run' => 'form_add_blog_begin'), $_smarty_tpl); ?> <input type="hidden" name="security_ls_key" value="<?php echo $_smarty_tpl->tpl_vars['LIVESTREET_SECURITY_KEY']->value; ?> " /> <p><label for="blog_title"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['blog_create_title']; ?> :</label> <input type="text" id="blog_title" name="blog_title" value="<?php echo $_smarty_tpl->tpl_vars['_aRequest']->value['blog_title']; ?> " class="input-text input-width-full" /> <small class="note"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['blog_create_title_notice']; ?> </small></p> <p><label for="blog_url"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['blog_create_url']; ?> :</label> <input type="text" id="blog_url" name="blog_url" value="<?php echo $_smarty_tpl->tpl_vars['_aRequest']->value['blog_url']; ?> " class="input-text input-width-full" <?php if ($_smarty_tpl->tpl_vars['_aRequest']->value['blog_id'] && !$_smarty_tpl->tpl_vars['oUserCurrent']->value->isAdministrator()) { ?> disabled<?php } ?> /> <small class="note"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['blog_create_url_notice']; ?> </small></p> <p><label for="blog_type"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['blog_create_type']; ?> :</label> <select name="blog_type" id="blog_type" class="input-width-200" onChange="ls.blog.loadInfoType(jQuery(this).val());"> <option value="open" <?php if ($_smarty_tpl->tpl_vars['_aRequest']->value['blog_type'] == 'open') { ?> selected<?php } ?> ><?php echo $_smarty_tpl->tpl_vars['aLang']->value['blog_create_type_open']; ?> </option> <option value="close" <?php if ($_smarty_tpl->tpl_vars['_aRequest']->value['blog_type'] == 'close') { ?> selected<?php } ?> ><?php echo $_smarty_tpl->tpl_vars['aLang']->value['blog_create_type_close']; ?> </option> </select> <small class="note" id="blog_type_note"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['blog_create_type_open_notice']; ?> </small></p> <p><label for="blog_description"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['blog_create_description']; ?> :</label> <textarea name="blog_description" id="blog_description" rows="15" class="input-text input-width-full mce-editor markitup-editor input-width-full"><?php echo $_smarty_tpl->tpl_vars['_aRequest']->value['blog_description']; ?> </textarea> <small class="note"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['blog_create_description_notice']; ?> </small></p> <p><label for="blog_limit_rating_topic"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['blog_create_rating']; ?> :</label> <input type="text" id="blog_limit_rating_topic" name="blog_limit_rating_topic" value="<?php echo $_smarty_tpl->tpl_vars['_aRequest']->value['blog_limit_rating_topic']; ?> " class="input-text input-width-100" /> <small class="note"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['blog_create_rating_notice']; ?> </small></p> <p> <?php if ($_smarty_tpl->tpl_vars['oBlogEdit']->value && $_smarty_tpl->tpl_vars['oBlogEdit']->value->getAvatar()) { ?> <div class="avatar-edit"> <?php $_smarty_tpl->tpl_vars['iSize'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['iSize']->_loop = false; $_from = $_smarty_tpl->tpl_vars['oConfig']->value->GetValue('module.blog.avatar_size'); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['iSize']->key => $_smarty_tpl->tpl_vars['iSize']->value) { $_smarty_tpl->tpl_vars['iSize']->_loop = true; ?> <?php if ($_smarty_tpl->tpl_vars['iSize']->value) { ?> <img src="<?php ob_start(); echo $_smarty_tpl->tpl_vars['iSize']->value; $_tmp1 = ob_get_clean(); echo $_smarty_tpl->tpl_vars['oBlogEdit']->value->getAvatarPath($_tmp1); ?> "><?php } ?> <?php } ?> <label><input type="checkbox" id="avatar_delete" name="avatar_delete" value="on" class="input-checkbox"> <?php echo $_smarty_tpl->tpl_vars['aLang']->value['blog_create_avatar_delete']; ?> </label> </div> <?php } ?> <label for="avatar"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['blog_create_avatar']; ?> :</label> <input type="file" name="avatar" id="avatar"> </p> <?php echo smarty_function_hook(array('run' => 'form_add_blog_end'), $_smarty_tpl); ?> <button type="submit" name="submit_blog_add" class="button button-primary"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['blog_create_submit']; ?> </button> </form> <?php echo $_smarty_tpl->getSubTemplate('footer.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); }
function content_5684d8b3b04123_44863027($_smarty_tpl) { if (!is_callable('smarty_function_lang_load')) { include '/var/www/bunker//engine/modules/viewer/plugs/function.lang_load.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'; } echo $_smarty_tpl->getSubTemplate('header.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('noBg' => true), 0); ?> <?php $_smarty_tpl->tpl_vars["oUserOwner"] = new Smarty_variable($_smarty_tpl->tpl_vars['oBlog']->value->getOwner(), null, 0); $_smarty_tpl->tpl_vars["oVote"] = new Smarty_variable($_smarty_tpl->tpl_vars['oBlog']->value->getVote(), null, 0); ?> <script type="text/javascript"> jQuery(function($){ ls.lang.load(<?php echo smarty_function_lang_load(array('name' => "blog_fold_info,blog_expand_info"), $_smarty_tpl); ?> ); }); </script> <?php if ($_smarty_tpl->tpl_vars['oUserCurrent']->value && $_smarty_tpl->tpl_vars['oUserCurrent']->value->isAdministrator()) { ?> <div id="blog_delete_form" class="modal"> <header class="modal-header"> <h3><?php echo $_smarty_tpl->tpl_vars['aLang']->value['blog_admin_delete_title']; ?> </h3> <a href="#" class="close jqmClose"></a> </header> <form action="<?php echo smarty_function_router(array('page' => 'blog'), $_smarty_tpl); ?> delete/<?php echo $_smarty_tpl->tpl_vars['oBlog']->value->getId(); ?> /" method="POST" class="modal-content"> <p><label for="topic_move_to"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['blog_admin_delete_move']; ?> :</label> <select name="topic_move_to" id="topic_move_to" class="input-width-full"> <option value="-1"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['blog_delete_clear']; ?> </option> <?php if ($_smarty_tpl->tpl_vars['aBlogs']->value) { ?> <optgroup label="<?php echo $_smarty_tpl->tpl_vars['aLang']->value['blogs']; ?> "> <?php $_smarty_tpl->tpl_vars['oBlogDelete'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['oBlogDelete']->_loop = false; $_from = $_smarty_tpl->tpl_vars['aBlogs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['oBlogDelete']->key => $_smarty_tpl->tpl_vars['oBlogDelete']->value) { $_smarty_tpl->tpl_vars['oBlogDelete']->_loop = true; ?> <option value="<?php echo $_smarty_tpl->tpl_vars['oBlogDelete']->value->getId(); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['oBlogDelete']->value->getTitle(), ENT_QUOTES, 'UTF-8', true); ?> </option> <?php } ?> </optgroup> <?php } ?> </select></p> <input type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['LIVESTREET_SECURITY_KEY']->value; ?> " name="security_ls_key" /> <button type="submit" class="button button-primary"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['blog_delete']; ?> </button> </form> </div> <?php } ?> <div class="blog"> <header class="blog-header"> <img src="<?php echo $_smarty_tpl->tpl_vars['oBlog']->value->getAvatarPath(64); ?> " alt="avatar" class="avatar" /> <h2><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['oBlog']->value->getTitle(), ENT_QUOTES, 'UTF-8', true); ?> </h2> <p> <?php echo $_smarty_tpl->tpl_vars['aLang']->value['blogs_rating']; ?> : <span id="vote_total_blog_alt_<?php echo $_smarty_tpl->tpl_vars['oBlog']->value->getId(); ?> "><?php echo $_smarty_tpl->tpl_vars['oBlog']->value->getRating(); ?> </span>, <?php echo $_smarty_tpl->tpl_vars['aLang']->value['blogs_readers']; ?> : <?php echo $_smarty_tpl->tpl_vars['oBlog']->value->getCountUser(); ?> </p> <a href="#" class="icon-blog-more" id="blog-more" onclick="ls.tools.slide(jQuery('#blog-more-content'), jQuery(this)); return false;"></a> </header> <div class="blog-more-content" id="blog-more-content" style="display: none;"> <div class="blog-content text"> <?php echo $_smarty_tpl->tpl_vars['oBlog']->value->getDescription(); ?> </div> <footer class="blog-footer"> <?php echo smarty_function_hook(array('run' => 'blog_info_begin', 'oBlog' => $_smarty_tpl->tpl_vars['oBlog']->value), $_smarty_tpl); ?> <strong><?php echo $_smarty_tpl->tpl_vars['aLang']->value['blog_user_administrators']; ?> (<?php echo $_smarty_tpl->tpl_vars['iCountBlogAdministrators']->value; ?> ):</strong> <a href="<?php echo $_smarty_tpl->tpl_vars['oUserOwner']->value->getUserWebPath(); ?> " class="user"><?php echo $_smarty_tpl->tpl_vars['oUserOwner']->value->getLogin(); ?> </a> <?php if ($_smarty_tpl->tpl_vars['aBlogAdministrators']->value) { ?> <?php $_smarty_tpl->tpl_vars['oBlogUser'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['oBlogUser']->_loop = false; $_from = $_smarty_tpl->tpl_vars['aBlogAdministrators']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['oBlogUser']->key => $_smarty_tpl->tpl_vars['oBlogUser']->value) { $_smarty_tpl->tpl_vars['oBlogUser']->_loop = true; ?> <?php $_smarty_tpl->tpl_vars["oUser"] = new Smarty_variable($_smarty_tpl->tpl_vars['oBlogUser']->value->getUser(), null, 0); ?> <a href="<?php echo $_smarty_tpl->tpl_vars['oUser']->value->getUserWebPath(); ?> " class="user"><?php echo $_smarty_tpl->tpl_vars['oUser']->value->getLogin(); ?> </a> <?php } ?> <?php } ?> <br /> <strong><?php echo $_smarty_tpl->tpl_vars['aLang']->value['blog_user_moderators']; ?> (<?php echo $_smarty_tpl->tpl_vars['iCountBlogModerators']->value; ?> ):</strong> <?php if ($_smarty_tpl->tpl_vars['aBlogModerators']->value) { ?> <?php $_smarty_tpl->tpl_vars['oBlogUser'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['oBlogUser']->_loop = false; $_from = $_smarty_tpl->tpl_vars['aBlogModerators']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['oBlogUser']->key => $_smarty_tpl->tpl_vars['oBlogUser']->value) { $_smarty_tpl->tpl_vars['oBlogUser']->_loop = true; ?> <?php $_smarty_tpl->tpl_vars["oUser"] = new Smarty_variable($_smarty_tpl->tpl_vars['oBlogUser']->value->getUser(), null, 0); ?> <a href="<?php echo $_smarty_tpl->tpl_vars['oUser']->value->getUserWebPath(); ?> " class="user"><?php echo $_smarty_tpl->tpl_vars['oUser']->value->getLogin(); ?> </a> <?php } ?> <?php } else { ?> <?php echo $_smarty_tpl->tpl_vars['aLang']->value['blog_user_moderators_empty']; ?> <?php } ?> <br /> <strong><?php echo $_smarty_tpl->tpl_vars['aLang']->value['blog_user_readers']; ?> (<?php echo $_smarty_tpl->tpl_vars['iCountBlogUsers']->value; ?> ):</strong> <?php if ($_smarty_tpl->tpl_vars['aBlogUsers']->value) { ?> <?php $_smarty_tpl->tpl_vars['oBlogUser'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['oBlogUser']->_loop = false; $_from = $_smarty_tpl->tpl_vars['aBlogUsers']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['oBlogUser']->key => $_smarty_tpl->tpl_vars['oBlogUser']->value) { $_smarty_tpl->tpl_vars['oBlogUser']->_loop = true; ?> <?php $_smarty_tpl->tpl_vars["oUser"] = new Smarty_variable($_smarty_tpl->tpl_vars['oBlogUser']->value->getUser(), null, 0); ?> <a href="<?php echo $_smarty_tpl->tpl_vars['oUser']->value->getUserWebPath(); ?> " class="user"><?php echo $_smarty_tpl->tpl_vars['oUser']->value->getLogin(); ?> </a> <?php } ?> <?php if (count($_smarty_tpl->tpl_vars['aBlogUsers']->value) < $_smarty_tpl->tpl_vars['iCountBlogUsers']->value) { ?> <br /><a href="<?php echo $_smarty_tpl->tpl_vars['oBlog']->value->getUrlFull(); ?> users/"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['blog_user_readers_all']; ?> </a> <?php } ?> <?php } else { ?> <?php echo $_smarty_tpl->tpl_vars['aLang']->value['blog_user_readers_empty']; ?> <?php } ?> <?php echo smarty_function_hook(array('run' => 'blog_info_end', 'oBlog' => $_smarty_tpl->tpl_vars['oBlog']->value), $_smarty_tpl); ?> </footer> </div> <ul class="actions clearfix"> <?php if ($_smarty_tpl->tpl_vars['oUserCurrent']->value) { ?> <?php if ($_smarty_tpl->tpl_vars['oBlog']->value->getType() == 'close') { ?> <li><i title="<?php echo $_smarty_tpl->tpl_vars['aLang']->value['blog_closed']; ?> " class="icon-blog-private"></i></li> <?php } else { ?> <?php if ($_smarty_tpl->tpl_vars['oUserCurrent']->value->getId() != $_smarty_tpl->tpl_vars['oBlog']->value->getOwnerId() && $_smarty_tpl->tpl_vars['oBlog']->value->getType() == 'open') { ?> <li><a href="#" class="icon-blog-join <?php if ($_smarty_tpl->tpl_vars['oBlog']->value->getUserIsJoin()) { ?> active<?php } ?> " onclick="ls.blog.toggleJoin(this, <?php echo $_smarty_tpl->tpl_vars['oBlog']->value->getId(); ?> ); return false;"></a></li> <?php } else { ?> <li><i class="icon-blog-owner"></i></li> <?php } ?> <?php } ?> <?php } ?> <li><a href="<?php echo smarty_function_router(array('page' => 'rss'), $_smarty_tpl); ?> blog/<?php echo $_smarty_tpl->tpl_vars['oBlog']->value->getUrl(); ?> /" class="icon-rss"></a></li> <?php if ($_smarty_tpl->tpl_vars['oUserCurrent']->value && ($_smarty_tpl->tpl_vars['oUserCurrent']->value->getId() == $_smarty_tpl->tpl_vars['oBlog']->value->getOwnerId() || $_smarty_tpl->tpl_vars['oUserCurrent']->value->isAdministrator() || $_smarty_tpl->tpl_vars['oBlog']->value->getUserIsAdministrator())) { ?> <li><a href="<?php echo smarty_function_router(array('page' => 'blog'), $_smarty_tpl); ?> edit/<?php echo $_smarty_tpl->tpl_vars['oBlog']->value->getId(); ?> /" title="<?php echo $_smarty_tpl->tpl_vars['aLang']->value['blog_edit']; ?> " class="icon-edit"></a></li> <?php if ($_smarty_tpl->tpl_vars['oUserCurrent']->value->isAdministrator()) { ?> <li><a href="#" title="<?php echo $_smarty_tpl->tpl_vars['aLang']->value['blog_delete']; ?> " id="blog_delete_show" class="icon-delete"></a></li> <?php } else { ?> <li><a href="<?php echo smarty_function_router(array('page' => 'blog'), $_smarty_tpl); ?> delete/<?php echo $_smarty_tpl->tpl_vars['oBlog']->value->getId(); ?> /?security_ls_key=<?php echo $_smarty_tpl->tpl_vars['LIVESTREET_SECURITY_KEY']->value; ?> " class="icon-delete" title="<?php echo $_smarty_tpl->tpl_vars['aLang']->value['blog_delete']; ?> " onclick="return confirm('<?php echo $_smarty_tpl->tpl_vars['aLang']->value['blog_admin_delete_confirm']; ?> ');"></a></li> <?php } ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['oUserCurrent']->value && $_smarty_tpl->tpl_vars['oUserCurrent']->value->getId() != $_smarty_tpl->tpl_vars['oBlog']->value->getOwnerId()) { ?> <li id="vote_total_blog_<?php echo $_smarty_tpl->tpl_vars['oBlog']->value->getId(); ?> " class="vote-result vote-no-rating <?php if ($_smarty_tpl->tpl_vars['oVote']->value || $_smarty_tpl->tpl_vars['oUserCurrent']->value && $_smarty_tpl->tpl_vars['oUserOwner']->value->getId() == $_smarty_tpl->tpl_vars['oUserCurrent']->value->getId()) { ?> <?php if ($_smarty_tpl->tpl_vars['oBlog']->value->getRating() > 0) { ?> vote-count-positive <?php } elseif ($_smarty_tpl->tpl_vars['oBlog']->value->getRating() < 0) { ?> vote-count-negative <?php } elseif ($_smarty_tpl->tpl_vars['oBlog']->value->getRating() == 0) { ?> vote-count-zero <?php } ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['oVote']->value) { ?> voted <?php if ($_smarty_tpl->tpl_vars['oVote']->value->getDirection() > 0) { ?> voted-up <?php } elseif ($_smarty_tpl->tpl_vars['oVote']->value->getDirection() < 0) { ?> voted-down <?php } ?> <?php } ?> " <?php if ($_smarty_tpl->tpl_vars['oUserCurrent']->value && !$_smarty_tpl->tpl_vars['oVote']->value) { ?> onclick="ls.tools.slide($('#vote_area_blog_<?php echo $_smarty_tpl->tpl_vars['oBlog']->value->getId(); ?> '), $(this));" <?php } ?> title="<?php echo $_smarty_tpl->tpl_vars['aLang']->value['blog_vote_count']; ?> : <?php echo $_smarty_tpl->tpl_vars['oBlog']->value->getCountVote(); ?> "> </li> <?php } ?> </ul> <div id="vote_area_blog_<?php echo $_smarty_tpl->tpl_vars['oBlog']->value->getId(); ?> " class="vote"> <div class="vote-item vote-up" onclick="return ls.vote.vote(<?php echo $_smarty_tpl->tpl_vars['oBlog']->value->getId(); ?> ,this,1,'blog');"><i></i></div> <div class="vote-item vote-down" onclick="return ls.vote.vote(<?php echo $_smarty_tpl->tpl_vars['oBlog']->value->getId(); ?> ,this,-1,'blog');"><i></i></div> </div> </div> <?php echo smarty_function_hook(array('run' => 'blog_info', 'oBlog' => $_smarty_tpl->tpl_vars['oBlog']->value), $_smarty_tpl); ?> <ul class="nav-foldable"> <li <?php if ($_smarty_tpl->tpl_vars['sMenuSubItemSelect']->value == 'good') { ?> class="active"<?php } ?> ><a href="<?php echo $_smarty_tpl->tpl_vars['sMenuSubBlogUrl']->value; ?> "><?php echo $_smarty_tpl->tpl_vars['aLang']->value['blog_menu_collective_good']; ?> </a></li> <li <?php if ($_smarty_tpl->tpl_vars['sMenuSubItemSelect']->value == 'new') { ?> class="active"<?php } ?> ><a href="<?php echo $_smarty_tpl->tpl_vars['sMenuSubBlogUrl']->value; ?> newall/"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['blog_menu_collective_new']; ?> </a><?php if ($_smarty_tpl->tpl_vars['iCountTopicsBlogNew']->value > 0) { ?> <a href="<?php echo $_smarty_tpl->tpl_vars['sMenuSubBlogUrl']->value; ?> new/">+<?php echo $_smarty_tpl->tpl_vars['iCountTopicsBlogNew']->value; ?> </a><?php } ?> </li> <li <?php if ($_smarty_tpl->tpl_vars['sMenuSubItemSelect']->value == 'discussed') { ?> class="active"<?php } ?> ><a href="<?php echo $_smarty_tpl->tpl_vars['sMenuSubBlogUrl']->value; ?> discussed/"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['blog_menu_collective_discussed']; ?> </a></li> <li <?php if ($_smarty_tpl->tpl_vars['sMenuSubItemSelect']->value == 'top') { ?> class="active"<?php } ?> ><a href="<?php echo $_smarty_tpl->tpl_vars['sMenuSubBlogUrl']->value; ?> top/"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['blog_menu_collective_top']; ?> </a></li> <?php echo smarty_function_hook(array('run' => 'menu_blog_blog_item'), $_smarty_tpl); ?> </ul> <?php if ($_smarty_tpl->tpl_vars['sPeriodSelectCurrent']->value) { ?> <ul class="nav-foldable"> <li <?php if ($_smarty_tpl->tpl_vars['sPeriodSelectCurrent']->value == '1') { ?> class="active"<?php } ?> ><a href="<?php echo $_smarty_tpl->tpl_vars['sPeriodSelectRoot']->value; ?> ?period=1"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['blog_menu_top_period_24h']; ?> </a></li> <li <?php if ($_smarty_tpl->tpl_vars['sPeriodSelectCurrent']->value == '7') { ?> class="active"<?php } ?> ><a href="<?php echo $_smarty_tpl->tpl_vars['sPeriodSelectRoot']->value; ?> ?period=7"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['blog_menu_top_period_7d']; ?> </a></li> <li <?php if ($_smarty_tpl->tpl_vars['sPeriodSelectCurrent']->value == '30') { ?> class="active"<?php } ?> ><a href="<?php echo $_smarty_tpl->tpl_vars['sPeriodSelectRoot']->value; ?> ?period=30"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['blog_menu_top_period_30d']; ?> </a></li> <li <?php if ($_smarty_tpl->tpl_vars['sPeriodSelectCurrent']->value == 'all') { ?> class="active"<?php } ?> ><a href="<?php echo $_smarty_tpl->tpl_vars['sPeriodSelectRoot']->value; ?> ?period=all"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['blog_menu_top_period_all']; ?> </a></li> </ul> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['bCloseBlog']->value) { ?> <?php echo $_smarty_tpl->tpl_vars['aLang']->value['blog_close_show']; ?> <?php } else { ?> <?php echo $_smarty_tpl->getSubTemplate('topic_list.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate('footer.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); }
function content_55797af6717715_13781125($_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'; } if (!is_callable('smarty_function_json')) { include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.json.php'; } if (!is_callable('smarty_function_lang_load')) { include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.lang_load.php'; } echo smarty_function_hook(array('run' => 'profile_sidebar_begin', 'oUserProfile' => $_smarty_tpl->tpl_vars['oUserProfile']->value), $_smarty_tpl); ?> <section class="block block-type-profile"> <div class="profile-photo-wrapper"> <div class="status <?php if ($_smarty_tpl->tpl_vars['oUserProfile']->value->isOnline()) { ?> status-online<?php } else { ?> status-offline<?php } ?> "><?php if ($_smarty_tpl->tpl_vars['oUserProfile']->value->isOnline()) { echo $_smarty_tpl->tpl_vars['aLang']->value['user_status_online']; } else { echo $_smarty_tpl->tpl_vars['aLang']->value['user_status_offline']; } ?> </div> <a href="<?php echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getUserWebPath(); ?> "><img src="<?php echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getProfileFotoPath(); ?> " alt="photo" class="profile-photo" id="foto-img" /></a> </div> <?php if ($_smarty_tpl->tpl_vars['sAction']->value == 'settings' && $_smarty_tpl->tpl_vars['oUserCurrent']->value && $_smarty_tpl->tpl_vars['oUserCurrent']->value->getId() == $_smarty_tpl->tpl_vars['oUserProfile']->value->getId()) { ?> <script type="text/javascript"> jQuery(function($){ $('#foto-upload').file({ name:'foto' }).choose(function(e, input) { ls.user.uploadFoto(null,input); }); }); </script> <p class="upload-photo"> <a href="#" id="foto-upload" class="link-dotted"><?php if ($_smarty_tpl->tpl_vars['oUserCurrent']->value->getProfileFoto()) { echo $_smarty_tpl->tpl_vars['aLang']->value['settings_profile_photo_change']; } else { echo $_smarty_tpl->tpl_vars['aLang']->value['settings_profile_photo_upload']; } ?> </a> <a href="#" id="foto-remove" class="link-dotted" onclick="return ls.user.removeFoto();" style="<?php if (!$_smarty_tpl->tpl_vars['oUserCurrent']->value->getProfileFoto()) { ?> display:none;<?php } ?> "><?php echo $_smarty_tpl->tpl_vars['aLang']->value['settings_profile_foto_delete']; ?> </a> </p> <div class="modal modal-upload-photo" id="foto-resize"> <header class="modal-header"> <h3><?php echo $_smarty_tpl->tpl_vars['aLang']->value['settings_profile_avatar_resize_title']; ?> </h3> </header> <div class="modal-content"> <div class="clearfix"> <div class="image-border"> <img src="" alt="" id="foto-resize-original-img"> </div> </div> <button type="submit" class="button button-primary" onclick="return ls.user.resizeFoto();"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['settings_profile_avatar_resize_apply']; ?> </button> <button type="submit" class="button" onclick="return ls.user.cancelFoto();"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['settings_profile_avatar_resize_cancel']; ?> </button> </div> </div> <?php } ?> </section> <?php echo smarty_function_hook(array('run' => 'profile_sidebar_menu_before', 'oUserProfile' => $_smarty_tpl->tpl_vars['oUserProfile']->value), $_smarty_tpl); ?> <section class="block block-type-profile-nav"> <ul class="nav nav-profile"> <?php echo smarty_function_hook(array('run' => 'profile_sidebar_menu_item_first', 'oUserProfile' => $_smarty_tpl->tpl_vars['oUserProfile']->value), $_smarty_tpl); ?> <li <?php if ($_smarty_tpl->tpl_vars['sAction']->value == 'profile' && ($_smarty_tpl->tpl_vars['aParams']->value[0] == 'whois' || $_smarty_tpl->tpl_vars['aParams']->value[0] == '')) { ?> 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> <li <?php if ($_smarty_tpl->tpl_vars['sAction']->value == 'profile' && $_smarty_tpl->tpl_vars['aParams']->value[0] == 'wall') { ?> class="active"<?php } ?> ><a href="<?php echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getUserWebPath(); ?> wall/"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['user_menu_profile_wall']; if ($_smarty_tpl->tpl_vars['iCountWallUser']->value > 0) { ?> (<?php echo $_smarty_tpl->tpl_vars['iCountWallUser']->value; ?> )<?php } ?> </a></li> <li <?php if ($_smarty_tpl->tpl_vars['sAction']->value == 'profile' && $_smarty_tpl->tpl_vars['aParams']->value[0] == 'created') { ?> class="active"<?php } ?> ><a href="<?php echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getUserWebPath(); ?> created/topics/"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['user_menu_publication']; if ($_smarty_tpl->tpl_vars['iCountCreated']->value > 0) { ?> (<?php echo $_smarty_tpl->tpl_vars['iCountCreated']->value; ?> )<?php } ?> </a></li> <li <?php if ($_smarty_tpl->tpl_vars['sAction']->value == 'profile' && $_smarty_tpl->tpl_vars['aParams']->value[0] == 'favourites') { ?> class="active"<?php } ?> ><a href="<?php echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getUserWebPath(); ?> favourites/topics/"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['user_menu_profile_favourites']; if ($_smarty_tpl->tpl_vars['iCountFavourite']->value > 0) { ?> (<?php echo $_smarty_tpl->tpl_vars['iCountFavourite']->value; ?> )<?php } ?> </a></li> <li <?php if ($_smarty_tpl->tpl_vars['sAction']->value == 'profile' && $_smarty_tpl->tpl_vars['aParams']->value[0] == 'friends') { ?> class="active"<?php } ?> ><a href="<?php echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getUserWebPath(); ?> friends/"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['user_menu_profile_friends']; if ($_smarty_tpl->tpl_vars['iCountFriendsUser']->value > 0) { ?> (<?php echo $_smarty_tpl->tpl_vars['iCountFriendsUser']->value; ?> )<?php } ?> </a></li> <li <?php if ($_smarty_tpl->tpl_vars['sAction']->value == 'profile' && $_smarty_tpl->tpl_vars['aParams']->value[0] == 'stream') { ?> class="active"<?php } ?> ><a href="<?php echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getUserWebPath(); ?> stream/"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['user_menu_profile_stream']; ?> </a></li> <?php if ($_smarty_tpl->tpl_vars['oUserCurrent']->value && $_smarty_tpl->tpl_vars['oUserCurrent']->value->getId() == $_smarty_tpl->tpl_vars['oUserProfile']->value->getId()) { ?> <li <?php if ($_smarty_tpl->tpl_vars['sAction']->value == 'talk') { ?> class="active"<?php } ?> ><a href="<?php echo smarty_function_router(array('page' => 'talk'), $_smarty_tpl); ?> "><?php echo $_smarty_tpl->tpl_vars['aLang']->value['talk_menu_inbox']; if ($_smarty_tpl->tpl_vars['iUserCurrentCountTalkNew']->value) { ?> (<?php echo $_smarty_tpl->tpl_vars['iUserCurrentCountTalkNew']->value; ?> )<?php } ?> </a></li> <li <?php if ($_smarty_tpl->tpl_vars['sAction']->value == 'settings') { ?> class="active"<?php } ?> ><a href="<?php echo smarty_function_router(array('page' => 'settings'), $_smarty_tpl); ?> "><?php echo $_smarty_tpl->tpl_vars['aLang']->value['settings_menu']; ?> </a></li> <?php } ?> <?php echo smarty_function_hook(array('run' => 'profile_sidebar_menu_item_last', 'oUserProfile' => $_smarty_tpl->tpl_vars['oUserProfile']->value), $_smarty_tpl); ?> </ul> </section> <?php echo smarty_function_hook(array('run' => 'profile_sidebar_end', 'oUserProfile' => $_smarty_tpl->tpl_vars['oUserProfile']->value), $_smarty_tpl); ?> <?php if ($_smarty_tpl->tpl_vars['oUserCurrent']->value && $_smarty_tpl->tpl_vars['oUserCurrent']->value->getId() != $_smarty_tpl->tpl_vars['oUserProfile']->value->getId()) { ?> <section class="block block-type-profile-note"> <?php if ($_smarty_tpl->tpl_vars['oUserNote']->value) { ?> <script type="text/javascript"> ls.usernote.sText = <?php echo smarty_function_json(array('var' => $_smarty_tpl->tpl_vars['oUserNote']->value->getText()), $_smarty_tpl); ?> ; </script> <?php } ?> <div id="usernote-note" class="profile-note" <?php if (!$_smarty_tpl->tpl_vars['oUserNote']->value) { ?> style="display: none;"<?php } ?> > <p id="usernote-note-text"> <?php if ($_smarty_tpl->tpl_vars['oUserNote']->value) { ?> <?php echo $_smarty_tpl->tpl_vars['oUserNote']->value->getText(); ?> <?php } ?> </p> <ul class="actions"> <li><a href="#" onclick="return ls.usernote.showForm();" class="link-dotted"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['user_note_form_edit']; ?> </a></li> <li><a href="#" onclick="return ls.usernote.remove(<?php echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getId(); ?> );" class="link-dotted"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['user_note_form_delete']; ?> </a></li> </ul> </div> <div id="usernote-form" style="display: none;"> <p><textarea rows="4" cols="20" id="usernote-form-text" class="input-text input-width-full"></textarea></p> <button type="submit" onclick="return ls.usernote.save(<?php echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getId(); ?> );" class="button button-primary"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['user_note_form_save']; ?> </button> <button type="submit" onclick="return ls.usernote.hideForm();" class="button"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['user_note_form_cancel']; ?> </button> </div> <a href="#" onclick="return ls.usernote.showForm();" id="usernote-button-add" class="link-dotted" <?php if ($_smarty_tpl->tpl_vars['oUserNote']->value) { ?> style="display:none;"<?php } ?> ><?php echo $_smarty_tpl->tpl_vars['aLang']->value['user_note_add']; ?> </a> </section> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['oUserCurrent']->value && $_smarty_tpl->tpl_vars['oUserCurrent']->value->getId() != $_smarty_tpl->tpl_vars['oUserProfile']->value->getId()) { ?> <script type="text/javascript"> jQuery(function($){ ls.lang.load(<?php echo smarty_function_lang_load(array('name' => "profile_user_unfollow,profile_user_follow"), $_smarty_tpl); ?> ); }); </script> <section class="block block-type-profile-actions"> <div class="block-content"> <ul class="profile-actions" id="profile_actions"> <?php echo $_smarty_tpl->getSubTemplate('actions/ActionProfile/friend_item.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('oUserFriend' => $_smarty_tpl->tpl_vars['oUserProfile']->value->getUserFriend()), 0); ?> <li><a href="<?php echo smarty_function_router(array('page' => 'talk'), $_smarty_tpl); ?> add/?talk_users=<?php echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getLogin(); ?> "><?php echo $_smarty_tpl->tpl_vars['aLang']->value['user_write_prvmsg']; ?> </a></li> <li> <a href="#" onclick="ls.user.followToggle(this, <?php echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getId(); ?> ); return false;" class="<?php if ($_smarty_tpl->tpl_vars['oUserProfile']->value->isFollow()) { ?> followed<?php } ?> "> <?php if ($_smarty_tpl->tpl_vars['oUserProfile']->value->isFollow()) { echo $_smarty_tpl->tpl_vars['aLang']->value['profile_user_unfollow']; } else { echo $_smarty_tpl->tpl_vars['aLang']->value['profile_user_follow']; } ?> </a> </li> </ul> </div> </section> <?php } }
function content_5684d7a3735815_89905718($_smarty_tpl) { if (!is_callable('smarty_function_hook')) { include '/var/www/bunker//engine/modules/viewer/plugs/function.hook.php'; } if (!is_callable('smarty_function_lang_load')) { include '/var/www/bunker//engine/modules/viewer/plugs/function.lang_load.php'; } if (!is_callable('smarty_function_router')) { include '/var/www/bunker//engine/modules/viewer/plugs/function.router.php'; } if (!is_callable('smarty_function_json')) { include '/var/www/bunker//engine/modules/viewer/plugs/function.json.php'; } echo smarty_function_hook(array('run' => 'profile_sidebar_begin', 'oUserProfile' => $_smarty_tpl->tpl_vars['oUserProfile']->value), $_smarty_tpl); ?> <section class="block block-type-profile"> <div class="profile-photo-wrapper"> <div class="status <?php if ($_smarty_tpl->tpl_vars['oUserProfile']->value->isOnline()) { ?> status-online<?php } else { ?> status-offline<?php } ?> "><?php if ($_smarty_tpl->tpl_vars['oUserProfile']->value->isOnline()) { echo $_smarty_tpl->tpl_vars['aLang']->value['user_status_online']; } else { echo $_smarty_tpl->tpl_vars['aLang']->value['user_status_offline']; } ?> </div> <a href="<?php echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getUserWebPath(); ?> "><img src="<?php echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getProfileFotoPath(); ?> " alt="photo" class="profile-photo" id="foto-img" /></a> </div> <?php if ($_smarty_tpl->tpl_vars['sAction']->value == 'settings' && $_smarty_tpl->tpl_vars['oUserCurrent']->value && $_smarty_tpl->tpl_vars['oUserCurrent']->value->getId() == $_smarty_tpl->tpl_vars['oUserProfile']->value->getId()) { ?> <script type="text/javascript"> jQuery(function($){ $('#foto-upload').file({ name:'foto' }).choose(function(e, input) { ls.user.uploadFoto(null,input); }); }); </script> <p class="upload-photo"> <a href="#" id="foto-upload" class="link-dotted"><?php if ($_smarty_tpl->tpl_vars['oUserCurrent']->value->getProfileFoto()) { echo $_smarty_tpl->tpl_vars['aLang']->value['settings_profile_photo_change']; } else { echo $_smarty_tpl->tpl_vars['aLang']->value['settings_profile_photo_upload']; } ?> </a> <a href="#" id="foto-remove" class="link-dotted" onclick="return ls.user.removeFoto();" style="<?php if (!$_smarty_tpl->tpl_vars['oUserCurrent']->value->getProfileFoto()) { ?> display:none;<?php } ?> "><?php echo $_smarty_tpl->tpl_vars['aLang']->value['settings_profile_foto_delete']; ?> </a> </p> <div class="modal" id="foto-resize"> <header class="modal-header"> <h3><?php echo $_smarty_tpl->tpl_vars['aLang']->value['uploadimg']; ?> </h3> </header> <div class="modal-content"> <img src="" alt="" id="foto-resize-original-img"><br /> <button type="submit" class="button button-primary" onclick="return ls.user.resizeFoto();"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['settings_profile_avatar_resize_apply']; ?> </button> <button type="submit" class="button" onclick="return ls.user.cancelFoto();"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['settings_profile_avatar_resize_cancel']; ?> </button> </div> </div> <?php } ?> </section> <?php if ($_smarty_tpl->tpl_vars['oUserCurrent']->value && $_smarty_tpl->tpl_vars['oUserCurrent']->value->getId() != $_smarty_tpl->tpl_vars['oUserProfile']->value->getId()) { ?> <script type="text/javascript"> jQuery(function($){ ls.lang.load(<?php echo smarty_function_lang_load(array('name' => "profile_user_unfollow,profile_user_follow"), $_smarty_tpl); ?> ); }); </script> <section class="block block-type-profile-actions"> <div class="block-content"> <ul class="profile-actions" id="profile_actions"> <?php echo $_smarty_tpl->getSubTemplate('actions/ActionProfile/friend_item.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('oUserFriend' => $_smarty_tpl->tpl_vars['oUserProfile']->value->getUserFriend()), 0); ?> <li><a href="<?php echo smarty_function_router(array('page' => 'talk'), $_smarty_tpl); ?> add/?talk_users=<?php echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getLogin(); ?> "><?php echo $_smarty_tpl->tpl_vars['aLang']->value['user_write_prvmsg']; ?> </a></li> <li> <a href="#" onclick="ls.user.followToggle(this, <?php echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getId(); ?> ); return false;" class="<?php if ($_smarty_tpl->tpl_vars['oUserProfile']->value->isFollow()) { ?> followed<?php } ?> "> <?php if ($_smarty_tpl->tpl_vars['oUserProfile']->value->isFollow()) { echo $_smarty_tpl->tpl_vars['aLang']->value['profile_user_unfollow']; } else { echo $_smarty_tpl->tpl_vars['aLang']->value['profile_user_follow']; } ?> </a> </li> <?php echo smarty_function_hook(array('run' => 'profile_sidebar_show', 'oUserProfile' => $_smarty_tpl->tpl_vars['oUserProfile']->value), $_smarty_tpl); ?> </ul> </div> </section> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['oUserCurrent']->value && $_smarty_tpl->tpl_vars['oUserCurrent']->value->getId() != $_smarty_tpl->tpl_vars['oUserProfile']->value->getId()) { ?> <section class="block block-type-profile-note"> <?php if ($_smarty_tpl->tpl_vars['oUserNote']->value) { ?> <script type="text/javascript"> ls.usernote.sText = <?php echo smarty_function_json(array('var' => $_smarty_tpl->tpl_vars['oUserNote']->value->getText()), $_smarty_tpl); ?> ; </script> <?php } ?> <div id="usernote-note" class="profile-note" <?php if (!$_smarty_tpl->tpl_vars['oUserNote']->value) { ?> style="display: none;"<?php } ?> > <p id="usernote-note-text"> <?php if ($_smarty_tpl->tpl_vars['oUserNote']->value) { ?> <?php echo $_smarty_tpl->tpl_vars['oUserNote']->value->getText(); ?> <?php } ?> </p> <ul class="actions"> <li><a href="#" onclick="return ls.usernote.showForm();" class="link-dotted"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['user_note_form_edit']; ?> </a></li> <li><a href="#" onclick="return ls.usernote.remove(<?php echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getId(); ?> );" class="link-dotted"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['user_note_form_delete']; ?> </a></li> </ul> </div> <div id="usernote-form" style="display: none;"> <p><textarea rows="4" cols="20" id="usernote-form-text" class="input-text input-width-full"></textarea></p> <button type="submit" onclick="return ls.usernote.save(<?php echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getId(); ?> );" class="button button-primary"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['user_note_form_save']; ?> </button> <button type="submit" onclick="return ls.usernote.hideForm();" class="button"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['user_note_form_cancel']; ?> </button> </div> <a href="#" onclick="return ls.usernote.showForm();" id="usernote-button-add" class="link-dotted" <?php if ($_smarty_tpl->tpl_vars['oUserNote']->value) { ?> style="display:none;"<?php } ?> ><?php echo $_smarty_tpl->tpl_vars['aLang']->value['user_note_add']; ?> </a> </section> <?php } ?> <?php echo smarty_function_hook(array('run' => 'profile_sidebar_menu_before', 'oUserProfile' => $_smarty_tpl->tpl_vars['oUserProfile']->value), $_smarty_tpl); ?> <section class="block block-type-profile-nav"> <ul class="nav nav-pills nav-profile"> <?php echo smarty_function_hook(array('run' => 'profile_sidebar_menu_item_first', 'oUserProfile' => $_smarty_tpl->tpl_vars['oUserProfile']->value), $_smarty_tpl); ?> <li <?php if ($_smarty_tpl->tpl_vars['sAction']->value == 'profile' && ($_smarty_tpl->tpl_vars['aParams']->value[0] == 'whois' || $_smarty_tpl->tpl_vars['aParams']->value[0] == '')) { ?> 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> <li <?php if ($_smarty_tpl->tpl_vars['sAction']->value == 'profile' && $_smarty_tpl->tpl_vars['aParams']->value[0] == 'wall') { ?> class="active"<?php } ?> ><a href="<?php echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getUserWebPath(); ?> wall/"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['user_menu_profile_wall']; if ($_smarty_tpl->tpl_vars['iCountWallUser']->value > 0) { ?> (<?php echo $_smarty_tpl->tpl_vars['iCountWallUser']->value; ?> )<?php } ?> </a></li> <li <?php if ($_smarty_tpl->tpl_vars['sAction']->value == 'profile' && $_smarty_tpl->tpl_vars['aParams']->value[0] == 'created') { ?> class="active"<?php } ?> ><a href="<?php echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getUserWebPath(); ?> created/topics/"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['user_menu_publication']; if ($_smarty_tpl->tpl_vars['iCountCreated']->value > 0) { ?> (<?php echo $_smarty_tpl->tpl_vars['iCountCreated']->value; ?> )<?php } ?> </a></li> <li <?php if ($_smarty_tpl->tpl_vars['sAction']->value == 'profile' && $_smarty_tpl->tpl_vars['aParams']->value[0] == 'favourites') { ?> class="active"<?php } ?> ><a href="<?php echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getUserWebPath(); ?> favourites/topics/"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['user_menu_profile_favourites']; if ($_smarty_tpl->tpl_vars['iCountFavourite']->value > 0) { ?> (<?php echo $_smarty_tpl->tpl_vars['iCountFavourite']->value; ?> )<?php } ?> </a></li> <li <?php if ($_smarty_tpl->tpl_vars['sAction']->value == 'profile' && $_smarty_tpl->tpl_vars['aParams']->value[0] == 'friends') { ?> class="active"<?php } ?> ><a href="<?php echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getUserWebPath(); ?> friends/"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['user_menu_profile_friends']; if ($_smarty_tpl->tpl_vars['iCountFriendsUser']->value > 0) { ?> (<?php echo $_smarty_tpl->tpl_vars['iCountFriendsUser']->value; ?> )<?php } ?> </a></li> <li <?php if ($_smarty_tpl->tpl_vars['sAction']->value == 'profile' && $_smarty_tpl->tpl_vars['aParams']->value[0] == 'stream') { ?> class="active"<?php } ?> ><a href="<?php echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getUserWebPath(); ?> stream/"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['user_menu_profile_stream']; ?> </a></li> <?php if ($_smarty_tpl->tpl_vars['oUserCurrent']->value && $_smarty_tpl->tpl_vars['oUserCurrent']->value->getId() == $_smarty_tpl->tpl_vars['oUserProfile']->value->getId()) { ?> <li <?php if ($_smarty_tpl->tpl_vars['sAction']->value == 'talk') { ?> class="active"<?php } ?> ><a href="<?php echo smarty_function_router(array('page' => 'talk'), $_smarty_tpl); ?> "><?php echo $_smarty_tpl->tpl_vars['aLang']->value['talk_menu_inbox']; if ($_smarty_tpl->tpl_vars['iUserCurrentCountTalkNew']->value) { ?> (<?php echo $_smarty_tpl->tpl_vars['iUserCurrentCountTalkNew']->value; ?> )<?php } ?> </a></li> <li <?php if ($_smarty_tpl->tpl_vars['sAction']->value == 'settings') { ?> class="active"<?php } ?> ><a href="<?php echo smarty_function_router(array('page' => 'settings'), $_smarty_tpl); ?> "><?php echo $_smarty_tpl->tpl_vars['aLang']->value['settings_menu']; ?> </a></li> <?php echo smarty_function_hook(array('run' => 'athead'), $_smarty_tpl); ?> <?php echo smarty_function_hook(array('run' => 'atmenu'), $_smarty_tpl); ?> <?php } ?> <?php echo smarty_function_hook(array('run' => 'profile_sidebar_menu_item_last', 'oUserProfile' => $_smarty_tpl->tpl_vars['oUserProfile']->value), $_smarty_tpl); ?> </ul> </section> <?php if ($_smarty_tpl->tpl_vars['oUserCurrent']->value && $_smarty_tpl->tpl_vars['oUserCurrent']->value->getId() != $_smarty_tpl->tpl_vars['oAceUserProfile']->value->getId() && ($_smarty_tpl->tpl_vars['oUserCurrent']->value->isAdministrator() || $_smarty_tpl->tpl_vars['oUserCurrent']->value->isGlobalModerator())) { ?> <section class="block"> <header class="block-header"><h3>Бан</h3></header> <div class="block-content"> <?php if (!$_smarty_tpl->tpl_vars['oAceUserProfile']->value->IsBannedByLogin()) { ?> <form method="post" action="https://reboot.lunavod.ru/api/ban/" class="well well-small"> <br> <input name="security_ls_key" value="<?php echo $_smarty_tpl->tpl_vars['LIVESTREET_SECURITY_KEY']->value; ?> " type="hidden"> <input name="ban_login" value="<?php echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getLogin(); ?> " type="hidden"> <label class="radio"> <input name="ban_period" value="days" checked="" type="radio"> Бан на <input name="ban_days" id="ban_days" class="num1" type="text"> дней </label> <label class="radio"> <input name="ban_period" value="unlim" type="radio"> Бан бессрочный </label> <label for="ban_comment">Комментарий</label> <input name="ban_comment" id="ban_comment" maxlength="255" type="text"> <br> <input name="adm_user_ref" value="https://reboot.lunavod.ru/admin/users/" type="hidden"> <input name="adm_user_action" value="adm_ban_user" type="hidden"> <button type="submit" name="adm_action_submit" class="btn btn-primary">Забанить</button> </form> </div> </section> <?php } else { ?> <div class="alert alert-block"> <?php echo $_smarty_tpl->tpl_vars['oLang']->value->adm_ban_upto; ?> : <?php if ($_smarty_tpl->tpl_vars['oAceUserProfile']->value->getBanLine()) { echo $_smarty_tpl->tpl_vars['oAceUserProfile']->value->getBanLine(); } else { echo $_smarty_tpl->tpl_vars['oLang']->value->adm_ban_unlim; } ?> <br/> <strong><?php echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getBanComment(); ?> </strong> </div> <form method="post" action="https://reboot.lunavod.ru/api/ban/" class="well well-small"> <input name="security_ls_key" value="<?php echo $_smarty_tpl->tpl_vars['LIVESTREET_SECURITY_KEY']->value; ?> " type="hidden"> <input name="ban_login" value="<?php echo $_smarty_tpl->tpl_vars['oUserProfile']->value->getLogin(); ?> " type="hidden"> <input name="clear" type="hidden" value="true"> <button type="submit" name="adm_action_submit" class="btn btn-primary">Разбанить</button> </form> </div> </section> <?php } } echo smarty_function_hook(array('run' => 'profile_sidebar_end', 'oUserProfile' => $_smarty_tpl->tpl_vars['oUserProfile']->value), $_smarty_tpl); ?> <?php }
function content_5684d71935b011_71201163($_smarty_tpl) { if (!is_callable('smarty_function_cfg')) { include '/var/www/bunker//engine/modules/viewer/plugs/function.cfg.php'; } if (!is_callable('smarty_function_lang_load')) { include '/var/www/bunker//engine/modules/viewer/plugs/function.lang_load.php'; } 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'; } echo $_smarty_tpl->getSubTemplate('window_load_img.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('sToLoad' => 'page_text'), 0); ?> <?php if ($_smarty_tpl->tpl_vars['oConfig']->value->GetValue('view.tinymce')) { ?> <script type="text/javascript" src="<?php echo smarty_function_cfg(array('name' => 'path.root.engine_lib'), $_smarty_tpl); ?> /external/tinymce-jq/tiny_mce.js"></script> <script type="text/javascript"> jQuery(function($){ tinyMCE.init(ls.settings.getTinymce()); }); </script> <?php } else { ?> <?php echo $_smarty_tpl->getSubTemplate('window_load_img.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('sToLoad' => 'page_text'), 0); ?> <script type="text/javascript"> jQuery(function($){ ls.lang.load(<?php echo smarty_function_lang_load(array('name' => "panel_b,panel_i,panel_u,panel_s,panel_url,panel_url_promt,panel_code,panel_video,panel_image,panel_cut,panel_quote,panel_list,panel_list_ul,panel_list_ol,panel_title,panel_clear_tags,panel_video_promt,panel_list_li,panel_image_promt,panel_user,panel_user_promt"), $_smarty_tpl); ?> ); // Подключаем редактор $('#page_text').markItUp(ls.settings.getMarkitup()); }); </script> <?php } ?> <form action="" method="POST"> <?php echo smarty_function_hook(array('run' => 'plugin_page_form_add_begin'), $_smarty_tpl); ?> <input type="hidden" name="security_ls_key" value="<?php echo $_smarty_tpl->tpl_vars['LIVESTREET_SECURITY_KEY']->value; ?> " /> <p><label for="page_pid"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['plugin']['page']['create_parent_page']; ?> </label> <select name="page_pid" id="page_pid" class="input-width-300"> <option value="0"></option> <?php $_smarty_tpl->tpl_vars['oPage'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['oPage']->_loop = false; $_from = $_smarty_tpl->tpl_vars['aPages']->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; ?> <option style="margin-left: <?php echo $_smarty_tpl->tpl_vars['oPage']->value->getLevel() * 20; ?> px;" value="<?php echo $_smarty_tpl->tpl_vars['oPage']->value->getId(); ?> " <?php if ($_smarty_tpl->tpl_vars['_aRequest']->value['page_pid'] == $_smarty_tpl->tpl_vars['oPage']->value->getId()) { ?> selected<?php } ?> ><?php echo $_smarty_tpl->tpl_vars['oPage']->value->getTitle(); ?> (/<?php echo $_smarty_tpl->tpl_vars['oPage']->value->getUrlFull(); ?> /)</option> <?php } ?> </select></p> <p><label for="page_title"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['plugin']['page']['create_title']; ?> :</label> <input type="text" id="page_title" class="input-text input-width-full" name="page_title" value="<?php echo $_smarty_tpl->tpl_vars['_aRequest']->value['page_title']; ?> " class="input-wide" /> </p> <p><label for="page_url"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['plugin']['page']['create_url']; ?> :</label> <input type="text" class="input-text input-width-full" id="page_url" name="page_url" value="<?php echo $_smarty_tpl->tpl_vars['_aRequest']->value['page_url']; ?> " class="input-wide" /> </p> <label for="page_text"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['plugin']['page']['create_text']; ?> :</label> <textarea name="page_text" id="page_text" rows="20" class="mce-editor input-width-full"><?php echo $_smarty_tpl->tpl_vars['_aRequest']->value['page_text']; ?> </textarea><br /> <p><label for="page_seo_keywords"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['plugin']['page']['create_seo_keywords']; ?> :</label> <input type="text" class="input-text input-width-full" id="page_seo_keywords" name="page_seo_keywords" value="<?php echo $_smarty_tpl->tpl_vars['_aRequest']->value['page_seo_keywords']; ?> " class="input-wide" /> <span class="note"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['plugin']['page']['create_seo_keywords_notice']; ?> </span></p> <p><label for="page_seo_description"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['plugin']['page']['create_seo_description']; ?> :</label> <input type="text" class="input-text input-width-full" id="page_seo_description" name="page_seo_description" value="<?php echo $_smarty_tpl->tpl_vars['_aRequest']->value['page_seo_description']; ?> " class="input-wide" /> <span class="note"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['plugin']['page']['create_seo_description_notice']; ?> </span></p> <p><label for="page_sort"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['plugin']['page']['create_sort']; ?> :</label> <input type="text" id="page_sort" class="input-text input-width-full" name="page_sort" value="<?php echo $_smarty_tpl->tpl_vars['_aRequest']->value['page_sort']; ?> " class="input-wide" /> <span class="note"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['plugin']['page']['create_sort_notice']; ?> </span></p> <p> <label><input type="checkbox" id="page_auto_br" name="page_auto_br" value="1" class="input-checkbox" <?php if ($_smarty_tpl->tpl_vars['_aRequest']->value['page_auto_br'] == 1) { ?> checked<?php } ?> /> <?php echo $_smarty_tpl->tpl_vars['aLang']->value['plugin']['page']['create_auto_br']; ?> </label> <label><input type="checkbox" id="page_active" name="page_active" value="1" class="input-checkbox" <?php if ($_smarty_tpl->tpl_vars['_aRequest']->value['page_active'] == 1) { ?> checked<?php } ?> /> <?php echo $_smarty_tpl->tpl_vars['aLang']->value['plugin']['page']['create_active']; ?> </label> <label><input type="checkbox" id="page_main" name="page_main" value="1" class="input-checkbox" <?php if ($_smarty_tpl->tpl_vars['_aRequest']->value['page_main'] == 1) { ?> checked<?php } ?> /> <?php echo $_smarty_tpl->tpl_vars['aLang']->value['plugin']['page']['create_main']; ?> </label> </p> <?php echo smarty_function_hook(array('run' => 'plugin_page_form_add_end'), $_smarty_tpl); ?> <p> <button type="submit" class="button button-primary" name="submit_page_save"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['plugin']['page']['create_submit_save']; ?> </button> <button name="submit_page_cancel" class="button" onclick="window.location='<?php echo smarty_function_router(array('page' => 'page'), $_smarty_tpl); ?> admin/'; return false;" /><?php echo $_smarty_tpl->tpl_vars['aLang']->value['plugin']['page']['create_submit_cancel']; ?> </button> </p> <input type="hidden" name="page_id" value="<?php echo $_smarty_tpl->tpl_vars['_aRequest']->value['page_id']; ?> "> </form><?php }
function content_5684d6e3bfbb96_14975855($_smarty_tpl) { if (!is_callable('smarty_function_hook')) { include '/var/www/bunker//engine/modules/viewer/plugs/function.hook.php'; } 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_json')) { include '/var/www/bunker//engine/modules/viewer/plugs/function.json.php'; } if (!is_callable('smarty_function_lang_load')) { include '/var/www/bunker//engine/modules/viewer/plugs/function.lang_load.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; ?> "> <!-- Mobile viewport optimization h5bp.com/ad --> <meta name="HandheldFriendly" content="True"> <meta name="MobileOptimized" content="320"> <meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=yes" name="viewport"> <!-- Mobile IE allows us to activate ClearType technology for smoothing fonts for easy reading --> <meta http-equiv="cleartype" content="on"> <script async src="<?php echo smarty_function_cfg(array('name' => "path.static.skin"), $_smarty_tpl); ?> /js/spoiler.js"></script> <?php echo $_smarty_tpl->tpl_vars['aHtmlHeadFiles']->value['css']; ?> <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.css"> <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,400italic,600,600italic,700,700italic&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 } ?> <script type="text/javascript"> var DIR_WEB_ROOT = '<?php echo smarty_function_cfg(array('name' => "path.root.web"), $_smarty_tpl); ?> '; var DIR_STATIC_SKIN = '<?php echo smarty_function_cfg(array('name' => "path.static.skin"), $_smarty_tpl); ?> '; var DIR_ROOT_ENGINE_LIB = '<?php echo smarty_function_cfg(array('name' => "path.root.engine_lib"), $_smarty_tpl); ?> '; var LIVESTREET_SECURITY_KEY = '<?php echo $_smarty_tpl->tpl_vars['LIVESTREET_SECURITY_KEY']->value; ?> '; var SESSION_ID = '<?php echo $_smarty_tpl->tpl_vars['_sPhpSessionId']->value; ?> '; var BLOG_USE_TINYMCE = '<?php echo smarty_function_cfg(array('name' => "view.tinymce"), $_smarty_tpl); ?> '; var TINYMCE_LANG = 'en'; <?php if ($_smarty_tpl->tpl_vars['oConfig']->value->GetValue('lang.current') == 'russian') { ?> TINYMCE_LANG = 'ru'; <?php } ?> var aRouter = new Array(); <?php $_smarty_tpl->tpl_vars['sPath'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['sPath']->_loop = false; $_smarty_tpl->tpl_vars['sPage'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['aRouter']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['sPath']->key => $_smarty_tpl->tpl_vars['sPath']->value) { $_smarty_tpl->tpl_vars['sPath']->_loop = true; $_smarty_tpl->tpl_vars['sPage']->value = $_smarty_tpl->tpl_vars['sPath']->key; ?> aRouter['<?php echo $_smarty_tpl->tpl_vars['sPage']->value; ?> '] = '<?php echo $_smarty_tpl->tpl_vars['sPath']->value; ?> '; <?php } ?> </script> <?php echo $_smarty_tpl->tpl_vars['aHtmlHeadFiles']->value['js']; ?> <script type="text/javascript"> var tinyMCE = false; ls.lang.load(<?php echo smarty_function_json(array('var' => $_smarty_tpl->tpl_vars['aLangJs']->value), $_smarty_tpl); ?> ); ls.registry.set('comment_max_tree','<?php echo smarty_function_cfg(array('name' => "module.comment.max_tree"), $_smarty_tpl); ?> '); ls.lang.load(<?php echo smarty_function_lang_load(array('name' => "nav_select_item"), $_smarty_tpl); ?> ); </script> <?php echo smarty_function_hook(array('run' => 'html_head_end'), $_smarty_tpl); ?> <style> #header { position: fixed; min-width: 320px; max-width: 640px; width: 100%; z-index: 200; background: #5c6bc0; } #write, #search { position: fixed; top: 44px; z-index: 200; } </style> </head> <?php if ($_smarty_tpl->tpl_vars['oUserCurrent']->value) { ?> <?php $_smarty_tpl->tpl_vars['body_classes'] = new Smarty_variable($_smarty_tpl->tpl_vars['body_classes']->value . ' ls-user-role-user', null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['oUserCurrent']->value->isAdministrator()) { ?> <?php $_smarty_tpl->tpl_vars['body_classes'] = new Smarty_variable($_smarty_tpl->tpl_vars['body_classes']->value . ' ls-user-role-admin', null, 0); ?> <?php } } else { ?> <?php $_smarty_tpl->tpl_vars['body_classes'] = new Smarty_variable($_smarty_tpl->tpl_vars['body_classes']->value . ' ls-user-role-guest', null, 0); } ?> <?php if (!$_smarty_tpl->tpl_vars['oUserCurrent']->value || $_smarty_tpl->tpl_vars['oUserCurrent']->value && !$_smarty_tpl->tpl_vars['oUserCurrent']->value->isAdministrator()) { ?> <?php $_smarty_tpl->tpl_vars['body_classes'] = new Smarty_variable($_smarty_tpl->tpl_vars['body_classes']->value . ' ls-user-role-not-admin', null, 0); } ?> <body class="<?php echo $_smarty_tpl->tpl_vars['body_classes']->value; ?> "> <?php echo smarty_function_hook(array('run' => 'body_begin'), $_smarty_tpl); ?> <?php if ($_smarty_tpl->tpl_vars['oUserCurrent']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate('window_favourite_form_tags.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?> <?php } ?> <div id="container" class="<?php echo smarty_function_hook(array('run' => 'container_class'), $_smarty_tpl); ?> "> <?php if ($_smarty_tpl->tpl_vars['oUserCurrent']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate('userbar_menu.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate('header_top.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?> <div id="wrapper"> <?php echo $_smarty_tpl->getSubTemplate('nav.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?> <div id="content" role="main" class="<?php if ($_smarty_tpl->tpl_vars['noBg']->value) { ?> no-bg<?php } ?> <?php if ($_smarty_tpl->tpl_vars['aPaging']->value && $_smarty_tpl->tpl_vars['aPaging']->value['iCountPage'] > 1 && !$_smarty_tpl->tpl_vars['noBg']->value) { ?> multipage<?php } ?> <?php if ($_smarty_tpl->tpl_vars['sidebarPosition']->value == 'left') { ?> content-right<?php } ?> <?php echo smarty_function_hook(array('run' => 'wrapper_class'), $_smarty_tpl); ?> " <?php if ($_smarty_tpl->tpl_vars['sMenuItemSelect']->value == 'profile') { ?> itemscope itemtype="http://data-vocabulary.org/Person"<?php } ?> > <?php echo $_smarty_tpl->getSubTemplate('system_message.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?> <?php echo smarty_function_hook(array('run' => 'content_begin'), $_smarty_tpl); }