Просмотр файла CS_Wap/index.php

Размер файла: 4.45Kb
  1. <?php
  2. header("Content-type:text/html; charset=utf-8");
  3. echo '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  4. <html>
  5. <head>';
  6. echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8">';
  7. echo '<link rel="shortcut icon" href="'.$config_home.'/themes/CS_1-6/icons/favicon.ico">';
  8. if($config_rssicon==1){
  9. echo '<link rel="alternate" type="application/rss+xml" title="RSS" href="'.$config_home.'/news/rss_news.php">';
  10. }
  11. echo'<link rel="stylesheet" href="'.$config_home.'/themes/CS_Wap/style.css" type="text/css" media="screen">';
  12. echo '<title>'.site_title($php_self).'</title>';
  13. include_once BASEDIR."template/rh.php";
  14. echo '<meta http-equiv="Content-Language" content="ru-RU">';
  15. echo '<meta name="robots" content="index,follow">';
  16. echo '<meta name="rating" content="Global">';
  17. echo '<meta name="category" content="Computer & Internet">';
  18. echo '<meta name="REVISIT-AFTER" content="7 days">';
  19. echo '<meta name="description" content="'.$config_description.'">';
  20. echo '<meta name="keywords" content="'.$metatags.'">';
  21. echo '<meta name="author" content="KoT[T] aka sw.East - CMS-Design Amateur">';
  22. echo '<meta name="copyright" content="CMS-Design Amateur - Web Дизайн Wap Сайтов">';
  23. echo '<meta name="Identifier-url" CONTENT="http://www.cms-design.co.cc">';
  24.  
  25. echo'
  26.  
  27. <!--
  28. Ko[T] aka sw.East design
  29. http://www.cms-design.co.cc
  30.  
  31. Name : CS_Wap
  32. Description: wap-версия в стиле web2.0, фиксированная ширина, pda дизайн со светлой цветовой схемой.
  33. Version : 1.0
  34. Released : 20100519
  35.  
  36. -->
  37.  
  38. </head>
  39. <body>';
  40. echo '<!--Themes by CMS-Design Amateur-->';
  41.  
  42.  
  43. //-- Функция замены некоторых графических элементов --//
  44.  
  45. function myhtml($myhtml) {
  46.  
  47. $myhtml = str_replace('<img src="'.BASEDIR.'images/img/rss.gif" alt="">',
  48. '<img src="'.BASEDIR.'themes/CS_Wap/icons/rss.png" alt="">',$myhtml);
  49. $myhtml = str_replace('<img src="'.BASEDIR.'images/img/act.gif" alt="">',
  50. '<img src="'.BASEDIR.'themes/CS_Wap/icons/comments.png" alt="">',$myhtml);
  51. $myhtml = str_replace('<img src="'.BASEDIR.'images/img/act1.gif" alt="">',
  52. '<img src="'.BASEDIR.'themes/CS_Wap/icons/comments.png" alt="">',$myhtml);
  53. $myhtml = str_replace('<img src="'.BASEDIR.'images/img/act2.gif" alt="">',
  54. '<img src="'.BASEDIR.'themes/CS_Wap/icons/comments.png" alt="">',$myhtml);
  55. $myhtml = str_replace('<img src="'.BASEDIR.'images/img/act3.gif" alt="">',
  56. '<img src="'.BASEDIR.'themes/CS_Wap/icons/comments.png" alt="">',$myhtml);
  57. $myhtml = str_replace('<img src="'.BASEDIR.'images/img/act.png" alt="">',
  58. '<img src="'.BASEDIR.'themes/CS_Wap/icons/comments.png" alt="">',$myhtml);
  59. $myhtml = str_replace('<img src="'.BASEDIR.'images/img/homepage.gif" alt="">',
  60. '<img src="'.BASEDIR.'themes/CS_Wap/icons/homepage.png" alt="">',$myhtml);
  61. $myhtml = str_replace('<img src="'.BASEDIR.'images/img/themes.gif" alt="">',
  62. '<img src="'.BASEDIR.'themes/CS_Wap/icons/themes.png" alt="">',$myhtml);
  63. $myhtml = str_replace('<font color="#FF0000">','<font color="#CC6666">',$myhtml);
  64. $myhtml = str_replace('<font color=#FF0000>','<font color="#CC6666">',$myhtml);
  65. $myhtml = str_replace('<font color=red>','<font color="#CC6666">',$myhtml);
  66. $myhtml = str_replace('<font color="red">','<font color="#CC6666">',$myhtml);
  67. $myhtml = str_replace('<font color=Red>','<font color="#CC6666">',$myhtml);
  68. $myhtml = str_replace('<font color="Red">','<font color="#CC6666">',$myhtml);
  69. $myhtml = str_replace('<font color="#00FF00">','<font color="#339933">',$myhtml);
  70. $myhtml = str_replace('<font color=#00FF00>','<font color="#339933">',$myhtml);
  71. $myhtml = str_replace('<font color=green>','<font color="#336633">',$myhtml);
  72. $myhtml = str_replace('<font color=Green>','<font color="#336633">',$myhtml);
  73.  
  74. return $myhtml; }
  75. ob_start('myhtml');
  76.  
  77. //--------------------- Фон ( обложка ) ----------------------//
  78.  
  79. echo'
  80. <div align="center">
  81. <div id="wrapper">
  82. ';
  83.  
  84. //------- Логотип (меняйте как хотите- для Вашего удобства сделал Некартинкой) ---//
  85.  
  86. echo'
  87. <div id="header">
  88. <div id="logo">
  89. <a href="'.$config_home.'/" title="Перейти на Главную">CmS - Design Amateur</a>
  90. <h2>
  91. <a href="http://www.cms-design.co.cc/" title="CmS - Design Amateur - motoR deSigN">Web Дизайн Wap Сайтов</a>
  92. </h2>
  93. </div>
  94. </div>
  95. ';
  96.  
  97. echo'
  98. <div id="content">
  99. <div class="post">
  100. ';
  101.  
  102. ?>