Esempio n. 1
0
 /**
  * Send all content according to the current layout
  * @static
  *
  */
 static function Template()
 {
     global $page, $GP_ARRANGE, $GP_STYLES, $get_all_gadgets_called, $addon_current_id, $GP_MENU_LINKS, $GP_MENU_CLASS, $GP_MENU_CLASSES, $GP_MENU_ELEMENTS;
     $get_all_gadgets_called = false;
     if (isset($page->theme_addon_id)) {
         $addon_current_id = $page->theme_addon_id;
     }
     gpOutput::TemplateSettings();
     self::StandardHeaders();
     $path = $page->theme_dir . '/template.php';
     $return = IncludeScript($path, 'require', array('page', 'GP_ARRANGE', 'GP_MENU_LINKS', 'GP_MENU_CLASS', 'GP_MENU_CLASSES', 'GP_MENU_ELEMENTS'));
     //return will be false if there's a fatal error with the template.php file
     if ($return === false) {
         gpOutput::BodyAsHtml();
     }
     gpPlugin::ClearDataFolder();
     gpOutput::HeadContent();
 }