JDocument::addStyleDeclaration: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 4: | Line 4: | ||
Adds a stylesheet declaration to the page. | Adds a stylesheet declaration to the page. | ||
<source lang="php"> | <source lang="php"> | ||
| Line 37: | 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]] | ||
===User contributed notes=== | ===User contributed notes=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JDocument::addStyleDeclaration | category=JDocument::addStyleDeclaration | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Latest revision as of 02:51, 25 March 2017
JDocument::addStyleDeclaration
Description
Adds a stylesheet declaration to the page.
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
User contributed notes
Code Examples