<?php

$curr_tag = Input::instance()->get('tag', 0);
?>
<div class="span-16" id="blog-wrapper">
	<div class="span-4" id="blog-lhs">
		<?php 
$categories = blog_helper::get_tags();
if ($categories->count()) {
    ?>
			<h4 class="white">Blog Categories</h4>
			<ul class="no-bullets" id="categories-list">
				<li><?php 
    echo html::anchor('page/ryans-blog.html', 'All', array('title' => 'All', 'rel' => 'internal', 'class' => $curr_tag == 0 ? 'current' : ''));
    ?>
</li>
				<?php 
    foreach ($categories as $category) {
        ?>
					<li>
						<?php 
        echo html::anchor('page/ryans-blog.html?tag=' . $category->id, ucfirst($category->title), array('title' => $category->title, 'rel' => 'internal', 'class' => $curr_tag == $category->id ? 'current' : ''));
        ?>
					</li>
				<?php 
    }
    ?>
			</ul>
		<?php 
}
?>
Exemplo n.º 2
0
				<div class="postcounts"><?php 
        echo $users[$node->user->id]->postcount;
        ?>
 posts / <?php 
        echo $users[$node->user->id]->replycount;
        ?>
 replies</div>
			</div>
			<div class="body">
				<div class="header">
					<h4><?php 
        echo $node->title;
        ?>
</h4>
					<div class="date">Posted: <?php 
        echo blog_helper::getdaysagostring($node->date_added);
        ?>
</div>
					<div class="post_no">Comment: #<?php 
        echo $count++;
        ?>
</div>
				</div>
				<div class="copy"><?php 
        echo $node->copy;
        ?>
</div>
			</div>
			<div class="footer">
				<a href="#reply" class="replytothread">Reply to this Post</a>
			</div>