Esempio n. 1
0
?>
 ago.
    </div>
  
    <div id="body">
      <?php 
echo nl2br($comment->getBody());
?>
    </div>
  
    <?php 
if (sfConfig::get('app_comments_nesting')) {
    ?>
      <div id="links">
        <?php 
    echo link_to_add_new_comment('Reply', $record, $comment);
    ?>
      </div>      
    <?php 
}
?>

    <?php 
if ($comment->getNode()->hasChildren()) {
    ?>
      <a name="comments"></a>
    <?php 
}
?>

    <ul>
Esempio n. 2
0
<div class="comments_thread" id="<?php 
echo strtolower(get_class($record));
?>
_comments_thread_<?php 
echo $record->getId();
?>
">
  <h3>
    Comments (<?php 
echo $record->getNumComments();
?>
) 
    <?php 
echo link_to_add_new_comment('Add New Comment', $record);
?>
  </h3>
  
  <div id="add_new_comment_form_holder"></div>

  <?php 
echo get_partial('csComments/comments', array('comments' => $comments, 'record' => $record));
?>
</div>