Plugins::themeSwitcher

From ZenMagick Wiki

(Redirected from Plugins::zm theme switch)
Jump to: navigation, search

Description

This is a ZenMagick plugin to allow users to switch between different themes.

Configuration

The plugin can automatically inject a list of themes via a setting. The list of allowed themes is configured using the setting plugins.zm_theme_switch.themes. In the simplest form, the value is a comma separated list of theme ids. It is also possible to specify an alternative display name by separating the theme id and name with a ':'.

Alternatively, URLs can be configured individually like this:

 $themeIds = array('default', 'foo');
 foreach ($themeIds as $theme) {
     echo '<a href="'.ZMToolbox::instance()->net->url(null, 'themeId='.$theme, ZMRequest::isSecure(), false).'">'.$theme.'</a> ';
 }
Personal tools