Changeset 451327
- Timestamp:
- 10/15/2011 11:39:16 AM (14 years ago)
- Location:
- wp-theme-switcher/trunk
- Files:
-
- 1 added
- 2 edited
-
admin_options.php (added)
-
readme.txt (modified) (2 diffs)
-
wp-theme-switcher.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-theme-switcher/trunk/readme.txt
r449836 r451327 1 === WP Theme Switcher ===1 === WP Theme Switcher Light=== 2 2 3 3 Contributors: Fayçal Tirich … … 6 6 Requires at least: 2.7 7 7 Tested up to: 3.2.1 8 Stable tag: 5. 08 Stable tag: 5.1 9 9 10 10 Description: Automatically switch WordPress themes on the fly using conditions based on posts, categories, tags, custom fields ... etc -
wp-theme-switcher/trunk/wp-theme-switcher.php
r449836 r451327 1 1 <?php 2 2 /* 3 Plugin Name: WP Theme Switcher 3 Plugin Name: WP Theme Switcher Light 4 4 Description: Automatically switch Wordpress themes on the fly 5 Version: 5. 05 Version: 5.1 6 6 Author: Fayçal Tirich 7 7 Author URI: http://codecanyon.net/item/wp-theme-switcher/558740?ref=fayway 8 8 Plugin URI: http://codecanyon.net/item/wp-theme-switcher/558740?ref=fayway 9 9 */ 10 11 class WP_Theme_Switcher_Light { 12 13 public function add_admin_options () { 14 if (function_exists('add_options_page')) { 15 if( current_user_can('manage_options') ) { 16 add_options_page("WP Theme Switcher Light", "WP Theme Switcher Light", 'manage_options', __FILE__, array(&$this, 'admin_options_content')); 17 } 18 } 19 } 20 21 public function admin_options_content () { 22 include('admin_options.php'); 23 } 24 } 25 26 $wp_theme_switcher_light = new WP_Theme_Switcher_Light(); 27 28 29 add_action('admin_menu', array(&$wp_theme_switcher_light,'add_admin_options')); 30 10 31 ?>
Note: See TracChangeset
for help on using the changeset viewer.