5 Latest updates...
upload_file() 1 month
upload_image() 1 month
stripfilename() 1 month
image_exists() 1 month
filename_exists() 1 month
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Sponsors
Shoutbox
You must login to post a message.

29/06/2010
Nice work m8 Grin

30/05/2010
Just updated the site to latest version of v7.01 Smile

26/03/2010
shoutbox spam removed.

26/02/2010
Fixed!

26/02/2010
Ereg alert in fusion_functions/i
ncludes/inc.functi
ons.php !

User Options
Function - render_page (PHP-Fusion 7.00)
<< render_news showbanners >>
render_page - Render the output for the site

Description

render_page ( boolean $license )

render_page() renders the site and how the basic layout is, the function is defined in the theme.php and the designers makes it how how they want the site to display. Here you control everything from the panels, main content, sublinks, banner and everything else there is to see on the site as a whole.

Parameters

license

Set this to true if you have purchased a copyright removal and want to remove the PHP-Fusion copyright.

Return Values

Will return the very basic structure of the site.

Example#1 render_page() in Gillette theme

Download Example  PHP
  1. <?php
  2. function render_page($license = false) {
  3.     
  4.     global $settings, $main_style, $locale, $mysql_queries_time;
  5.  
  6.     //Header
  7.     echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
  8.     echo "<td class='full-header'>\n".showbanners()."</td>\n";
  9.     echo "</tr>\n</table>\n";
  10.     
  11.     echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
  12.     echo "<td class='sub-header-left'></td>\n";
  13.     echo "<td class='sub-header'>".showsublinks(" ".THEME_BULLET." ", "white")."</td>\n";
  14.     echo "<td align='right' class='sub-header'>".showsubdate()."</td>\n";
  15.     echo "<td class='sub-header-right'></td>\n";
  16.     echo "</tr>\n</table>\n";
  17.     
  18.     //Content
  19.     echo "<table cellpadding='0' cellspacing='0' width='100%' class='$main_style'>\n<tr>\n";
  20.     if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
  21.     echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
  22.     if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
  23.     echo "</tr>\n</table>\n";
  24.     
  25.     //Footer
  26.     echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
  27.     echo "<td class='sub-header-left'></td>\n";
  28.     echo "<td align='left' class='sub-header'>".showrendertime()."</td>\n";
  29.     echo "<td align='right' class='sub-header'>".showcounter()."</td>\n";
  30.     echo "<td class='sub-header-right'></td>\n";
  31.     echo "</tr>\n</table>\n";
  32.     echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
  33.     echo "<td align='center' class='main-footer'>".stripslashes($settings['footer']);
  34.     if (!$license) { echo "<br /><br />\n".showcopyright(); }
  35.     echo "</td>\n";
  36.     echo "</tr>\n</table>\n";
  37.     
  38.     foreach($mysql_queries_time as $query) {
  39.         echo "Time: ".$query[0]." - Query: ".trimlink($query[1], 200)."<br />\n";
  40.     }
  41.  
  42. }
  43. ?>

Notes

Warning

This function is only called for in the footer, do not attempt to call this function at any given time!


Note

This function is defined in theme.php and each theme is different from one another.

Was this helpful?

Back to all functions...
Comments
No Comments have been Posted.
Post Comment
Please Login to Post a Comment.