本文整理汇总了PHP中gpOutput::GetHead_InlineJS方法的典型用法代码示例。如果您正苦于以下问题:PHP gpOutput::GetHead_InlineJS方法的具体用法?PHP gpOutput::GetHead_InlineJS怎么用?PHP gpOutput::GetHead_InlineJS使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gpOutput
的用法示例。
在下文中一共展示了gpOutput::GetHead_InlineJS方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: HeadContent
static function HeadContent()
{
global $config, $page, $gp_head_content, $wbMessageBuffer;
//before ob_start() so plugins can get buffer content
gpPlugin::Action('HeadContent');
ob_start();
if (common::LoggedIn()) {
common::AddColorBox();
}
//always include javascript when there are messages
if ($page->admin_js || !empty($page->jQueryCode) || !empty($wbMessageBuffer) || isset($_COOKIE['cookie_cmd'])) {
common::LoadComponents('gp-main');
}
//defaults
common::LoadComponents('jquery,gp-additional');
//get css and js info
includeFile('combine.php');
$scripts = gp_combine::ScriptInfo(gpOutput::$components);
//check for bootstrap theme
if (strpos(gpOutput::$components, 'bootstrap')) {
//this would only find bootstrap themes that include css
}
gpOutput::GetHead_TKD();
gpOutput::GetHead_CSS($scripts['css']);
//css before js so it's available to scripts
gpOutput::GetHead_Lang();
gpOutput::GetHead_JS($scripts['js']);
gpOutput::GetHead_InlineJS();
//gadget info
if (!empty($config['addons'])) {
foreach ($config['addons'] as $addon_info) {
if (!empty($addon_info['html_head'])) {
echo "\n";
echo $addon_info['html_head'];
}
}
}
if (!empty($page->head)) {
echo $page->head;
}
$gp_head_content .= ob_get_clean();
}
示例2: HeadContent
function HeadContent()
{
global $config, $page, $gp_head_content;
$gp_head_content = '';
ob_start();
if (common::LoggedIn()) {
common::LoadjQueryUI();
common::AddColorBox();
}
gpOutput::GetHead_TKD();
gpOutput::GetHead_CSS();
//css before js so it's available to scripts
gpOutput::GetHead_Lang();
gpOutput::GetHead_JS();
gpOutput::GetHead_InlineJS();
//gadget info
if (!empty($config['addons'])) {
foreach ($config['addons'] as $addon_info) {
if (!empty($addon_info['html_head'])) {
echo "\n";
echo $addon_info['html_head'];
}
}
}
if (!empty($page->head)) {
echo $page->head;
}
$gp_head_content = ob_get_clean();
}