Here is an example of the template that sits at "/template.php":
Code: Select all
<html>
<head>
<?php
echo "<title>".$TMPLї'title']."</title>";
echo $TMPLї'METATAGS'];
?>
<link rel=stylesheet href="/stylesheet/main.css" type="text/css">
</head>
<body bgcolor="#cccccc" background="/images/bg_cccccc.JPG" leftmargin="0" rightmargin="0" topmargin="0">
<table width="100%" cellpadding="0" cellspacing="0">
<tr valign="top">
<td background="/images/headerwest1.JPG" height="115" width="100%">
</td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="10">
<tr valign="top" align="left">
<td width="200">
<?php
include "http://".$_SERVERї'HTTP_HOST']."/fopolinks.php";
include "http://".$_SERVERї'HTTP_HOST']."/".$TMPLї'direction']."/".$TMPLї'direction'].".php";
if ($TMPLї'subcategory']) {
echo "<table border="1px" cellpadding="5" cellspacing="0" bordercolor="#000000" width="100%" style="border: solid 2px">
<tr>
<td bgcolor="#b0aaa5" style="border: 0px">
<h3 align="center" style="margin-bottom: 0px">";
echo $TMPLї'subcategory'];
echo "</h3>
</td>
</tr>
</table>
<table width="100%" border=0 cellpadding="0" cellspacing="0">";
echo $TMPLї'subcategory_links'];
echo "</table>";
}
?>
<br />
<table border=1 cellspacing=0 cellpadding=5 align="center">
<tr align="center">
<td>
<h3>Newsletter</h3>
<p class="small">Enter your email address to recieve updates from FPC!</p>
<form action="/east/newsletter/tcg_ml_join.php">
<font size="2"><b>Email:</b></font> 
<input type="text" name="email_from" size="15"><br /><br />
<input class="css" type="submit" value="Subscribe">
</form>
</td>
</tr>
</table>
</td>
<td width=1 bgcolor="#000000">
</td>
<td width="*">
<h1 align="right" style="margin-right: 30px; margin-top: 0px; margin-bottom: 0px"><?php echo $TMPLї'title']?></h1>
<h2 align="right" style="margin-right: 30px; margin-top: 0px; margin-bottom: 0px"><?php echo $TMPLї'subtitle']?></h2>
<hr height="1" color="#000000" NOSHADE>
<?php echo $TMPLї'content']?>
</td>
</tr>
</table>
<hr color="#000000" width="100%" style="margin-left: 10px; margin-right: 10px">
<center>2004 © Four Points Cardinal</center>
</body>
</html>Code: Select all
<?php
$TMPLї'METATAGS'] .= <<<EndHTML
<META NAME="DESCRIPTION" CONTENT="Four Points East">
<META NAME="KEYWORDS" CONTENT="keywords, keyword keywords">
<META NAME="OWNER" CONTENT="joshuaditty@cardinal-points.com">
<META NAME="AUTHOR" CONTENT="Four Points Cardinal">
<META HTTP-EQUIV="EXPIRES" CONTENT="">
<META HTTP-EQUIV="CHARSET" CONTENT="ISO-8859-1">
<META HTTP-EQUIV="CONTENT-LANGUAGE" CONTENT="English">
<META HTTP-EQUIV="VW96.OBJECT TYPE" CONTENT="Index">
<META NAME="RATING" CONTENT="General">
<META NAME="ROBOTS" CONTENT="INDEX,FOLLOW">
<META NAME="REVISIT-AFTER" CONTENT="4 days">
EndHTML;
$TMPLї'content'] .= <<<EndHTML
<img src="/images/cardinal2.JPG" align="left" alt="Four Points Cardinal">
<P>The Cardinal Group is very hard to describe because we promote several fronts. In the west we have business, where we market affiliate products and provide resources to entrepreneurs. But we aren't just a business.</P>
<p>In the north we promote charities and organizations that fight a cause, but we aren't a charity, either. In the south we promote the arts and education, but we aren't a school.</p>
<p>If you want to know what the Cardinal Group is, I guess we're a little of all of these. Business, charity, and the arts - and here in the East we bring them all together to provide you with up to date information on what TCG is doing.</p>
<h3 align="left">Direction</h3>
<p>TCG is named after the four cardinal directions of North, South, East, and West. This word has a strong meaning to us. Direction is an important part of life, and setting goals and priorities is essential.</p>
<p>Here, our goal is simple. We are determined to develope our business strategy through online marketing in order to gain the capital required to grow and expand in the other directions - business, charity, and the arts.</p>
<p>I'd like to invite you to join us in our journey - all you have to is choose the direction and TCG will be there to lead the way.</p>
EndHTML;
$TMPLї'title'] .= "Four Points East";
$TMPLї'subtitle'] .= "Graphical Design";
$TMPLї'direction'] .= "east";
$TMPLї'subcategory'] .= "";
$TMPLї'subcategory_links'] .= <<<EndHTML
<tr align="left">
<td>
</td>
</tr>
EndHTML;
require_once ('http://fopo.net/template.php');
?>