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

system/plugins/coredashmodules/dashboard.block.latest_comments.php

00001 <?php
00002 namespace Habari;
00003 if ( !defined( 'HABARI_PATH' ) ) { die( 'No direct access' ); }
00004 ?>
00005   <ul class="items">
00006 
00007     <?php foreach ( $content->latestcomments_posts as $post ): ?>
00008     <li class="item">
00009       <span class="comments"><a href="<?php echo $post->permalink; ?>#comments" title="<?php printf(_n('%1$d comment', '%1$d comments', $post->comments->approved->comments->count), $post->comments->approved->comments->count); ?>"><?php echo $post->comments->approved->comments->count; ?></a></span>
00010       <span class="titleanddate"><a href="<?php echo $post->permalink; ?>" class="title"><?php echo $post->title; ?></a> <?php $post->pubdate->out( 'M j' ); ?></span>
00011       <ul class="commentauthors">
00012         <?php
00013         $comment_count = 0;
00014         foreach( $content->latestcomments[$post->id] as $comment):
00015           $comment_count++;
00016           $opa = 'opa' . (100 - $comment_count * 15);
00017         ?>
00018         <?php /* @locale Time formats according to http://php.net/manual/en/function.date.php */ $ctime = $comment->date->get( _t( 'g:ia' ) ); ?>
00019         <?php /* @locale Date formats according to http://php.net/manual/en/function.date.php */ $cdate = $comment->date->get( _t( 'F jS, Y' ) ); ?>
00020         <li><a href="<?php echo $comment->post->permalink; ?>#comment-<?php echo $comment->id; ?>" title="<?php printf( _t( 'Posted at %1$s on %2$s' ), $ctime, $cdate ); ?>" class="<?php echo $opa; ?>"><?php echo $comment->name; ?></a></li>
00021         <?php endforeach; ?>
00022       </ul>
00023     </li>
00024     <?php endforeach; ?>
00025 
00026   </ul>

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