本文整理匯總了PHP中gpOutput::HeadContent方法的典型用法代碼示例。如果您正苦於以下問題:PHP gpOutput::HeadContent方法的具體用法?PHP gpOutput::HeadContent怎麽用?PHP gpOutput::HeadContent使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類gpOutput
的用法示例。
在下文中一共展示了gpOutput::HeadContent方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: UpdateOutputTest
/**
* Very rough integration test of the updater
* Passes if no errors are thrown
* Also defines $page for subsequent tests
*
*/
function UpdateOutputTest()
{
global $page;
ob_start();
includeFile('tool/update.php');
$page = new update_class();
gpOutput::HeadContent();
includeFile('install/template.php');
ob_get_clean();
}
示例2: Template
/**
* Send all content according to the current layout
* @static
*/
function Template()
{
global $page, $GP_ARRANGE, $GP_STYLES, $get_all_gadgets_called, $addon_current_id;
$get_all_gadgets_called = false;
if (isset($page->theme_addon_id)) {
$addon_current_id = $page->theme_addon_id;
}
gpOutput::TemplateSettings();
header('Content-Type: text/html; charset=utf-8');
require $page->theme_dir . '/template.php';
gpPlugin::ClearDataFolder();
gpOutput::AllGadgetSetting();
gpOutput::HeadContent();
}
示例3: 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();
}
示例4: define
<?php
define('is_running', true);
//define('gpdebug',true);
require_once '../common.php';
common::EntryPoint(2, 'update.php');
/* check permissions */
if (!common::LoggedIn()) {
die('You must be logged in to access this area.');
}
if (!isset($gpAdmin['granted']) || $gpAdmin['granted'] !== 'all') {
die('Sorry, you do not have sufficient privileges to access this area.');
}
includeFile('tool/update.php');
common::GetLangFile();
$page = new update_class();
gpOutput::HeadContent();
includeFile('install/template.php');