Beispiel #1
0
	</div>
	
	<?php 
if ($comments->num_rows() > 0) {
    ?>
		
		<?php 
    foreach ($comments->result() as $comment) {
        ?>
		
			<div class="comment">
				<?php 
        if ($this->session->userdata('username')) {
            echo anchor('/shout/admin/delete_comment/' . $comment->id, 'delete', array('class' => 'admin_action'));
        }
        echo "<span class='date'>" . get_friendly_date(strtotime($comment->date)) . "</span>";
        echo "<div class='body'>" . $comment->body . "</div>";
        echo '&nbsp;';
        ?>
			</div>
		
		<?php 
    }
    ?>
	<?php 
} else {
    echo "<div class='comment'>" . 'There are no comments &hellip; yet!' . "</div>";
}
?>
</div>
Beispiel #2
0
        <?php 
foreach ($posts_view as $post) {
    ?>

          <div class="post" id="post_<?php 
    echo $post->id;
    ?>
">
            <div class="post-header">
              <h3><?php 
    echo $post->title;
    ?>
</h3>
              <h5 class="subheader"><?php 
    echo get_friendly_date($post->date);
    ?>
</h5>
            </div>

            <div class="post-body"><?php 
    echo $post->get_html_formatted_content();
    ?>
</div>

            <div class="post-footer">
              <p><small><?php 
    foreach ($post->tags as $tag) {
        ?>
                <!-- TODO: Tags will become links to a post query on the tags themselves. -->
                <?php 
Beispiel #3
0
        ?>
<div class="rounded shout"><div class="rounded shout_border"><div class="rounded shout_content"><a href="<?php 
        echo base_url() . 'shout/detail/' . $submission->id;
        ?>
" class="shout_link"><span class="title"><?php 
        echo $submission->title;
        ?>
</span><span class="date"><?php 
        echo intval($submission->count);
        ?>
 <?php 
        echo $submission->count > 1 || $submission->count == 0 ? 'comments' : 'comment';
        echo $submission->count == 0 ? '. Submitted:' : ', last:';
        ?>
<br /><?php 
        echo get_friendly_date(strtotime($submission->lastpost));
        ?>
</span></a></div></div></div><?php 
    }
    ?>
	<?php 
}
?>
	<?php 
echo $pageNavLinks;
?>

<?php 
if ($this->session->userdata('username')) {
    echo anchor('/shout/admin', 'Admin Page') . '&nbsp;&nbsp;&nbsp;&nbsp;' . anchor('/shout/admin/logout', 'Logout');
    echo "<br /><br />";