Zikula_Template_Plugins
[ class tree: Zikula_Template_Plugins ] [ index: Zikula_Template_Plugins ] [ all elements ]

Procedural File: function.modulestylesheet.php

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



Page Details:

Zikula Application Framework



Tags:

version:  $Id: function.modulestylesheet.php 24342 2008-06-06 12:03:14Z markwest $
copyright:  (c) 2004, Zikula Development Team
link:  http://www.zikula.org
filesource:  Source Code for this file
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 ]



Documentation generated on Fri, 18 Jul 2008 21:45:30 +0200 by phpDocumentor 1.4.1