Actions

API16

JHtml/core

From Joomla! Documentation

< API16:JHtml
Revision as of 17:45, 22 March 2010 by Doxiki (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

[Edit Descripton]

Description:JHtml/core

Contents

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] SeeAlso:JHtml/core

Examples

<CodeExamplesForm />