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

system/themes/wazi/post.php

00001 <?php namespace Habari; ?>
00002 <article id="post-<?php echo $content->id; ?>" class="post" itemscope itemtype="http://schema.org/BlogPosting">
00003 
00004   <header class="metadata">
00005     <h1 itemprop="name"><a href="<?php echo $content->permalink; ?>" itemprop="url"><?php echo $content->title_out; ?></a></h1>
00006     <div class="pubdata">
00007       <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name"><?php echo $content->author->displayname; ?></span></span>
00008       <time datetime="<?php echo $content->pubdate->format('Y-m-d\TH:i:s\Z'); ?>" itemprop="datePublished"><?php echo $content->pubdate->format(Options::get('dateformat') . ' ' . Options::get('timeformat')); ?></time>
00009     </div>
00010     <div itemprop="keywords" class="tags">
00011       <?php echo Format::tag_and_list($content->tags, ', ', ', and '); ?>
00012     </div>
00013   </header>
00014 
00015   <div class="content" itemprop="articleBody">
00016   <?php echo $content->content_out; ?>
00017   </div>
00018 
00019   <?php if($request->display_entry): ?>
00020   <section class="comments">
00021     <h1 id="comments">Comments</h1>
00022     <?php if($content->comments->moderated->count == 0): ?>
00023       <p><?php _e('There are no comments on this post.'); ?>
00024     <?php else: ?>
00025       <?php foreach($content->comments->moderated->comments as $comment): ?>
00026         <?php echo $theme->content($comment); ?>
00027       <?php endforeach; ?>
00028     <?php endif; ?>
00029     <?php if($content->info->comments_disabled): ?>
00030       <p><?php _e('Sorry, commenting on this post is disabled.'); ?>
00031     <?php else: ?>
00032     <?php $content->comment_form()->out(); ?>
00033     <?php endif; ?>
00034   </section>
00035   <?php endif; ?>
00036 
00037 </article>

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