dc-post.notphp 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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. <div class="post">
  24. <h2 class="post-title"><?php dcPostTitle(); ?></h2>
  25. <p class="post-info">Par <?php dcPostAuthor(); ?>,
  26. <?php dcPostDate(); ?> &agrave; <?php dcPostTime(); ?>
  27. <span>::</span> <a href="<?php dcPostCatURL(); ?>"><?php dcPostCatTitle(); ?></a>
  28. <span>::</span> <a href="<?php dcPostURL(); ?>"
  29. title="Lien permanent vers : <?php dcPostTitle(); ?>">#<?php dcPostID(); ?></a>
  30. <span>::</span> <a href="<?php dcInfo('rss'); ?>?type=co&amp;post=<?php dcPostID(); ?>"
  31. title="fil RSS des commentaires de : <?php dcPostTitle(); ?>">rss</a>
  32. </p>
  33. <?php dcPostChapo('<div class="post-chapo">%s</div>'); ?>
  34. <div class="post-content"><?php dcPostContent(); ?></div>
  35. </div>
  36. <div id="trackbacks">
  37. <h3 id="tb">Trackbacks</h3>
  38. <?php if ($trackbacks->isEmpty()) : /* Message si aucune trackback */?>
  39. <p>Aucun trackback.</p>
  40. <?php endif; ?>
  41. <?php while ($trackbacks->fetch()) : /* Liste des trackbacks */
  42. // On met le numéro du trackback dans une variable
  43. $tb_num = $trackbacks->int_index+1;
  44. ?>
  45. <p id="c<?php dcTBID(); ?>" class="comment-info">
  46. <span class="comment-number"><a href="#c<?php dcTBID(); ?>"><?php echo $tb_num; ?>.</a></span>
  47. Le <?php dcTBDate(); ?> &agrave;
  48. <?php dcTBTime(); ?>, de
  49. <strong><?php dcTBAuthor(); ?></strong></p>
  50. <?php /* on affiche le trackback */ ?>
  51. <blockquote>
  52. <?php dcTBContent(); ?>
  53. </blockquote>
  54. <?php endwhile; ?>
  55. <?php /*Le lien pour ajouter un trackback si ceux-ci sont autorisés*/ ?>
  56. <?php if (dcPostOpenTrackbacks() && dc_allow_trackbacks) : ?>
  57. <p>Pour faire un trackback sur ce billet&nbsp;:
  58. <?php echo dcPostTrackBackURI(); ?></p>
  59. <?php else: ?>
  60. <p>Les trackbacks pour ce billet sont ferm&eacute;s.</p>
  61. <?php endif; ?>
  62. </div>
  63. <div id="comments">
  64. <h3 id="co">Commentaires</h3>
  65. <?php if ($comments->isEmpty()) : /* Message si aucune commentaire */ ?>
  66. <p>Aucun commentaire pour le moment.</p>
  67. <?php endif; ?>
  68. <?php while ($comments->fetch()) : /* Boucle de commentaires */
  69. // On met le numéro du commentaire dans une variable
  70. $co_num = $comments->int_index+1;
  71. ?>
  72. <p id="c<?php dcCommentID(); ?>" class="comment-info">
  73. <span class="comment-number"><a href="#c<?php dcCommentID(); ?>"><?php echo $co_num; ?>.</a></span>
  74. Le <?php dcCommentDate(); ?> &agrave;
  75. <?php dcCommentTime(); ?>, par
  76. <strong><?php dcCommentAuthor(); ?></strong></p>
  77. <?php /* on affiche le commentaire */ ?>
  78. <blockquote>
  79. <?php dcCommentContent(); ?>
  80. </blockquote>
  81. <?php endwhile; ?>
  82. <h3>Ajouter un commentaire</h3>
  83. <?php if (dcPostOpenComments() && dc_allow_comments) : /* Si les commentaires sont permis */?>
  84. <?php if (dc_allow_comments) : /* Si les commentaires sont permis */?>
  85. <?php include dirname(__FILE__).'/form.php'; ?>
  86. <?php endif; ?>
  87. <?php else : ?>
  88. <p>Les commentaires pour ce billet sont ferm&eacute;s.</p>
  89. <?php endif; ?>
  90. </div>