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

Class: themeSwitcher

Source Location: /zp-extensions/themeSwitcher.php

Class themeSwitcher

Class Overview

When this plugin is enabled, a selector will be floated at the upper left corner of the browser window. This enables a visitor to select which theme he wants to use.

Theme selection is stored in a cookie. The default duration of this cookie is 120 minutes, changeable by an option.

No theme participation is needed for this plugin. But to accomplish this independence the plugin will load a small css block in the theme head. The actual styling is an option to the plugin. A theme may replace this css via the themeSwitcher_css filter.

Themes and plugins may use the themeSwitcher_head and themeSwitcher_controllink filters to add (or remove) switcher controls. The <var>active()</var> method may be called to see if themeSwitcher will display the control links.

Located in /zp-extensions/themeSwitcher.php [line 27]



		
		
		
		

Methods

[ Top ]
Method Summary
static void   active()  
static void   controlLink()   places a selector so a user may change thems
static void   head()  
static void   theme()   Filter to "setupTheme" that will override the gallery theme with user selected theme
themeSwitcher   __construct()  
void   getOptionsSupported()  
void   handleOption()  

[ Top ]
Methods
static method active  [line 157]

  static void active( )



[ Top ]
static method controlLink  [line 120]

  static void controlLink( [ $textIn = NULL], string $text  )

places a selector so a user may change thems

Parameters:
string   $text:  link text
   $textIn: 


[ Top ]
static method head  [line 93]

  static void head( $css  )

Parameters:
   $css: 


[ Top ]
static method theme  [line 82]

  static void theme( string $theme  )

Filter to "setupTheme" that will override the gallery theme with user selected theme

Parameters:
string   $theme: 


[ Top ]
Constructor __construct  [line 29]

  themeSwitcher __construct( )



[ Top ]
getOptionsSupported  [line 52]

  void getOptionsSupported( )



[ Top ]
handleOption  [line 73]

  void handleOption( $option, $currentValue  )

Parameters:
   $option: 
   $currentValue: 


[ Top ]

Documentation generated on Sat, 07 Jun 2014 18:03:47 +0200 by phpDocumentor 1.4.3