art-web r553 - in branches/art-hub: . lib templates
- From: thos svn gnome org
- To: svn-commits-list gnome org
- Subject: art-web r553 - in branches/art-hub: . lib templates
- Date: Sat, 22 Nov 2008 18:03:01 +0000 (UTC)
Author: thos
Date: Sat Nov 22 18:03:01 2008
New Revision: 553
URL: http://svn.gnome.org/viewvc/art-web?rev=553&view=rev
Log:
Add support for arbitrary options in templates
Add 'sidebar' option to template
Modified:
branches/art-hub/faq.php
branches/art-hub/lib/template.php
branches/art-hub/templates/header.php
Modified: branches/art-hub/faq.php
==============================================================================
--- branches/art-hub/faq.php (original)
+++ branches/art-hub/faq.php Sat Nov 22 18:03:01 2008
@@ -21,6 +21,7 @@
$t = new Template ("faq");
+$t->options['sidebar'] = true;
$t->print_header ();
?>
Modified: branches/art-hub/lib/template.php
==============================================================================
--- branches/art-hub/lib/template.php (original)
+++ branches/art-hub/lib/template.php Sat Nov 22 18:03:01 2008
@@ -22,6 +22,7 @@
{
var $page;
var $css;
+ var $options = array ();
function Template ($page)
{
@@ -38,11 +39,13 @@
{
$page = $this->page;
$css = $this->css;
+ $options = $this->options;
include ("templates/header.php");
}
function print_footer ()
{
+ $options = $this->options;
include ("templates/footer.php");
}
}
Modified: branches/art-hub/templates/header.php
==============================================================================
--- branches/art-hub/templates/header.php (original)
+++ branches/art-hub/templates/header.php Sat Nov 22 18:03:01 2008
@@ -58,6 +58,6 @@
</div>
<!-- end site header -->
-<div id="body">
+<div<?php if ($options['sidebar']) echo ' id="body"'?>>
<div id="content">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]