API16

API16:JHtml/core

From Joomla! Documentation

Revision as of 22:45, 22 March 2010 by Doxiki (talk | contribs) (New page: <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </span> {{Description:JHtml/core}} ===Syntax=== ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

[Edit Descripton]

Template:Description:JHtml/core

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');
}

[Edit See Also] Template:SeeAlso:JHtml/core

Examples

<CodeExamplesForm />