View file design/themes/touch/default/views/layouts/header.php

File size: 1.86Kb
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?= System::currentLang(); ?>" lang="<?= System::currentLang(); ?>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><?=$title ?></title>
		<link rel="shortcut icon" href="<?=Yii::App()->theme->baseUrl; ?>/favicon.ico" type="image/x-icon">
		<link rel="stylesheet" href="<?=Yii::App()->theme->baseUrl;?>/style.css" type="text/css">
		<meta name="description" content="<?=System::getSettings('description')?>"/>
		<meta name="keywords" content="<?=System::getSettings('keywords'); ?>"/>
<body>
<div class="main">
<div class="logo"><img src="<?=Yii::App()->theme->baseUrl;?>/images/logo.png" alt="logo" /></div>

<div class="panel">
<?php if (User::loged()): ?>
		<a class="panel" href="/user/"><?= Lang::get('panel') ?></a>
		<?php if(System::notifications('mail') > 0): ?>
		<a class="panel" href="/user/dialogs"><?= Lang::get('dialogs_title', 'dialogs') ?> +<?= System::notifications('mail') ?></a>
		<?php endif; ?>
		<?php if(User::level() > 1): ?>
		<a class="panel" href="/user/logout?return=<?= System::Server('request_uri') ?>"><?= Lang::get('logout') ?></a>
		<a class="panel" href="/padmin/"><?= Lang::get('padmin_title', 'padmin') ?></a>
		<?php else: ?>
		<a class="panel" href="/user/logout?return=<?= System::Server('request_uri') ?>"><?= Lang::get('logout') ?></a>
		<?php endif; ?>
	<?php else: ?>
		<a class="panel" href="/user/login?return=<?= System::Server('request_uri') ?>"><?= Lang::get('login') ?></a>
		<a class="panel" href="/user/register"><?= Lang::get('register') ?></a>
		<a class="panel" href="/user/recovery"><?= Lang::get('recovery') ?></a>
<?php endif; ?>
</div>
<?= $this->widgets('header'); ?>
<?= System::ads('header'); ?>