Location: PHPKode > projects > Webessence CMS > themes/default/templates/weblogitems.tpl.php
<?php
foreach ($GLOBALS['we_collectionitems'] as $item)
{
	$link = WE_PATH_SUB . "/" . $GLOBALS['we_page']->prepath . $GLOBALS['we_page']->pathname . "/" . CollectionItem::get_link($item);
	$tags = get_tags($item);

	echo '<div class="we_content_block we_post">';
	echo '<h1><a href="' . $link . '">' . $item->title . '</a></h1>';
	echo $item->content1;
	if ($item->has_content2)
		echo '<p><a href="' . $link . '#more-' . $item->id . '">Read more...</a></p>';
	echo '<div class="we_meta">';
	
	echo '<span>' . $tags . '</span> | <span>' . $item->date_created . '</span>';
	if ($GLOBALS['we_collection']->has_comments)
		echo ' | <span><a href="' . $link . '#comments">Comments (' . $item->accepted_comments_count . ')</a></span>';
	echo '</div>';
	echo '</div>';
}

nav_prev_next();

?>
Return current item: Webessence CMS