dc-template.notphp 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <?php
  2. # ***** BEGIN LICENSE BLOCK *****
  3. # This file is part of DotClear.
  4. # Copyright (c) 2004 Olivier Meunier and contributors. All rights
  5. # reserved.
  6. #
  7. # DotClear is free software; you can redistribute it and/or modify
  8. # it under the terms of the GNU General Public License as published by
  9. # the Free Software Foundation; either version 2 of the License, or
  10. # (at your option) any later version.
  11. #
  12. # DotClear is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. # GNU General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU General Public License
  18. # along with DotClear; if not, write to the Free Software
  19. # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  20. #
  21. # ***** END LICENSE BLOCK *****
  22. ?>
  23. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  24. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  25. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php dcInfo('lang'); ?>"
  26. lang="<?php dcInfo('lang'); ?>">
  27. <head>
  28. <meta http-equiv="Content-Type"
  29. content="text/html; charset=<?php dcInfo('encoding'); ?>" />
  30. <meta name="MSSmartTagsPreventParsing" content="TRUE" />
  31. <?php dcHeadLinks(); ?>
  32. <link rel="alternate" type="application/rss+xml" title="RSS" href="<?php dcInfo('rss'); ?>" />
  33. <link rel="alternate" type="application/xml" title="Atom" href="<?php dcInfo('atom'); ?>" />
  34. <meta name="DC.title" content="<?php dcInfo(); ?>" />
  35. <title><?php dcSinglePostTitle('%s - '); dcSingleCatTitle('%s - ');
  36. dcSingleMonthTitle('%s - '); dcCustomTitle('%s - '); dcInfo(); ?></title>
  37. <link rel="stylesheet" type="text/css" href="<?php dcInfo('theme'); ?>/style.css" media="screen" />
  38. <?php dcPostTrackbackAutoDiscovery(); ?>
  39. </head>
  40. <body>
  41. <div id="page">
  42. <div id="top">
  43. <h1><a href="<?php dcInfo('url'); ?>"><?php dcInfo(); ?></a></h1>
  44. </div>
  45. <p id="prelude"><a href="#main">Aller au contenu</a> |
  46. <a href="#sidebar">Aller au menu</a> |
  47. <a href="#search">Aller &agrave; la recherche</a></p>
  48. <div id="main">
  49. <div id="content">
  50. <?php if ($err_msg != '') : /* Si on a une quelconque erreur, on l'affiche */?>
  51. <div class="error"><strong>Erreur : </strong>
  52. <?php echo $err_msg; ?></div>
  53. <?php elseif ($preview) : /* Si on demande la prévisualisation d'un commentaire */?>
  54. <h3>Commentaire pour <?php dcPostTitle(); ?></h3>
  55. <div id="comment-preview">
  56. <blockquote>
  57. <?php dcCommentPreview(); ?>
  58. </blockquote>
  59. </div>
  60. <h3>Changer le commentaire</h3>
  61. <?php include dirname(__FILE__).'/form.php'; ?>
  62. <?php elseif ($mode != 'post') : /* Si aucune erreur et mode != post on affiche une liste de billets */?>
  63. <?php # Phrase affiché en cas de recherche (%s est le mot cherché)
  64. dcSearchString('<p>R&eacute;sultats de votre recherche de <em>%s</em>.</p>');
  65. ?>
  66. <?php include dirname(__FILE__).'/list.php'; ?>
  67. <?php else : /* Sinon, mode = post, donc billet unique (avec commentaires et tout le reste)*/?>
  68. <?php include dirname(__FILE__).'/post.php'; ?>
  69. <?php endif; ?>
  70. </div>
  71. </div>
  72. <div id="sidebar">
  73. <div id="calendar">
  74. <h2>Calendrier</h2>
  75. <?php #Affichage du calendrier
  76. dcCalendar('<table summary="Calendrier">%s</table>'); ?>
  77. <span></span>
  78. </div>
  79. <div id="search">
  80. <form action="<?php dcInfo('search'); ?>" method="get">
  81. <h2><label for="q">Rechercher</label></h2>
  82. <p class="field"><input name="q" id="q" type="text" size="10"
  83. value="<?php dcSearchString(); ?>" accesskey="4" />
  84. <input type="submit" class="submit" value="ok" /></p>
  85. </form>
  86. </div>
  87. <?php /* Affichage du blog "selection uniquement si des billets sont
  88. présents */ ?>
  89. <?php dcSelection('<div id="selection"><h2>&Agrave; retenir</h2><ul>%s</ul></div>'); ?>
  90. <?php dcLangList('<div id="languages"><h2>Langues</h2><ul>%s</ul></div>'); ?>
  91. <div id="categories">
  92. <h2>Cat&eacute;gories</h2>
  93. <?php dcCatList(); ?>
  94. </div>
  95. <div id="archives">
  96. <h2>Archives</h2>
  97. <?php dcMonthsList(); ?>
  98. </div>
  99. <div id="links">
  100. <h2>Liens</h2>
  101. <?php dcBlogroll::linkList(); ?>
  102. </div>
  103. <div id="syndicate">
  104. <h2>Syndication</h2>
  105. <ul>
  106. <li><a href="<?php dcInfo('rss'); ?>">fil rss</a></li>
  107. <li><a href="<?php dcInfo('rss'); ?>?type=co">fil rss commentaires</a></li>
  108. <li><a href="<?php dcInfo('atom'); ?>">fil atom</a></li>
  109. <li><a href="<?php dcInfo('atom'); ?>?type=co">fil atom commentaires</a></li>
  110. </ul>
  111. </div>
  112. </div>
  113. <p id="footer"><a href="http://www.dotclear.net/">
  114. propuls&eacute; par DotClear</a>, <script type="text/javascript" src="http://technorati.com/embed/ayectx2b3s.js"> </script></p>.
  115. </div> <!-- end #page -->
  116. <!-- Blocs en plus pour ajouter des images en tout genre si besoin -->
  117. <div id="block1"><span></span></div><div id="block2"><span></span></div>
  118. <div id="block3"><span></span></div><div id="block4"><span></span></div>
  119. <div id="block5"><span></span></div><div id="block6"><span></span></div>
  120. <?php
  121. require( bbclone::counter() );
  122. ?>
  123. </body>
  124. </html>