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

system/themes/charcoal/comments.php

00001 <?php namespace Habari; ?>
00002 <?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
00003     <?php if ( !$post->info->comments_disabled || $post->comments->moderated->count ) :?>
00004       <div id="post-comments">
00005       <?php if ( $post->comments->moderated->count ) : ?>
00006         <?php foreach ( $post->comments->moderated as $comment ) : ?>
00007         
00008         <?php 
00009         
00010           if ( $comment->url_out == '' ) {
00011             $comment_url = $comment->name_out;
00012           }
00013           else {
00014             $comment_url = '<a href="' . $comment->url_out . '" rel="external">' . $comment->name_out . '</a>';
00015           }
00016         
00017         ?>
00018         
00019         <div id="comment-<?php echo $comment->id; ?>" class="post-comment">
00020           
00021           <div class="post-comment-commentor">
00022             <h2>
00023               <?php echo $comment_url; ?>
00024             </h2>
00025           </div>
00026           <div class="post-comment-body">
00027             <?php echo $comment->content_out; ?>
00028             <p class="post-comment-link"><a href="#comment-<?php echo $comment->id; ?>" title="<?php _e( 'Time of this comment - Click for comment permalink' ); ?>"><?php $comment->date->out(); ?></a></p>
00029             <?php if ( $comment->is_unapproved ) : ?>
00030             <p class="comment-message"><em><?php _e( 'Your comment is awaiting moderation' ) ;?></em></p>
00031             <?php endif; ?>
00032           </div>
00033         </div>
00034         <?php endforeach; ?>
00035       <?php else : ?>
00036         <h2><?php _e( 'Be the first to write a comment!' ); ?></h2>
00037       <?php endif; ?>
00038         <div id="post-comments-footer">
00039           <!-- TODO: A hook can be placed here-->
00040         </div>
00041       </div>
00042     <?php endif; ?>

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