Procedural File: function.modulestylesheet.php
Source Location: /Theme/plugins/function.modulestylesheet.phpClasses:
Page Details:
Zikula Application FrameworkTags:
smarty_function_modulestylesheet [line 47]
|
Smarty function to provide easy access to a stylesheet
This function provides an easy way to include a stylesheet. The function will add the stylesheet file to the 'stylesheet' pagevar be default
available parameters:
- xhtml (obsolete!) if set, the xhtml format of the stylesheet tag will be used
- modname module name (if not set, the current module is assumed)
- stylesheet name of the style sheet. If not set, style.css is assumed
- assign if set, the tag and the style sheet are returned
- returntag if set to true the plugin returns a tag, if set to false the return is the path to css file (default:true)
Example: <!--[modulestylesheet modname="foobar" stylesheet="mystyle.css" assign="style"]--> Will output nothing; and the Smarty variable "style" will be set:
<!--[$style.tag]--> -- the full tag: <link rel="stylesheet" href="http://www.example.com/modules/foobar/pnstyle/mystyle.css" type="text/css">
<!--[$style.stylesheet]--> -- the path and the name of the stylesheet: http://www.example.com/modules/foobar/pnstyle/mystyle.css
Tags:
Parameters
| array | $params | All attributes passed to this function from the template |
| object | &$smarty | Reference to the Smarty object |
