Location: PHPKode > scripts > Pine template > pine-template/exemple1.php
<?php
include("./template.lib.php");
$c['main']="<strong>This is the page content</strong>";
$c['header']="<h1>The page header</h1>";
$c['menu']="\n<a href=\"./#1\">Menu1</a><br />
<a href=\"./#2\">Menu2</a><br />
<a href=\"./#2\">Menu2</a>";
$c['footer']="&copy; Copyright 2008";
$co = tpl::display($c, "./content.tpl");

$cont['title']= "Page title";
$cont['header']= "\n\t<link rel=\"SHORTCUT ICON\" href=\"http://".$_SERVER['SERVER_NAME']."/favicon.ico\" type=\"image/x-icon\" />\n";
$cont['content']= $co;

$ret = tpl::display($cont, "./index.tpl");
echo $ret;
?>
Return current item: Pine template