View file views/mobilecms/header.tpl

File size: 1.5Kb
<?php  header('Content-Type: application/xhtml+xml; charset=utf-8'); echo '<?xml version="1.0" encoding="UTF-8" ?>'  ?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php  echo $GLOBALS['CONFIG']['system']['system_title']  ?> | <?php echo (!empty($title) ? $title : $sub_title) ?></title>
<style type="text/css">
<?php $this->display('style') ?>
</style>
<link rel="shortcut icon" href="<?php  echo URL ?>views/<?php echo THEME ?>/img/favicon.ico" />
</head>
<body>
<div class="logo">
<?php echo $GLOBALS['CONFIG']['system']['system_title'] ?>
</div>

<?php if(modules::is_active_module('ads_manager')) echo ads_manager::get_ads_block('all_pages_up', '<div class="rekl">', '</div>') ?>

<?php if(defined('PRIVATE_NEW_MESSAGES')): ?>
<div class="block">
<a href="<?php echo a_url('private/list_messages', 'folder=new') ?>"><?php echo PRIVATE_NEW_MESSAGES .' '. main::end_str(PRIVATE_NEW_MESSAGES, 'новое сообщение', 'новых сообщения', 'новых сообщений') ?></a>
</div>
<?php endif; ?>

<?php if(!empty($_SESSION['check_user_id'])): ?>
<div class="block">
<a href="<?php echo a_url('user/exit_from_user_panel') ?>">Покинуть панель пользователя <b><?php echo $user['username'] ?></b> и перейти в панель управления</a>
</div>
<?php endif; ?>