API:regClientCSS
From MODx Wiki
API Function Definition:
regClientCSS
- Versions
- > 0.9.2 ?
- Return Values
- Success: void
- Fail: void
- Data Type
- void
- Object Hierarchy
- DocumentParser
void regClientCSS(string $src);
Registers Client-side CSS scripts - these scripts are loaded inside the <head> tag.
[edit]
Examples
$myCSS = '<style media="screen">* { margin:0; padding:0 }</style>'; $modx->regClientCSS( $myCSS );
[edit]
Related Functions
[edit]
Function Source
| File: | manager/includes/document.parser.class.inc.php |
|---|---|
| Line: | 2166 |
function regClientCSS($src) { return ''; $this->loadedjscripts[$src]= true; } else { $this->sjscripts[count($this->sjscripts)]= '<!-- MODx registered -->' . "\n" . ' <link rel="stylesheet" href="' . $src . '" />'; } }
[edit]
