scoreyness
This commit is contained in:
parent
776a42d519
commit
6e6a6bdd16
@ -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)) {
|
||||||
|
@ -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();
|
||||||
|
@ -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');
|
||||||
|
@ -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');
|
||||||
|
@ -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');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user