render_page
Quote
render_page ( boolean $license )
Parameters
license
Set this to true if you have purchased a copyright removal and want to remove the PHPFusion copyright.
Return Values
Will return the very basic structure of the site.
render_page() example from Gillette theme
Code
<?php
function render_page($license = false) {
global $settings, $main_style, $locale, $mysql_queries_time;
//Header
echo "<table cellpadding='0' cellspacing='0' width='100%'>n<tr>n";
echo "<td class='full-header'>n".showbanners()."</td>n";
echo "</tr>n</table>n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>n<tr>n";
echo "<td class='sub-header-left'></td>n";
echo "<td class='sub-header'>".showsublinks(" ".THEME_BULLET." ", "white")."</td>n";
echo "<td align='right' class='sub-header'>".showsubdate()."</td>n";
echo "<td class='sub-header-right'></td>n";
echo "</tr>n</table>n";
//Content
echo "<table cellpadding='0' cellspacing='0' width='100%' class='$main_style'>n<tr>n";
if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
echo "</tr>n</table>n";
//Footer
echo "<table cellpadding='0' cellspacing='0' width='100%'>n<tr>n";
echo "<td class='sub-header-left'></td>n";
echo "<td align='left' class='sub-header'>".showrendertime()."</td>n";
echo "<td align='right' class='sub-header'>".showcounter()."</td>n";
echo "<td class='sub-header-right'></td>n";
echo "</tr>n</table>n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>n<tr>n";
echo "<td align='center' class='main-footer'>".stripslashes($settings['footer']);
if (!$license) { echo "<br /><br />n".showcopyright(); }
echo "</td>n";
echo "</tr>n</table>n";
foreach($mysql_queries_time as $query) {
echo "Time: ".$query[0]." - Query: ".trimlink($query[1], 200)."<br />n";
}
}
?>
Notes
This function is only called for in the footer, do not attempt to call this function at any given time!
This function is defined in theme.php and each theme is different from one another.