[ Index ]
 

Code source de Serendipity 1.2

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/templates/default-php/ -> comments.tpl (source)

   1  {foreach from=$comments item=comment name="comments"}
   2      <a id="c<?= $comment['id'] ?>"></a>
   3      <div id="serendipity_comment_<?= $comment['id'] ?>" class="serendipity_comment serendipity_comment_author_{$comment.author|@makeFilename} {if $entry.author == $comment.author}serendipity_comment_author_self<?php endif; ?>{cycle values="comment_oddbox, comment_evenbox"}" style="padding-left: <?= $comment['depth']*20 ?>px">
   4          <div class="serendipity_commentBody">
   5          {if $comment.body == 'COMMENT_DELETED'}
   6              <?= COMMENT_IS_DELETED ?>
   7          <?php else: ?>
   8              <?= $comment['body'] ?>
   9          <?php endif; ?>
  10          </div>
  11          <div class="serendipity_comment_source">
  12              <a class="comment_source_trace" href="#c<?= $comment['id'] ?>">#<?= $comment['trace'] ?></a>
  13              <span class="comment_source_author">
  14              {if $comment.email}
  15                  <a href="mailto:<?= $comment['email'] ?>">{$comment.author|@default:$CONST.ANONYMOUS}</a>
  16              <?php else: ?>
  17                  {$comment.author|@default:$CONST.ANONYMOUS}
  18              <?php endif; ?>
  19              </span>
  20              {if $comment.url}
  21                  (<a class="comment_source_url" href="<?= $comment['url'] ?>" title="{$comment.url|@escape}"><?= HOMEPAGE ?></a>)
  22              <?php endif; ?>
  23              <?= ON ?>
  24              <span class="comment_source_date">{$comment.timestamp|@formatTime:$CONST.DATE_FORMAT_SHORT}</span>
  25  
  26              {if $entry.is_entry_owner}
  27                  (<a class="comment_source_ownerlink" href="<?= $comment['link_delete'] ?>" onclick="return confirm('<?= COMMENT_DELETE_CONFIRM|@sprintf:$comment.id:$comment.author ?>');"><?= DELETE ?></a>)
  28              <?php endif; ?>
  29              {if $entry.allow_comments AND $comment.body != 'COMMENT_DELETED'}
  30                  (<a class="comment_reply" href="#serendipity_CommentForm" id="serendipity_reply_<?= $comment['id'] ?>" onclick="document.getElementById('serendipity_replyTo').value='<?= $comment['id'] ?>'; <?= $GLOBALS['tpl']['comment_onchange'] ?>"><?= REPLY ?></a>)
  31                  <div id="serendipity_replyform_<?= $comment['id'] ?>"></div>
  32              <?php endif; ?>
  33          </div>
  34      </div>
  35  {foreachelse}
  36      <div class="serendipity_center nocomments"><?= NO_COMMENTS ?></div>
  37  <?php endforeach; ?>


Généré le : Sat Nov 24 09:00:37 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics