JDocument::addStyleDeclaration: Difference between revisions
From Joomla! Documentation
m →See also: moving preparation |
m clean up |
||
| Line 4: | Line 4: | ||
Adds a stylesheet declaration to the page. | Adds a stylesheet declaration to the page. | ||
{{Description:JDocument::addStyleDeclaration}} | {{subst:Description:JDocument::addStyleDeclaration}} | ||
<source lang="php"> | <source lang="php"> | ||
public function addStyleDeclaration ( | public function addStyleDeclaration ( | ||
| Line 39: | Line 37: | ||
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Document|Document]] | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Document|Document]] | ||
* [[API17:JDocument::addStyleDeclaration|Other versions of JDocument::addStyleDeclaration]] | * [[API17:JDocument::addStyleDeclaration|Other versions of JDocument::addStyleDeclaration]] | ||
{{SeeAlso:JDocument::addStyleDeclaration}} | {{subst:SeeAlso:JDocument::addStyleDeclaration}} | ||
===User contributed notes=== | ===User contributed notes=== | ||
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
Revision as of 15:17, 24 March 2017
JDocument::addStyleDeclaration
Description
Adds a stylesheet declaration to the page.
{{subst:Description:JDocument::addStyleDeclaration}}
public function addStyleDeclaration (
$content
$type= 'text/css'
)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $content | string | Style declarations | |
| $type | string | 'text/css' | Type of stylesheet (defaults to 'text/css') |
- Returns void
- Defined on line 445 of libraries/joomla/document/document.php
See also
JDocument::addStyleDeclaration source code on BitBucket
Class JDocument
Subpackage Document- Other versions of JDocument::addStyleDeclaration
{{subst:SeeAlso:JDocument::addStyleDeclaration}}
User contributed notes
<CodeExamplesForm />