Skip to content
Snippets Groups Projects
Commit 471c6474 authored by Brett Bieber's avatar Brett Bieber
Browse files

Add start of a unl_theme for elgg, modify the pageshell to use the UNL_Templates package.

parent ee345e30
No related branches found
No related tags found
No related merge requests found
<?php
/* Initialize the theme */
function unl_theme_init(){
}
// Initialise log browser
register_elgg_event_handler('init','system','unl_theme_init');
?>
\ No newline at end of file
<?php
header('Content-type: text/html; charset=UTF-8');
require_once 'UNL/Templates.php';
$page = UNL_Templates::factory('Fixed');
$page->maincontentarea = '';
$page->leftRandomPromo = '';
if (empty($vars['title'])) {
$title = $vars['config']->sitename;
} else if (empty($vars['config']->sitename)) {
$title = $vars['title'];
} else {
$title = $vars['config']->sitename . ": " . $vars['title'];
}
$page->maincontentarea .= elgg_view('messages/list', array('object' => $vars['sysmessages']));
$page->maincontentarea .= $vars['body'];
if (isloggedin()) {
// spotlight
$page->maincontentarea .= elgg_view('page_elements/spotlight', $vars);
}
echo $page;
?>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment