Вход Регистрация
Файл: Application/themes/default/html/_topbar.php
Строк: 131
<?php

if ($D->is_logged == 1) {
    
$txtuser '';
    if (empty(
$D->me->firstname) || empty($D->me->lastname)) $txtuser $D->me->username;
    else 
$txtuser $D->me->firstname.' '.$D->me->lastname;
    
    if (empty(
$D->me->avatar)) $txtavatar 'default.jpg';
    else 
$txtavatar $D->me->avatar;
}
?>
<script type="text/javascript" src="<?php $C->SITE_URL ?>themes/<?php echo $C->THEME ?>/js/js_search.js"></script>
<div id="topbar-inside">
    <div id="area1">
        <a href="<?php echo $C->SITE_URL?>">
        <div id="isotipo"><img src="<?php echo $C->SITE_URL?>themes/<?php echo $C->THEME ?>/imgs/isotipo.png" class="rounded3"></div>
        <div id="logo"><img src="<?php echo $C->SITE_URL?>themes/<?php echo $C->THEME ?>/imgs/logo.png"></div>
        </a>
        
        <div id="boxsearch"><input name="topsearch" type="text" class="form-control" id="topsearch" placeholder="<?php echo $this->lang('global_txt_search');?>" x-webkit-speech="x-webkit-speech" onwebkitspeechchange="topSearch();" title="<?php echo $this->lang('global_txt_search');?>"></div>
        <div class="sh"></div>
    </div>
    
    <?php if ($D->is_logged == 1) { ?>
    
    <div id="area2">
        <div id="infouser">
            <div id="txtusername"><?php echo $txtuser?></div>
            <div id="imgavatar" title="<?php echo $this->lang('global_tmenu_opc_profile');?>"><a href="<?php echo $C->SITE_URL.$D->me->username;?>"><img src="<?php echo $C->SITE_URL.$C->FOLDER_AVATAR.'min3/'.$txtavatar?>" /></a></div>
            <div class="sh"></div>
        </div>
        
        <div id="icodashtop">
            <div>
            <a href="<?php echo $C->SITE_URL.'dashboard';?>"><span class="icotop" title="<?php echo $this->lang('global_tmenu_opc_dashboard');?>"><img src="<?php echo $C->SITE_URL?>themes/<?php echo $C->THEME ?>/imgs/icodashboard.png"></span></a>
            </div>

            <div>
            <a href="#" onclick="showNotificationsMessages(); return false;" id="linkshownotmsg"><span class="icotop" title="<?php echo $this->lang('global_tmenu_opc_messages');?>"><img src="<?php echo $C->SITE_URL?>themes/<?php echo $C->THEME ?>/imgs/iconotimessages.png" id="icomessages"><span class="box-notification-msg"><span class="notification-value-msg"></span></span></span></a>
            </div>
            
            <div>
            <a href="#" onclick="showNotifications(); return false;" id="linkshownot"><span class="icotop" title="<?php echo $this->lang('global_tmenu_opc_notifications');?>"><img src="<?php echo $C->SITE_URL?>themes/<?php echo $C->THEME ?>/imgs/iconotifications.png" id="iconotifications"><span class="box-notification"><span class="notification-value"></span></span></span></a>
            </div>
            
            <div>
            <a href="<?php echo $C->SITE_URL.'logout';?>"><span class="icotop" title="<?php echo $this->lang('global_tmenu_opc_logout');?>"><img src="<?php echo $C->SITE_URL?>themes/<?php echo $C->THEME ?>/imgs/icologout.png"></span></a>
            </div>
        </div>
        <div class="sh"></div>
        
    </div>
    
    <div class="area-notification">
        <div class="content-notification">
            <div class="areaclose"><a href="#" onclick="hideNotifications(); return false;" title="<?php echo $this->lang('global_txt_close_notification')?>"><img src="<?php echo $C->SITE_URL?>themes/<?php echo $C->THEME ?>/imgs/icoclose.png"></a></div>
            <div class="content-info"></div>
            <div class="areamore"><div class="morenotifications linkblue2"><a href="<?php echo $C->SITE_URL?>dashboard/mynotifications"><?php echo $this->lang('global_txt_allnotifications')?></a></div></div>
        </div>
    </div>
    
    <div class="area-notification-msg">
        <div class="content-notification-msg">
            <div class="areaclose"><a href="#" onclick="hideNotificationsMessages(); return false;" title="<?php echo $this->lang('global_txt_close_notification')?>"><img src="<?php echo $C->SITE_URL?>themes/<?php echo $C->THEME ?>/imgs/icoclose.png"></a></div>
            <div class="content-info-msg"></div>
            <div class="areamore"><div class="morenotifications linkblue2"><a href="<?php echo $C->SITE_URL?>dashboard/mymessages"><?php echo $this->lang('global_txt_allmessages')?></a></div></div>
        </div>
    </div>

    
<script type="text/javascript" src="<?php $C->SITE_URL ?>themes/<?php echo $C->THEME ?>/js/js_topbar.js"></script>
<script>
    //$("#topsearch").on('keyup', topSearch);
    
    var intervalcheckevents = <?php echo $C->INTERVAL_NOTIFICATIONS_EVENTS?>;
    checkNewNotifications();
    
    var intervalcheckmsg = <?php echo $C->INTERVAL_NOTIFICATIONS_MSGS?>;
    checkNewMessages();
    
</script>

    
    <?php } else { ?>

    <div id="area2">

        <div id="icodashtop">
            <a href="<?php echo $C->SITE_URL.'home';?>"><span class="icotop" title="<?php echo $this->lang('global_tmenu_opc_register');?>"><img src="<?php echo $C->SITE_URL?>themes/<?php echo $C->THEME ?>/imgs/icoregister.png"></span></a>
        </div>
        <div class="sh"></div>
        
    </div>
    
    <?php ?>

    <div class="sh"></div>
    
</div>



<div class="sh"></div>
<script>
    $("#topsearch").on('keyup', topSearch);
</script>
Онлайн: 1
Реклама