scoreyness

This commit is contained in:
Shish 2009-01-20 03:17:49 -08:00
parent 776a42d519
commit 6e6a6bdd16
5 changed files with 17 additions and 9 deletions

View File

@ -79,7 +79,7 @@ class GenericPage {
header("Cache-control: no-cache"); header("Cache-control: no-cache");
usort($this->blocks, "blockcmp"); usort($this->blocks, "blockcmp");
$layout = new Layout(); $layout = new Layout();
$layout->display_page($this); $layout->display_page($context);
break; break;
case "data": case "data":
if(!is_null($this->filename)) { if(!is_null($this->filename)) {

View File

@ -42,8 +42,10 @@ Tips
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
class Layout { class Layout {
public function display_page($page) { public function display_page($context) {
global $config; $page = $context->page;
$config = $context->config;
$theme_name = $config->get_string('theme'); $theme_name = $config->get_string('theme');
$base_href = $config->get_string('base_href'); $base_href = $config->get_string('base_href');
$data_href = get_base_href(); $data_href = get_base_href();

View File

@ -1,8 +1,10 @@
<?php <?php
class Layout { class Layout {
function display_page($page) { function display_page($context) {
global $config; $page = $context->page;
$config = $context->config;
$theme_name = $config->get_string('theme', 'default'); $theme_name = $config->get_string('theme', 'default');
$data_href = get_base_href(); $data_href = get_base_href();
$contact_link = $config->get_string('contact_link'); $contact_link = $config->get_string('contact_link');

View File

@ -1,8 +1,10 @@
<?php <?php
class Layout { class Layout {
function display_page($page) { function display_page($context) {
global $config; $page = $context->page;
$config = $context->config;
$theme_name = $config->get_string('theme', 'default'); $theme_name = $config->get_string('theme', 'default');
$data_href = get_base_href(); $data_href = get_base_href();
$contact_link = $config->get_string('contact_link'); $contact_link = $config->get_string('contact_link');

View File

@ -1,8 +1,10 @@
<?php <?php
class Layout { class Layout {
function display_page($page) { function display_page($context) {
global $config; $page = $context->page;
$config = $context->config;
$theme_name = $config->get_string('theme', 'default'); $theme_name = $config->get_string('theme', 'default');
$data_href = get_base_href(); $data_href = get_base_href();
$contact_link = $config->get_string('contact_link'); $contact_link = $config->get_string('contact_link');