[ Index ]
 

Code source de Dotclear 1.2.5

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/themes/default/ -> post.php (source)

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


Généré le : Fri Feb 23 21:40:15 2007 par Balluche grâce à PHPXref 0.7