Location: PHPKode > projects > Webessence CMS > themes/default/templates/weblog.tpl.php
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<?php $item = isset($GLOBALS['we_collectionitem']) ? $GLOBALS['we_collectionitem'] : $GLOBALS['we_page']; ?>
<?php if (!empty($item->meta_description)) echo '<meta name="description" content="' . $item->meta_description . '" />'; ?>
<?php if (!empty($item->meta_keywords)) echo '<meta name="keywords" content="' . $item->meta_keywords . '" />'; ?>
<title><?php echo $GLOBALS['we_page']->title;
if (isset($GLOBALS['we_collectionitem'])) {echo ' &raquo; ' . $GLOBALS['we_collectionitem']->title;}?></title>
<link rel="stylesheet" type="text/css" href="<?php echo WE_PATH_SUB; ?>/webessence/themes/<?php echo WE_THEME; ?>/css/style.css" />
<?php
include(WE_PATH_ROOT . '/webessence/themes/' . WE_THEME . '/functions.php');
$rootpage = page_get_root();
add_css_js();
?>
</head>
<body>

<div id="we_header">

	<a href="<?php echo WE_PATH_SUB; ?>/">Webessence Demo</a>
	
	<div id="we_search">
		<form action="http://www.google.com/search">
			<input type="text" name="q" />
			<input type="hidden" name="sitesearch" value="www.webessence.nl" />
			<input type="submit" value="Search" />
		</form>
	</div>
	
</div>

<div id="we_header_menu"><?php menu_fixed($rootpage); ?></div>

<div id="we_main_wrapper">

	<div id="we_content">
	
		<?php
		if (isset($GLOBALS['we_collectionitem']))
			include(WE_PATH_ROOT . '/webessence/themes/' . WE_THEME . '/templates/weblogitem.tpl.php');
		else if (isset($GLOBALS['we_collectionitems']))
			include(WE_PATH_ROOT . '/webessence/themes/' . WE_THEME . '/templates/weblogitems.tpl.php');
		else
			we_die('');
		?>
		
	</div>
	
	<div id="we_sidebar">
	
		<?php
		if (!empty($GLOBALS['we_pages']['PARENT_ID'][$rootpage->id]))
		{
			echo '<div id="we_submenu" class="we_sidebar_block"><div class="we_title">Submenu</div>';
			show_submenu($rootpage->id);
			echo '</div>';
		}
		?>
	
		<?php show_tags_in_sidebar(); show_collections_in_sidebar(); ?>
		
		<?php
		if (isset($GLOBALS['we_recent_comments']) && count($GLOBALS['we_recent_comments']) > 0)
		{
			echo '<div id="we_submenu" class="we_sidebar_block"><div class="we_title">Recent comments</div><ul>';
			foreach ($GLOBALS['we_recent_comments'] as $comment)
			{
				echo '<li><a href="' . $comment['link'] . '">' . $comment['name'] . '</a><br />' . $comment['excerpt'] . '...</li>';
			}
			echo '</ul></div>';
		}
		
		?>
		
	</div>

</div>

<div id="we_footer">
	Powered by <a href="http://www.webessence.nl/cms/">Webessence CMS</a>
</div>

</body>
</html>
Return current item: Webessence CMS