00001 <?php if ( !defined( 'HABARI_PATH' ) ) { die( 'No direct access' ); } ?>
00002 <ul id="recent_comments">
00003 <?php $comments = $content->recent_comments; foreach( $comments as $comment): ?>
00004 <li>
00005 <?php
00006 if ( $comment->url ) {
00007 $name_html = sprintf('<a class="username" href="%s">%s</a>',
00008 $comment->url, $comment->name);
00009 }
00010 else {
00011 $name_html = sprintf('<span class="username">%s</span>',
00012 $comment->name);
00013 }
00014 $post_html = sprintf('<a href="%s">%s</a>',
00015 $comment->post->permalink, $comment->post->title);
00016
00017 _e('%1$s on %2$s', array( $name_html, $post_html ));
00018 ?>
00019 </li>
00020 <?php endforeach; ?>
00021 </ul>