示例#1
0
 <td rowspan="2" class="infos">
   <a name="<?php echo $i ?>" class="ancre">#<?php echo $i ?></a>
   <?php if(!$obj->is_delete): ?>
     <?php echo link_to_function(
             image_tag('/vjCommentPlugin/images/comments.png', array( 'alt' => 'reply' )) ,
             "reply('".$obj->getId()."','".$obj->getAuthor()."')",
             array('title' => __('Reply to this comment', array(), 'vjComment'))) ?>
     <?php echo link_to_function(
           image_tag('/vjCommentPlugin/images/error.png', array( 'alt' => 'report' )) ,
           'window.open(
             \''.url_for('@comment_reporting?id='.$obj->getId().'&num='.$i).'\',
             \''.__('Add new comment', array(), 'vjComment').'\',
               "menubar=no, status=no, scrollbars=no, menubar=no, width=565, height=300")',
           array('target' => '_blank', 'title' => __('Report this comment - New window', array(), 'vjComment') )) ?><br />
   <?php endif; ?>
   <?php if(commentTools::isGravatarAvailable() && !$obj->is_delete): ?>
     <?php echo gravatar_image_tag($obj->getEmail()) ?>
   <?php endif ?>
 </td>
示例#2
0
文件: _list.php 项目: eldister/dosye
<?php

if ($object->hasComments()) {
    ?>
  <?php 
    use_helper('Date', 'JavascriptBase', 'I18N');
    ?>
  <?php 
    use_stylesheet("/vjCommentPlugin/css/comment.min.css");
    ?>
  <?php 
    use_javascript("/vjCommentPlugin/js/reply.min.js");
    ?>
  <?php 
    if (commentTools::isGravatarAvailable()) {
        ?>
    <?php 
        use_helper('Gravatar');
        ?>
  <?php 
    }
    ?>
  <div><h1><?php 
    echo __('Comments list', array(), 'vjComment');
    ?>
</h1></div>
  <table class="list-comments" summary="">
  <?php 
    foreach ($object->getAllComments() as $c) {
        ?>
    <?php