Просмотр файла engine/includes/head.php

Размер файла: 1.17Kb
  1. <?php
  2. $show_theme = !empty($user['set_them']) ? $user['set_them'] : $set['theme'];
  3.  
  4. if (stristr($_SERVER['HTTP_USER_AGENT'], 'msie') && stristr($_SERVER['HTTP_USER_AGENT'], 'windows'))
  5. {
  6. header('Content-type: text/html; charset=UTF-8');
  7. }
  8. else
  9. {
  10. header('Content-type: application/xhtml+xml; charset=UTF-8');
  11. }
  12. ?>
  13. <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
  14. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru">
  15. <head>
  16. <title><?=$set['title']?></title>
  17. <link rel="shortcut icon" href="/favicon.png" />
  18. <link rel="stylesheet" href="/style/themes/<?=$show_theme?>/style.css" type="text/css" />
  19. <meta name="keywords" content="<?=$set['meta_keywords']?>" />
  20. <meta name="description" content="<?=$set['meta_description']?>" />
  21. </head>
  22. <body>
  23. <?php
  24. if (file_exists(H.'style/themes/'.$show_theme.'/head.php'))
  25. include_once H.'style/themes/'.$show_theme.'/head.php';
  26. ?>
  27. <div class="title">
  28. <?=$set['title']?>
  29. </div>
  30. <div class="aut">
  31. <?=$user_id? '<a href="/pages/menu.php">Кабинет</a> | <a href="/login.php?exit">Выход</a>' : '<a href="/login.php">Войти на сайт</a>';?>
  32. </div>
  33. <div class="body">