API17

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}}
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[Description:JDocument::addStyleDeclaration|Edit Descripton]]<nowiki>]</nowiki>
</span>
<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}}
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JDocument::addStyleDeclaration|Edit See Also]]<nowiki>]</nowiki>
</span>
===User contributed notes===
===User contributed notes===
<CodeExamplesForm />
<CodeExamplesForm />

Revision as of 15:17, 24 March 2017

Joomla 11.1 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

{{subst:SeeAlso:JDocument::addStyleDeclaration}}

User contributed notes

<CodeExamplesForm />