cvs: phpweb /include layout.inc

From: Date: Tue, 12 Sep 2006 12:17:21 +0000
Subject: cvs: phpweb /include layout.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-32531@lists.php.net to get a copy of this message
goba Tue Sep 12 12:17:21 2006 UTC Modified files: /phpweb/include layout.inc Log: I am after tableless-ing the homepage http://cvs.php.net/viewvc.cgi/phpweb/include/layout.inc?r1=1.238&r2=1.239&diff_format=u Index: phpweb/include/layout.inc diff -u phpweb/include/layout.inc:1.238 phpweb/include/layout.inc:1.239 --- phpweb/include/layout.inc:1.238 Wed Sep 6 21:28:26 2006 +++ phpweb/include/layout.inc Tue Sep 12 12:17:21 2006 @@ -1,5 +1,5 @@ <?php -/* $Id: layout.inc,v 1.238 2006/09/06 21:28:26 goba Exp $ */ +/* $Id: layout.inc,v 1.239 2006/09/12 12:17:21 goba Exp $ */ // Set the static content root differently on php.net $_SERVER['STATIC_ROOT'] = ($MYSITE == 'http://www.php.net/') ? @@ -425,6 +425,9 @@ global $MYSITE, $base, $enclosed, $EXPL_LANG, $SIDEBAR_DATA, $SEARCH_BASE, $ONLOAD; + // TODO: work in progress tabless checking for this page + if ($_GET['tableless'] == 1) { return site_header($title, ($ONLOAD ? array('onload' => $ONLOAD) : array())); } + $onload = ($ONLOAD ? ' onload="' . $ONLOAD . '"' : ''); // Guess what base to use for this page (the first two are just @@ -555,6 +558,9 @@ function commonFooter() { global $SCRIPT_NAME, $MYSITE, $LAST_UPDATED, $PHP_SELF, $enclosed, $RSIDEBAR_DATA, $page_creation_start; + + // TODO: work in progress tabless checking for this page + if ($_GET['tableless'] == 1) { return site_footer(); } $URL = (isset($_SERVER['BASE_PAGE']) ? "/" . $_SERVER['BASE_PAGE'] : $SCRIPT_NAME); if ($enclosed) {

« previous php.mirrors (#32531) next »