• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • Examples
  • File List

system/admin/comments_items.php

00001 <?php namespace Habari; ?>
00002 <?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
00003 <?php if ( count($comments) != 0 ) :
00004   foreach ( $comments as $comment ) : ?>
00005 
00006 <div class="item <?php echo strtolower( $comment->statusname ); ?>" id="comment_<?php echo $comment->id; ?>" style="<?php echo Plugins::filter('comment_style', '', $comment); ?>">
00007   <div class="head">
00008     <span class="checkbox title">
00009       <input type="checkbox" class="checkbox" name="comment_ids[<?php echo $comment->id; ?>]" id="comments_ids[<?php echo $comment->id; ?>]" value="1">
00010     </span>
00011     <span class="checkbox title">
00012       <?php if ( $comment->url != '' ): ?>
00013       <a href="#" class="author" title="<?php echo Utils::htmlspecialchars( $comment->name ); ?>"><?php echo Utils::htmlspecialchars( $comment->name ); ?></a>
00014       <?php else: ?>
00015       <?php echo Utils::htmlspecialchars( $comment->name ); ?>
00016       <?php endif; ?>
00017     </span>
00018     <span class="title"><span class="dim"><?php _e('in'); ?> '</span><a href="<?php echo $comment->post->permalink ?>#comment-<?php echo $comment->id; ?>" title="<?php _e( 'Go to %s', array( $comment->post->title ) ); ?>"><?php echo $comment->post->title; ?></a><span class="dim">'</span></span>
00019     <span class="date"><span class="dim"><?php _e('on'); ?></span> <a href="<?php URL::out('admin', array('page' => 'comments', 'status' => $comment->status, 'year' => $comment->date->year, 'month' => $comment->date->mon )); ?>" title="<?php _e('Search for other comments from %s', array($comment->date->format( 'M, Y' ) ) ); ?>"><?php $comment->date->out( DateTime::get_default_date_format() ); ?></a></span>
00020     <span class="time dim"><?php _e('at'); ?> <span><?php $comment->date->out( DateTime::get_default_time_format() );?></span></span>
00021 
00022     <ul class="dropbutton">
00023       <?php
00024       foreach($comment->menu as $act_id => $action):
00025         $url = str_replace('__commentid__', $comment->id, $action['url']);
00026       ?>
00027       <li class="<?php echo $act_id; if (isset($action['nodisplay']) && $action['nodisplay'] == true) { echo ' nodisplay'; } ?>"><a href="<?php echo $url; ?>" title="<?php echo $action['title']; ?>"><?php echo $action['label']; ?></a></li>
00028       <?php endforeach;?>
00029       <?php $theme->admin_comment_actions($comment); ?>
00030     </ul>
00031   </div>
00032 
00033   <div class="infoandcontent">
00034     <div class="authorinfo">
00035       <ul>
00036         <?php if ( $comment->url != '' ) {
00037             echo '<li><a class="url" href="' . $comment->url . '">' . $comment->url . '</a></li>'."\r\n";
00038           }
00039           else {
00040             echo '<li class="empty">' . _t( 'no url given' ) . '</li>';
00041           } ?>
00042         <?php if ( $comment->email != '' ) {
00043             echo '<li><a class="email" href="mailto:' . $comment->email . '">' . $comment->email . '</a></li>'."\r\n";
00044           }
00045           else {
00046             echo '<li class="empty">' . _t( 'no email provided' ) . '</li>';
00047           } ?>
00048         <?php if ( $comment->ip ): ?>
00049           <li><?php echo $comment->ip; ?></li>
00050         <?php endif; ?>
00051       </ul>
00052       <?php if ( $comment->is_spam ) :?>
00053         <p><?php _e('Marked as spam'); ?></p>
00054       <?php endif; ?>
00055 
00056       <?php Plugins::act('comment_info', $comment); ?>
00057 
00058       <p class="comment-type"><?php echo Plugins::filter( 'comment_type_display', $comment->typename, 'singular' ); ?></p>
00059     </div>
00060     <span class="content"><?php
00061       if ( MultiByte::valid_data( $comment->content ) ) {
00062         echo nl2br( Utils::htmlspecialchars( $comment->content ) );
00063       }
00064       else {
00065         _e('this post contains text in an invalid encoding');
00066       }
00067     ?></span>
00068   </div>
00069 </div>
00070 
00071 <?php   endforeach;
00072 else : ?>
00073 <div class="message none">
00074   <p><?php _e('No comments could be found to match the query criteria.'); ?></p>
00075 </div>
00076 <?php endif; ?>

Generated on Sun Aug 4 2013 12:51:42 for Habari by  doxygen 1.7.1