API16

JHtml/core: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
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>[[Description:JHtml/core|Edit Descripton]]<nowiki>]</nowiki>
<nowiki>[<! removed edit link to red link >]</nowiki>
</span>
</span>


{{Description:JHtml/core}}
<! 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>[[SeeAlso:JHtml/core|Edit See Also]]<nowiki>]</nowiki>
<nowiki>[<! removed edit link to red link >]</nowiki>
</span>
</span>
{{SeeAlso:JHtml/core}}
<! 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 02:55, 14 May 2013

[<! removed edit link to red link >]

<! removed transcluded page call, red link never existed >

Syntax

static core($debug=null)
Parameter Name Default Value Description
$debug null

Defined in

libraries/joomla/html/html.php

Importing

jimport( 'joomla.html.html' );

Source Body

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

<CodeExamplesForm />