當前位置: 首頁>>代碼示例>>PHP>>正文


PHP gpOutput::HeadContent方法代碼示例

本文整理匯總了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();
 }
開發者ID:jozefkrz,項目名稱:gpEasy-CMS,代碼行數:16,代碼來源:UpdateTest.php

示例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();
 }
開發者ID:rizub4u,項目名稱:gpEasy-CMS,代碼行數:18,代碼來源:gpOutput.php

示例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();
 }
開發者ID:Bomberus,項目名稱:gpEasy-CMS,代碼行數:23,代碼來源:gpOutput.php

示例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');
開發者ID:VTAMAGNO,項目名稱:gpEasy-CMS,代碼行數:18,代碼來源:update.php


注:本文中的gpOutput::HeadContent方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。