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

Docs for page function.html_select_themes.php

Procedural File: function.html_select_themes.php

Source Location: /pnRender/plugins/function.html_select_themes.php

Classes:



Page Details:

Zikula Application Framework



Tags:

version:  $Id: outputfilter.pagevars.php 19321 2006-06-29 13:15:10Z markwest $
copyright:  (c) 2004, Zikula Development Team
link:  http://www.zikula.org
license:  GNU/GPL








smarty_function_html_select_themes [line 40]

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

Smarty function to display a drop down list of themes

Available parameters:

  • name: Name for the control (optional) if not present then only the option tags are output
  • id: ID for the control
  • selected: Selected value
  • filter: Filter themes use (possible values: PNTHEME_FILTER_ALL (default) PNTHEME_FILTER_USER, PNTHEME_FILTER_SYSTEM, PNTHEME_FILTER_ADMIN
  • state: Filter themes by state (possible values: PNTHEME_STATE_ALL (default), PNTHEME_STATE_ACTIVE, PNTHEME_STATE_INACTIVE
  • type: Filter themes by type (possible values: PNTHEME_TYPE_ALL (default), PNTHEME_TYPE_LEGACY, PNTHEME_TYPE_XANTHIA2, PNTHEME_TYPE_XANTHIA3, PNTHEME_TYPE_AUTOTHEME
  • assign: If set, the results are assigned to the corresponding variable instead of printed out
Examples

<!--[html_select_themes name=mytheme selected=mythemechoice]-->

<select name="mytheme"> <option value=""><!--[pnml name=_DEFAULT]--></option> <!--[html_select_themes selected=$mythemechoice]--> </select>




Tags:

return:  the value of the last status message posted, or void if no status message exists
author:  Mark West
since:  26 October 2005


Parameters

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


Packages:

Files:

Classes: