Файл: style/themes/default/head.php
Строк: 83
<?
$set['web'] = false;
//header("Content-type: application/vnd.wap.xhtml+xml");
//header("Content-type: application/xhtml+xml");
header("Content-type: text/html");
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="ru">
<head>
<title>
<?=$set['title']?>
</title>
<link rel="shortcut icon" href="/style/themes/<?=$set['set_them']?>/favicon.ico" />
<link rel="stylesheet" href="/style/themes/<?=$set['set_them']?>/style.css" type="text/css" />
<?
// Левое меню
if (isset($user))
{
?>
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link rel="stylesheet" href="/style/themes/<?=$set['set_them']?>/style_css3.css" type="text/css" />
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script>
var Sidebar = {
toggle: function(event)
{
if (document.getElementById("eventCount").value == '1')
{
// Открываем
$('.bar_menu').css({'text-align':'left'});
$('.bar_razdel').css({'height':'auto', 'padding':'4px'});
$('.bar_link').css({'display':'inline-block'});
$('.left_side_bar').css({'width' : '200px'});
$('#eventOpen').css({'width' : '200px'});
document.getElementById("eventCount").value = 2;
}
else
{
// Закрываем
$('.bar_menu').css({'text-align':'center'});
$('.bar_razdel').css({'height':'10px', 'padding':'0px'});
$('.bar_link').css({'display':'none'});
$('.left_side_bar').css({'width' : '60px'});
$('#eventOpen').css({'width' : '60px'});
document.getElementById("eventCount").value = 1;
}
}
}
</script>
<?
}
?>
</head>
<body>
<div class="body">
<?
if (isset($_SESSION['message']))
{
echo '<div class="msg">' . $_SESSION['message'] . '</div>';
$_SESSION['message'] = NULL;
}
?>
<div id="logo" class="logo"><img src="/style/themes/<?=$set['set_them']?>/logo.png" alt="DS" /></div>
<?
// Левое меню
if (isset($user))
{
?>
<table cellpadding="0" cellspacing="0">
<tr>
<td class="left_side_bar" id="left_side_bar">
<div id="eventOpen" onclick="Sidebar.toggle(event);"><input id="eventCount" value="1" style="display: none"></div>
<div id="logo_bar" class="auts">
<a href="/index.php">
<img src="/style/themes/<?=$set['set_them']?>/side_bar/ds.png" alt="DS" />
<span class="bar_link"><img src="/style/themes/<?=$set['set_them']?>/side_bar/social.png" alt="™" /></span>
</a>
</div>
<a href="/id<?=$user['id']?>">
<div class="bar_menu">
<?=user::avatar($user['id'], 1)?> <span class="bar_link"><?=user::nick($user['id'], 0)?>
</div>
</a>
<?
// Основные разделы сайта
require_once H. 'style/themes/' . $set['set_them'] . '/menu.php';
?>
</td>
<td class="content" id="site_content">
<?
}