Plugin Directory

Changeset 451327


Ignore:
Timestamp:
10/15/2011 11:39:16 AM (14 years ago)
Author:
.fay
Message:

Comming soon

Location:
wp-theme-switcher/trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • wp-theme-switcher/trunk/readme.txt

    r449836 r451327  
    1 === WP Theme Switcher ===
     1=== WP Theme Switcher Light===
    22
    33Contributors: Fayçal Tirich
     
    66Requires at least: 2.7
    77Tested up to: 3.2.1
    8 Stable tag: 5.0
     8Stable tag: 5.1
    99
    1010Description: 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  
    11<?php
    22/*
    3  Plugin Name: WP Theme Switcher
     3 Plugin Name: WP Theme Switcher Light
    44 Description: Automatically switch Wordpress themes on the fly
    5  Version: 5.0
     5 Version: 5.1
    66 Author: Fayçal Tirich
    77 Author URI: http://codecanyon.net/item/wp-theme-switcher/558740?ref=fayway
    88 Plugin URI: http://codecanyon.net/item/wp-theme-switcher/558740?ref=fayway
    99 */
     10
     11class 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
     29add_action('admin_menu', array(&$wp_theme_switcher_light,'add_admin_options'));
     30
    1031?>
Note: See TracChangeset for help on using the changeset viewer.