Location: PHPKode > scripts > SmashTemplate > index.php
<?php

require 'template.php';

$tpl = new template('templates');

$tpl->get('template.tpl');

if ($HTTP_GET_VARS['id'])
{
	$tpl->set('heading', 'Link '.$HTTP_GET_VARS['id']);
	$tpl->set('content', 'This is link '.$HTTP_GET_VARS['id']);
}
else
{
	$tpl->set('heading', 'Main Content');
	ob_start();
?>
<p align="center">This is a layout designed by James Glenlake. It includes rounded corners, rollover
links, and lossless resizability.</p>
<?php
	$tpl->set('content', ob_get_contents());
	ob_end_clean();
}

$tpl->set('title', 'The Forest');

$tpl->display();

?>
Return current item: SmashTemplate