Simple status box for the sidebar.
[elgg_plugins.git] / template_wrapper / globalwrapper.php
bloba29a35729faec7e477a65b7e508a72a4aeaa10b4
1 <?php
2 /*
3 * globalwrapper.php
5 * Created on Apr 19, 2007
7 * @author Diego Andrés Ramírez Aragón <diego@somosmas.org>
8 * @copyright Corporación Somos más - 2007
9 */
10 require_once(dirname(dirname(__FILE__))."/../includes.php");
11 global $default_template_wrapper;
12 global $template_wrapper;
13 global $template;
15 $page = optional_param("page");
17 if(!empty($default_template_wrapper)){
18 $template['pageshell'] = file_get_contents($default_template_wrapper);
21 if(array_key_exists($page,$template_wrapper)){
22 if(array_key_exists('template',$template_wrapper[$page])){
23 $template['pageshell'] = file_get_contents($template_wrapper[$page]['template']);
25 require_once $template_wrapper[$page]['file'];