本文整理匯總了PHP中gpOutput::BodyAsHtml方法的典型用法代碼示例。如果您正苦於以下問題:PHP gpOutput::BodyAsHtml方法的具體用法?PHP gpOutput::BodyAsHtml怎麽用?PHP gpOutput::BodyAsHtml使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類gpOutput
的用法示例。
在下文中一共展示了gpOutput::BodyAsHtml方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Template
/**
* 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();
}