Location: PHPKode > projects > Anchor CMS > anchor-cms-0.8/anchor/views/posts/index.php
<?php echo $header; ?>

<hgroup class="wrap">
	<h1><?php echo __('posts.posts', 'Posts'); ?></h1>

	<?php if($posts->count): ?>
	<nav>
		<?php echo Html::link(admin_url('posts/add'), __('posts.create_post', 'Create a new post'), array('class' => 'btn')); ?>
	</nav>
	<?php endif; ?>
</hgroup>

<section class="wrap">
	<?php echo $messages; ?>

	<?php if($posts->count): ?>
	<ul class="list">
		<?php foreach($posts->results as $article): ?>
		<li>
			<a href="<?php echo admin_url('posts/edit/' . $article->id); ?>">
				<strong><?php echo $article->title; ?></strong>
				<span>
					<time><?php echo Date::format($article->created); ?></time>

					<em title="This post is currently <?php echo $article->status; ?>"
						class="status <?php echo strtolower($article->status); ?>"><?php echo $article->status; ?></em>
				</span>

				<p><?php echo strip_tags($article->description); ?></p>
			</a>
		</li>
		<?php endforeach; ?>
	</ul>

	<aside class="paging"><?php echo $posts->links(); ?></aside>

	<?php else: ?>

	<p class="empty posts">
		<span class="icon"></span>
		<?php echo __('posts.noposts_desc', 'You don’t have any posts!'); ?><br>

		<?php echo Html::link(admin_url('posts/add'), __('posts.create_post', 'Create a new post'), array('class' => 'btn')); ?>
	</p>

	<?php endif; ?>
</section>

<?php echo $footer; ?>
Return current item: Anchor CMS