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 echo smarty_function_hook(array('run' => 'form_login_popup_end'), $_smarty_tpl); ?> <input type="hidden" name="return-path" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['PATH_WEB_CURRENT']->value, ENT_QUOTES, 'UTF-8', true); ?> "> </form> <?php echo smarty_function_hook(array('run' => 'login_popup_end'), $_smarty_tpl); ?> </div> <?php if (!$_smarty_tpl->tpl_vars['oConfig']->value->GetValue('general.reg.invite')) { ?> <div data-type="registration" class="tab-content js-block-popup-login-content" style="display:none;"> <script type="text/javascript"> jQuery(document).ready(function($){ $('#popup-registration-form').find('input.js-ajax-validate').blur(function(e){ var aParams={ }; if ($(e.target).attr('name')=='password_confirm') { aParams['password']=$('#popup-registration-user-password').val(); } if ($(e.target).attr('name')=='password') { aParams['password']=$('#popup-registration-user-password').val(); if ($('#popup-registration-user-password-confirm').val()) { ls.user.validateRegistrationField('password_confirm',$('#popup-registration-user-password-confirm').val(),$('#popup-registration-form'),{ 'password': $(e.target).val() }); } } ls.user.validateRegistrationField($(e.target).attr('name'),$(e.target).val(),$('#popup-registration-form'),aParams); }); $('#popup-registration-form').bind('submit',function(){ ls.user.registration('popup-registration-form'); return false; }); $('#popup-registration-form-submit').attr('disabled',false); }); </script> <?php echo smarty_function_hook(array('run' => 'registration_begin', 'isPopup' => true), $_smarty_tpl); ?> <form action="<?php echo smarty_function_router(array('page' => 'registration'), $_smarty_tpl); ?> " method="post" id="popup-registration-form"> <?php echo smarty_function_hook(array('run' => 'form_registration_begin', 'isPopup' => true), $_smarty_tpl); ?> <p> <input type="text" name="login" placeholder="<?php echo $_smarty_tpl->tpl_vars['aLang']->value['registration_login']; ?> " id="popup-registration-login" value="<?php echo $_smarty_tpl->tpl_vars['_aRequest']->value['login']; ?> " class="input-text input-width-300 js-ajax-validate" /> <i class="icon-question-sign js-tip-help" title="<?php echo $_smarty_tpl->tpl_vars['aLang']->value['registration_login_notice']; ?> "></i> <i class="icon-ok-green validate-ok-field-login" style="display: none"></i> <small class="validate-error-hide validate-error-field-login"></small></p> <p> <input type="text" name="mail" placeholder="<?php echo $_smarty_tpl->tpl_vars['aLang']->value['registration_mail']; ?> " id="popup-registration-mail" value="<?php echo $_smarty_tpl->tpl_vars['_aRequest']->value['mail']; ?> " class="input-text input-width-300 js-ajax-validate" /> <i class="icon-question-sign js-tip-help" title="<?php echo $_smarty_tpl->tpl_vars['aLang']->value['registration_mail_notice']; ?> "></i> <i class="icon-ok-green validate-ok-field-mail" style="display: none"></i> <small class="validate-error-hide validate-error-field-mail"></small></p> <p> <input type="password" name="password" placeholder="<?php echo $_smarty_tpl->tpl_vars['aLang']->value['registration_password']; ?> " id="popup-registration-user-password" value="" class="input-text input-width-300 js-ajax-validate" /> <i class="icon-question-sign js-tip-help" title="<?php echo $_smarty_tpl->tpl_vars['aLang']->value['registration_password_notice']; ?> "></i> <i class="icon-ok-green validate-ok-field-password" style="display: none"></i> <small class="validate-error-hide validate-error-field-password"></small></p> <p> <input type="password" name="password_confirm" placeholder="<?php echo $_smarty_tpl->tpl_vars['aLang']->value['registration_password_retry']; ?> " id="popup-registration-user-password-confirm" value="" class="input-text input-width-300 js-ajax-validate" /> <i class="icon-ok-green validate-ok-field-password_confirm" style="display: none"></i> <small class="validate-error-hide validate-error-field-password_confirm"></small></p> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hookb', array('run' => "popup_registration_captcha")); $_block_repeat = true; echo smarty_block_hookb(array('run' => "popup_registration_captcha"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <p><label for="popup-registration-captcha"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['registration_captcha']; ?> </label> <img src="<?php echo smarty_function_cfg(array('name' => 'path.root.engine_lib'), $_smarty_tpl); ?> /external/kcaptcha/index.php?<?php echo $_smarty_tpl->tpl_vars['_sPhpSessionName']->value; ?> =<?php echo $_smarty_tpl->tpl_vars['_sPhpSessionId']->value; ?> " onclick="this.src='<?php echo smarty_function_cfg(array('name' => 'path.root.engine_lib'), $_smarty_tpl); ?> /external/kcaptcha/index.php?<?php echo $_smarty_tpl->tpl_vars['_sPhpSessionName']->value; ?> =<?php echo $_smarty_tpl->tpl_vars['_sPhpSessionId']->value; ?> &n='+Math.random();" class="captcha-image" /> <input type="text" name="captcha" id="popup-registration-captcha" value="" maxlength="3" class="input-text input-width-100 js-ajax-validate" /> <small class="validate-error-hide validate-error-field-captcha"></small></p> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hookb(array('run' => "popup_registration_captcha"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php echo smarty_function_hook(array('run' => 'form_registration_end', 'isPopup' => true), $_smarty_tpl); ?> <input type="hidden" name="return-path" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['PATH_WEB_CURRENT']->value, ENT_QUOTES, 'UTF-8', true); ?> "> <button type="submit" name="submit_register" class="button button-primary" id="popup-registration-form-submit" disabled="disabled"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['registration_submit']; ?> </button> </form> <?php echo smarty_function_hook(array('run' => 'registration_end', 'isPopup' => true), $_smarty_tpl); ?> </div> <?php } ?> <div data-type="reminder" class="tab-content js-block-popup-login-content" style="display:none;"> <script type="text/javascript"> jQuery(document).ready(function($){ $('#popup-reminder-form').bind('submit',function(){ ls.user.reminder('popup-reminder-form'); return false; }); $('#popup-reminder-form-submit').attr('disabled',false); }); </script> <form action="<?php echo smarty_function_router(array('page' => 'login'), $_smarty_tpl); ?> reminder/" method="POST" id="popup-reminder-form"> <p> <input type="text" name="mail" placeholder="<?php echo $_smarty_tpl->tpl_vars['aLang']->value['password_reminder_email']; ?> " id="popup-reminder-mail" class="input-text input-width-300" /> <small class="validate-error-hide validate-error-reminder"></small></p> <button type="submit" name="submit_reminder" class="button button-primary" id="popup-reminder-form-submit" disabled="disabled"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['password_reminder_submit']; ?> </button> </form> </div> </div> </div> <?php } }
function content_5684d70d4878c8_29189474($_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'; } if (!is_callable('smarty_block_hookb')) { include '/var/www/bunker//engine/modules/viewer/plugs/block.hookb.php'; } if (!is_callable('smarty_function_date_format')) { include '/var/www/bunker//engine/modules/viewer/plugs/function.date_format.php'; } if (!is_callable('smarty_function_cfg')) { include '/var/www/bunker//engine/modules/viewer/plugs/function.cfg.php'; } ?> <?php $_smarty_tpl->tpl_vars["oBlog"] = new Smarty_variable($_smarty_tpl->tpl_vars['oTopic']->value->getBlog(), null, 0); ?> <?php $_smarty_tpl->tpl_vars["oUser"] = new Smarty_variable($_smarty_tpl->tpl_vars['oTopic']->value->getUser(), null, 0); ?> <?php $_smarty_tpl->tpl_vars["oVote"] = new Smarty_variable($_smarty_tpl->tpl_vars['oTopic']->value->getVote(), null, 0); ?> <?php $_smarty_tpl->tpl_vars["oFavourite"] = new Smarty_variable($_smarty_tpl->tpl_vars['oTopic']->value->getFavourite(), null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['oVote']->value || $_smarty_tpl->tpl_vars['oUserCurrent']->value && $_smarty_tpl->tpl_vars['oTopic']->value->getUserId() == $_smarty_tpl->tpl_vars['oUserCurrent']->value->getId() || strtotime($_smarty_tpl->tpl_vars['oTopic']->value->getDateAdd()) < time() - $_smarty_tpl->tpl_vars['oConfig']->value->GetValue('acl.vote.topic.limit_time')) { ?> <?php $_smarty_tpl->tpl_vars["bVoteInfoShow"] = new Smarty_variable(true, null, 0); ?> <?php } ?> <footer class="topic-footer"> <?php if ($_smarty_tpl->tpl_vars['oTopic']->value->getType() == 'link') { ?> <div class="topic-url"> <a href="<?php echo smarty_function_router(array('page' => 'link'), $_smarty_tpl); ?> go/<?php echo $_smarty_tpl->tpl_vars['oTopic']->value->getId(); ?> /" title="<?php echo $_smarty_tpl->tpl_vars['aLang']->value['topic_link_count_jump']; ?> : <?php echo $_smarty_tpl->tpl_vars['oTopic']->value->getLinkCountJump(); ?> "><?php echo $_smarty_tpl->tpl_vars['oTopic']->value->getLinkUrl(); ?> </a> </div> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['bTopicList']->value) { ?> <ul class="topic-tags js-favourite-insert-after-form js-favourite-tags-topic-<?php echo $_smarty_tpl->tpl_vars['oTopic']->value->getId(); ?> "> <li><strong><?php echo $_smarty_tpl->tpl_vars['aLang']->value['topic_tags']; ?> :</strong></li> <?php if ($_smarty_tpl->tpl_vars['oTopic']->value->getTagsArray()) { $_smarty_tpl->tpl_vars['sTag'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['sTag']->_loop = false; $_from = $_smarty_tpl->tpl_vars['oTopic']->value->getTagsArray(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['sTag']->index = -1; foreach ($_from as $_smarty_tpl->tpl_vars['sTag']->key => $_smarty_tpl->tpl_vars['sTag']->value) { $_smarty_tpl->tpl_vars['sTag']->_loop = true; $_smarty_tpl->tpl_vars['sTag']->index++; $_smarty_tpl->tpl_vars['sTag']->first = $_smarty_tpl->tpl_vars['sTag']->index === 0; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['tags_list']['first'] = $_smarty_tpl->tpl_vars['sTag']->first; ?> <li><?php if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['tags_list']['first']) { ?> , <?php } ?> <a rel="tag" href="<?php echo smarty_function_router(array('page' => 'tag'), $_smarty_tpl); echo rawurlencode($_smarty_tpl->tpl_vars['sTag']->value); ?> /"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['sTag']->value, ENT_QUOTES, 'UTF-8', true); ?> </a></li><?php } } else { ?> <li><?php echo $_smarty_tpl->tpl_vars['aLang']->value['topic_tags_empty']; ?> </li><?php } if ($_smarty_tpl->tpl_vars['oUserCurrent']->value) { if ($_smarty_tpl->tpl_vars['oFavourite']->value) { $_smarty_tpl->tpl_vars['sTag'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['sTag']->_loop = false; $_from = $_smarty_tpl->tpl_vars['oFavourite']->value->getTagsArray(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['sTag']->key => $_smarty_tpl->tpl_vars['sTag']->value) { $_smarty_tpl->tpl_vars['sTag']->_loop = true; ?> <li class="topic-tags-user js-favourite-tag-user">, <a rel="tag" href="<?php echo $_smarty_tpl->tpl_vars['oUserCurrent']->value->getUserWebPath(); ?> favourites/topics/tag/<?php echo rawurlencode($_smarty_tpl->tpl_vars['sTag']->value); ?> /"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['sTag']->value, ENT_QUOTES, 'UTF-8', true); ?> </a></li><?php } } ?> <li class="topic-tags-edit js-favourite-tag-edit" <?php if (!$_smarty_tpl->tpl_vars['oFavourite']->value) { ?> style="display:none;"<?php } ?> ><a href="#" onclick="return ls.favourite.showEditTags(<?php echo $_smarty_tpl->tpl_vars['oTopic']->value->getId(); ?> ,'topic',this);" class="link-dotted"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['favourite_form_tags_button_show']; ?> </a></li><?php } ?> </ul> <?php } ?> <ul class="topic-info clearfix"> <?php if (!$_smarty_tpl->tpl_vars['bTopicList']->value) { ?> <li class="topic-info-vote"> <div class="vote-result <?php if ($_smarty_tpl->tpl_vars['oVote']->value || $_smarty_tpl->tpl_vars['oUserCurrent']->value && $_smarty_tpl->tpl_vars['oTopic']->value->getUserId() == $_smarty_tpl->tpl_vars['oUserCurrent']->value->getId() || strtotime($_smarty_tpl->tpl_vars['oTopic']->value->getDateAdd()) < time() - $_smarty_tpl->tpl_vars['oConfig']->value->GetValue('acl.vote.topic.limit_time')) { ?> <?php if ($_smarty_tpl->tpl_vars['oTopic']->value->getRating() > 0) { ?> vote-count-positive <?php } elseif ($_smarty_tpl->tpl_vars['oTopic']->value->getRating() < 0) { ?> vote-count-negative <?php } elseif ($_smarty_tpl->tpl_vars['oTopic']->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 } elseif ($_smarty_tpl->tpl_vars['oVote']->value->getDirection() == 0) { ?> voted-zero <?php } ?> <?php } ?> <?php if (strtotime($_smarty_tpl->tpl_vars['oTopic']->value->getDateAdd()) < time() - $_smarty_tpl->tpl_vars['oConfig']->value->GetValue('acl.vote.topic.limit_time') && !$_smarty_tpl->tpl_vars['oVote']->value || $_smarty_tpl->tpl_vars['oUserCurrent']->value && $_smarty_tpl->tpl_vars['oTopic']->value->getUserId() == $_smarty_tpl->tpl_vars['oUserCurrent']->value->getId()) { ?> vote-nobuttons <?php } ?> " id="vote_total_topic_<?php echo $_smarty_tpl->tpl_vars['oTopic']->value->getId(); ?> " <?php if (!$_smarty_tpl->tpl_vars['oVote']->value && !$_smarty_tpl->tpl_vars['bVoteInfoShow']->value) { ?> onclick="ls.tools.slide($('#vote_area_topic_<?php echo $_smarty_tpl->tpl_vars['oTopic']->value->getId(); ?> '), $(this));" <?php } ?> <?php if (false) { ?> onclick="ls.tools.slide($('#vote-info-topic-<?php echo $_smarty_tpl->tpl_vars['oTopic']->value->getId(); ?> '), $(this));" <?php } ?> > <?php if ($_smarty_tpl->tpl_vars['bVoteInfoShow']->value) { ?> <?php if ($_smarty_tpl->tpl_vars['oTopic']->value->getRating() > 0) { ?> +<?php } echo $_smarty_tpl->tpl_vars['oTopic']->value->getRating(); ?> <?php } ?> </div> </li> <?php } ?> <li class="topic-info-views"> <i class="icon-views"></i> <?php echo $_smarty_tpl->tpl_vars['oTopic']->value->getCountRead(); ?> </li> <li class="topic-info-favourite <?php if ($_smarty_tpl->tpl_vars['oUserCurrent']->value && $_smarty_tpl->tpl_vars['oTopic']->value->getIsFavourite()) { ?> active<?php } ?> " onclick="return ls.favourite.toggle(<?php echo $_smarty_tpl->tpl_vars['oTopic']->value->getId(); ?> ,'#fav_topic_<?php echo $_smarty_tpl->tpl_vars['oTopic']->value->getId(); ?> ','topic');"> <i id="fav_topic_<?php echo $_smarty_tpl->tpl_vars['oTopic']->value->getId(); ?> " class="favourite icon-favourite <?php if ($_smarty_tpl->tpl_vars['oUserCurrent']->value && $_smarty_tpl->tpl_vars['oTopic']->value->getIsFavourite()) { ?> active<?php } ?> "></i> <span class="favourite-count" id="fav_count_topic_<?php echo $_smarty_tpl->tpl_vars['oTopic']->value->getId(); ?> "><?php if ($_smarty_tpl->tpl_vars['oTopic']->value->getCountFavourite() > 0) { echo $_smarty_tpl->tpl_vars['oTopic']->value->getCountFavourite(); } ?> </span> </li> <?php if ($_smarty_tpl->tpl_vars['bTopicList']->value) { ?> <li class="topic-info-comments"> <a href="<?php echo $_smarty_tpl->tpl_vars['oTopic']->value->getUrl(); ?> #comments" title="<?php echo $_smarty_tpl->tpl_vars['aLang']->value['topic_comment_read']; ?> "> <i class="icon-comments <?php if ($_smarty_tpl->tpl_vars['oTopic']->value->getCountComment() != 0 && ($_smarty_tpl->tpl_vars['oTopic']->value->getCountComment() == $_smarty_tpl->tpl_vars['oTopic']->value->getCountCommentNew() || $_smarty_tpl->tpl_vars['oTopic']->value->getCountCommentNew())) { ?> active<?php } ?> "></i> <span class="comments-count"> <?php echo $_smarty_tpl->tpl_vars['oTopic']->value->getCountComment(); ?> <?php if ($_smarty_tpl->tpl_vars['oTopic']->value->getCountCommentNew()) { ?> <span class="comments-new">+<?php echo $_smarty_tpl->tpl_vars['oTopic']->value->getCountCommentNew(); ?> </span><?php } ?> </span> </a> </li> <?php } ?> <li class="topic-info-share" onclick="ls.tools.slide($('#topic_share_<?php echo $_smarty_tpl->tpl_vars['oTopic']->value->getId(); ?> '), $(this));"> <i class="icon-share"></i> </li> </ul> <?php if ($_smarty_tpl->tpl_vars['bVoteInfoShow']->value) { ?> <div id="vote-info-topic-<?php echo $_smarty_tpl->tpl_vars['oTopic']->value->getId(); ?> " class="slide slide-bg-grey"> + <?php echo $_smarty_tpl->tpl_vars['oTopic']->value->getCountVoteUp(); ?> <br/> - <?php echo $_smarty_tpl->tpl_vars['oTopic']->value->getCountVoteDown(); ?> <br/> <?php echo $_smarty_tpl->tpl_vars['oTopic']->value->getCountVoteAbstain(); ?> <br/> <?php echo smarty_function_hook(array('run' => 'topic_show_vote_stats', 'topic' => $_smarty_tpl->tpl_vars['oTopic']->value), $_smarty_tpl); ?> </div> <?php } ?> <div class="slide slide-topic-info-extra" id="topic_share_<?php echo $_smarty_tpl->tpl_vars['oTopic']->value->getId(); ?> "> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hookb', array('run' => "topic_share", 'topic' => $_smarty_tpl->tpl_vars['oTopic']->value, 'bTopicList' => $_smarty_tpl->tpl_vars['bTopicList']->value)); $_block_repeat = true; echo smarty_block_hookb(array('run' => "topic_share", 'topic' => $_smarty_tpl->tpl_vars['oTopic']->value, 'bTopicList' => $_smarty_tpl->tpl_vars['bTopicList']->value), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <div class="yashare-auto-init" data-yashareTitle="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['oTopic']->value->getTitle(), ENT_QUOTES, 'UTF-8', true); ?> " data-yashareLink="<?php echo $_smarty_tpl->tpl_vars['oTopic']->value->getUrl(); ?> " data-yashareL10n="ru" data-yashareType="button" data-yashareQuickServices="yaru,vkontakte,facebook,twitter,odnoklassniki,moimir,lj,gplus"></div> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hookb(array('run' => "topic_share", 'topic' => $_smarty_tpl->tpl_vars['oTopic']->value, 'bTopicList' => $_smarty_tpl->tpl_vars['bTopicList']->value), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <div id="vote_area_topic_<?php echo $_smarty_tpl->tpl_vars['oTopic']->value->getId(); ?> " class="vote"> <div class="vote-item vote-up" onclick="return ls.vote.vote(<?php echo $_smarty_tpl->tpl_vars['oTopic']->value->getId(); ?> ,this,1,'topic');"><i></i></div> <?php if (!$_smarty_tpl->tpl_vars['bVoteInfoShow']->value) { ?> <div class="vote-item vote-zero" title="<?php echo $_smarty_tpl->tpl_vars['aLang']->value['topic_vote_count']; ?> : <?php echo $_smarty_tpl->tpl_vars['oTopic']->value->getCountVote(); ?> " onclick="return ls.vote.vote(<?php echo $_smarty_tpl->tpl_vars['oTopic']->value->getId(); ?> ,this,0,'topic');"> <i></i> Воздержаться </div> <?php } ?> <div class="vote-item vote-down" onclick="return ls.vote.vote(<?php echo $_smarty_tpl->tpl_vars['oTopic']->value->getId(); ?> ,this,-1,'topic');"><i></i></div> </div> <ul class="topic-info-extra clearfix"> <li class="topic-info-author"> <a href="<?php echo $_smarty_tpl->tpl_vars['oUser']->value->getUserWebPath(); ?> "><img src="<?php echo $_smarty_tpl->tpl_vars['oUser']->value->getProfileAvatarPath(48); ?> " alt="avatar" /></a> <p><a rel="author" href="<?php echo $_smarty_tpl->tpl_vars['oUser']->value->getUserWebPath(); ?> "><?php echo $_smarty_tpl->tpl_vars['oUser']->value->getLogin(); ?> </a></p> <time datetime="<?php echo smarty_function_date_format(array('date' => $_smarty_tpl->tpl_vars['oTopic']->value->getDateAdd(), 'format' => 'c'), $_smarty_tpl); ?> " title="<?php echo smarty_function_date_format(array('date' => $_smarty_tpl->tpl_vars['oTopic']->value->getDateAdd(), 'format' => 'j F Y, H:i'), $_smarty_tpl); ?> "> <?php echo smarty_function_date_format(array('date' => $_smarty_tpl->tpl_vars['oTopic']->value->getDateAdd(), 'format' => "j F Y, H:i"), $_smarty_tpl); ?> </time> </li> <?php if ($_smarty_tpl->tpl_vars['oUserCurrent']->value) { ?> <li class="topic-info-extra-trigger" onclick="ls.tools.slide($('#topic-extra-target-<?php echo $_smarty_tpl->tpl_vars['oTopic']->value->getId(); ?> '), $(this));"> <i class="icon-topic-menu"></i> </li> <?php } ?> <?php echo smarty_function_hook(array('run' => 'topic_show_info', 'topic' => $_smarty_tpl->tpl_vars['oTopic']->value), $_smarty_tpl); ?> </ul> <ul class="slide slide-topic-info-extra" id="topic-extra-target-<?php echo $_smarty_tpl->tpl_vars['oTopic']->value->getId(); ?> "> <?php if ($_smarty_tpl->tpl_vars['oUserCurrent']->value) { ?> <li><a href="<?php echo smarty_function_router(array('page' => 'talk'), $_smarty_tpl); ?> add/?talk_users=<?php echo $_smarty_tpl->tpl_vars['oUser']->value->getLogin(); ?> "><?php echo $_smarty_tpl->tpl_vars['aLang']->value['send_message_to_author']; ?> </a></li> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['oUserCurrent']->value && ($_smarty_tpl->tpl_vars['oUserCurrent']->value->getId() == $_smarty_tpl->tpl_vars['oTopic']->value->getUserId() || $_smarty_tpl->tpl_vars['oUserCurrent']->value->isAdministrator() || $_smarty_tpl->tpl_vars['oBlog']->value->getUserIsAdministrator() || $_smarty_tpl->tpl_vars['oBlog']->value->getUserIsModerator() || $_smarty_tpl->tpl_vars['oBlog']->value->getOwnerId() == $_smarty_tpl->tpl_vars['oUserCurrent']->value->getId())) { ?> <li><a href="<?php echo smarty_function_cfg(array('name' => 'path.root.web'), $_smarty_tpl); ?> /<?php echo $_smarty_tpl->tpl_vars['oTopic']->value->getType(); ?> /edit/<?php echo $_smarty_tpl->tpl_vars['oTopic']->value->getId(); ?> /" title="<?php echo $_smarty_tpl->tpl_vars['aLang']->value['topic_edit']; ?> " class="actions-edit"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['topic_edit']; ?> </a></li> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['oUserCurrent']->value && ($_smarty_tpl->tpl_vars['oUserCurrent']->value->isAdministrator() || $_smarty_tpl->tpl_vars['oBlog']->value->getUserIsAdministrator() || $_smarty_tpl->tpl_vars['oBlog']->value->getOwnerId() == $_smarty_tpl->tpl_vars['oUserCurrent']->value->getId())) { ?> <li><a href="<?php echo smarty_function_router(array('page' => 'topic'), $_smarty_tpl); ?> delete/<?php echo $_smarty_tpl->tpl_vars['oTopic']->value->getId(); ?> /?security_ls_key=<?php echo $_smarty_tpl->tpl_vars['LIVESTREET_SECURITY_KEY']->value; ?> " title="<?php echo $_smarty_tpl->tpl_vars['aLang']->value['topic_delete']; ?> " onclick="return confirm('<?php echo $_smarty_tpl->tpl_vars['aLang']->value['topic_delete_confirm']; ?> ');" class="actions-delete"><?php echo $_smarty_tpl->tpl_vars['aLang']->value['topic_delete']; ?> </a></li> <?php } ?> </ul> <?php if (!$_smarty_tpl->tpl_vars['bTopicList']->value) { ?> <?php echo smarty_function_hook(array('run' => 'topic_show_end', 'topic' => $_smarty_tpl->tpl_vars['oTopic']->value), $_smarty_tpl); ?> <?php } ?> </footer> </article> <!-- /.topic --><?php }
function content_55784c6133b7a3_75047694($_smarty_tpl) { if (!is_callable('smarty_block_hookb')) { include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/block.hookb.php'; } if (!is_callable('smarty_function_date_format')) { include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.date_format.php'; } if (!is_callable('smarty_function_hook')) { include '/home/vxeeuesn/public_html/_sokol/engine/modules/viewer/plugs/function.hook.php'; } ?> <?php $_smarty_tpl->tpl_vars["oBlog"] = new Smarty_variable($_smarty_tpl->tpl_vars['oTopic']->value->getBlog(), null, 0); ?> <?php $_smarty_tpl->tpl_vars["oUser"] = new Smarty_variable($_smarty_tpl->tpl_vars['oTopic']->value->getUser(), null, 0); ?> <?php $_smarty_tpl->tpl_vars["oVote"] = new Smarty_variable($_smarty_tpl->tpl_vars['oTopic']->value->getVote(), null, 0); ?> <?php $_smarty_tpl->tpl_vars["oFavourite"] = new Smarty_variable($_smarty_tpl->tpl_vars['oTopic']->value->getFavourite(), null, 0); ?> <footer class="topic-footer"> <ul class="topic-info"> <li class="fl-r"> <div class="topic-share" id="topic_share_<?php echo $_smarty_tpl->tpl_vars['oTopic']->value->getId(); ?> "> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hookb', array('run' => "topic_share", 'topic' => $_smarty_tpl->tpl_vars['oTopic']->value, 'bTopicList' => $_smarty_tpl->tpl_vars['bTopicList']->value)); $_block_repeat = true; echo smarty_block_hookb(array('run' => "topic_share", 'topic' => $_smarty_tpl->tpl_vars['oTopic']->value, 'bTopicList' => $_smarty_tpl->tpl_vars['bTopicList']->value), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <div class="yashare-auto-init" data-yashareTitle="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['oTopic']->value->getTitle(), ENT_QUOTES, 'UTF-8', true); ?> " data-yashareLink="<?php echo $_smarty_tpl->tpl_vars['oTopic']->value->getUrl(); ?> " data-yashareL10n="ru" data-yashareType="button" data-yashareQuickServices="yaru,vkontakte,facebook,twitter,odnoklassniki,moimir,lj,gplus"></div> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hookb(array('run' => "topic_share", 'topic' => $_smarty_tpl->tpl_vars['oTopic']->value, 'bTopicList' => $_smarty_tpl->tpl_vars['bTopicList']->value), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> </li> <li class="topic-info-date"> <time datetime="<?php echo smarty_function_date_format(array('date' => $_smarty_tpl->tpl_vars['oTopic']->value->getDateAdd(), 'format' => 'c'), $_smarty_tpl); ?> " title="<?php echo smarty_function_date_format(array('date' => $_smarty_tpl->tpl_vars['oTopic']->value->getDateAdd(), 'format' => 'j F Y, H:i'), $_smarty_tpl); ?> "> <?php echo smarty_function_date_format(array('date' => $_smarty_tpl->tpl_vars['oTopic']->value->getDateAdd(), 'hours_back' => "12", 'minutes_back' => "60", 'now' => "60", 'day' => "day H:i", 'format' => "j F Y, H:i"), $_smarty_tpl); ?> </time> </li> <?php echo smarty_function_hook(array('run' => 'topic_show_info', 'topic' => $_smarty_tpl->tpl_vars['oTopic']->value), $_smarty_tpl); ?> </ul> <?php if (!$_smarty_tpl->tpl_vars['bTopicList']->value) { ?> <?php echo smarty_function_hook(array('run' => 'topic_show_end', 'topic' => $_smarty_tpl->tpl_vars['oTopic']->value), $_smarty_tpl); ?> <?php } ?> </footer> </article> <!-- /.topic --><?php }