Файл: template/themes/web/default/header.php
Строк: 71
<?='<?xml version="1.0" encoding="UTF-8"?>'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?=Core::language();?>" xml:lang="<?=Core::language();?>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><?=(!empty($title) ? $title : 'Untitled Page'); ?> | <?=Core::config('title');?></title>
<link rel="stylesheet" href="<?=Core::themeUrl();?>/style.css" type="text/css"/>
<link rel="shortcut icon" href="<?=Core::themeUrl();?>/favicon.ico" type="image/x-icon" />
<?=(Core::config('description') ? '<meta name="description" content="'.Core::config('description').'" />' : NULL); ?>
<?=(Core::config('keywords') ? '<meta name="keywords" content="'.Core::config('keywords').'" />' : NULL); ?>
</head>
<body>
<div id="templatmeo_wrapper">
<ul id="nav">
<li><a href="/"><?=_t('home'); ?></a></li>
<?php
global $user;
echo (isset($user) ? '<li><a href="/user/panel">'. _t('user_panel') .'</a></li>' : '<li><a href="/user/sign_in">'. _t('sign_in') .'</a></li><li><a href="/user/sign_up">'. _t('sign_up') .'</a></li>') . ($user['level'] >= 6 ? '<li><a href="/padmin/">'. _t('admin_panel').'</a></li>' : NULL);
?>
</ul>
<?=notifications();?>
<?=Stat::adsHeader();?>
<div id="cs_content_wrapper">
<div id="cs_left_sidebar">
<div class="cs_box">
<div class="title"><?=_t('menu')?></div>
<ul class="side_menu"><div class="menu">
<?php
$modules = scandir(ROOT.'/modules');
foreach($modules as $module)
{
if($module != '.' && $module != '..' && $module != 'user' && $module != 'padmin' && $module != 'pages' && $module !='.htaccess' && $module != 'index.php')
{
$_module = parse_ini_file(ROOT.'/modules/'.$module.'/module.ini');
if($_module['open'] == 1 && $_module['location'] == 0)
{
if(file_exists(ROOT.'/modules/'.strtolower($module).'/images/icon.png'))
$img = '<img src="/'.strtolower($module).'/images/icon.png" alt="'.strtolower($module).'" />';
else
$img = img(strtolower($module).'.png');
echo '<li><a href="/'.$module.'">'.$img.' '.ucfirst(_t(strtolower($_module['name']))).' </a> </li>';
}
}
}
?>
</div>
</ul>
<div class="block">
<?= Stat::set_block(); ?>
</div>
<div class="menu"><?=Stat::online();?></div>
</div>
</div>
</div>
<div id="cs_content">
<div class="line">