本文整理汇总了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');