Difference between revisions of "JHtml/core"
From Joomla! Documentation
< API16:JHtml
(New page:
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Description:JHtml/core}}
===Syntax===
...) |
m (removing red link to edit, no existant pages) |
||
Line 1: | Line 1: | ||
− | |||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
− | <nowiki>[< | + | <nowiki>[<! removed edit link to red link >]</nowiki> |
</span> | </span> | ||
− | + | <! removed transcluded page call, red link never existed > | |
===Syntax=== | ===Syntax=== | ||
Line 44: | Line 43: | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
− | <nowiki>[< | + | <nowiki>[<! removed edit link to red link >]</nowiki> |
</span> | </span> | ||
− | + | <! removed transcluded page call, red link never existed > | |
===Examples=== | ===Examples=== | ||
Line 59: | Line 58: | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
+ | [[Category:Archived pages API16]] |
Revision as of 21:55, 13 May 2013
The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax[edit]
static core($debug=null)
Parameter Name | Default Value | Description |
---|---|---|
$debug | null |
Defined in[edit]
libraries/joomla/html/html.php
Importing[edit]
jimport( 'joomla.html.html' );
Source Body[edit]
public static function core($debug = null)
{
// If no debugging value is set, use the configuration setting
if ($debug === null) {
$debug = JFactory::getConfig()->getValue('config.debug');
}
// TODO NOTE: Here we are checking for Konqueror - If they fix their issue with compressed, we will need to update this
$konkcheck = strpos(strtolower($_SERVER['HTTP_USER_AGENT']), "konqueror");
$uncompressed = ($debug || $konkcheck) ? '-uncompressed' : '';
$document = &JFactory::getDocument();
$document->addScript(JURI::root(true).'/media/system/js/core'.$uncompressed.'.js');
}
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples[edit]
<CodeExamplesForm />