Zikula: A Flexible Open Source Content Management System
home | forum | international support | contact us

Docs for page function.modulestylesheet.php

Procedural File: function.modulestylesheet.php

Source Location: /Theme/plugins/function.modulestylesheet.php

Classes:



Page Details:

Zikula Application Framework



Tags:

version:  $Id: function.modulestylesheet.php 24383 2008-06-12 14:15:02Z markwest $
copyright:  (c) 2004, Zikula Development Team
link:  http://www.zikula.org
license:  GNU/GPL








smarty_function_modulestylesheet [line 47]

string smarty_function_modulestylesheet( array $params, object &$smarty)

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]--> Output: *nothing*, css file gets added to 'stylesheet' pagevar

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:

return:  The tag
author:  Jörg Napp
author:  Mark West
since:  12. Feb. 2004


Parameters

array   $params   All attributes passed to this function from the template
object   &$smarty   Reference to the Smarty object
[ Top ]


Packages:

Files:

Classes: