EIOS/inc/smarty/templates_c/8511ea8fb7e852e65212905d4be...

63 lines
2.3 KiB
PHP
Raw Normal View History

2023-12-28 15:39:22 +03:00
<?php /* Smarty version Smarty-3.1.13, created on 2022-11-30 15:45:17
compiled from "tpl/tpl_notification.html" */ ?>
<?php /*%%SmartyHeaderCode:4558796356254651a2268b0-96122581%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'8511ea8fb7e852e65212905d4becf51a9806f08a' =>
array (
0 => 'tpl/tpl_notification.html',
1 => 1669812313,
2 => 'file',
),
),
'nocache_hash' => '4558796356254651a2268b0-96122581',
'function' =>
array (
),
'version' => 'Smarty-3.1.13',
'unifunc' => 'content_6254651a22bdc5_80564223',
'variables' =>
array (
'user' => 0,
'iamonline' => 0,
),
'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_6254651a22bdc5_80564223')) {function content_6254651a22bdc5_80564223($_smarty_tpl) {?><div id="top_menu" class="nav notify-row">
<ul class="nav top-menu" style="padding: 0px!important;">
<?php if (isset($_smarty_tpl->tpl_vars['user']->value['id'])){?>
<li class="dropdown" id="header_inbox_bar">
<?php echo $_smarty_tpl->getSubTemplate ("tpl_notification_item.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
</li>
<li class="dropdown">
<a href="/chat/" target="_blank" >
<i class="icon-comment-alt" style="font-size: 26px;"></i>
<span class="badge badge-important">тест</span>
</a>
</li>
<!--li><?php echo $_smarty_tpl->tpl_vars['iamonline']->value;?>
<<?php echo (time()-(60*20));?>
</li-->
<?php if ($_smarty_tpl->tpl_vars['iamonline']->value<(time()-(60*20))){?>
<!--li id="header_online_bar"><a class="btn btn-warning tooltips" href="#" id="onlinebutton" style="margin: 9px 0px;padding: 2px 10px;" data-trigger="hover" data-original-title="Нажимайте один раз кнопку во время занятий" data-placement="bottom">Я в сети</a></li-->
<?php }?>
<?php }?>
</ul>
</div>
<script type="text/javascript">
$(document).ready(function(){
$("#onlinebutton").click(function(){
$("#header_online_bar").remove();
$.ajax({
url: '/json.php', dataType: 'json', type: 'POST', async: false, data: 'ajdes=active_online',
success: function(data){
}
});
});
});
</script>
<?php }} ?>