WordPress.org

Make WordPress Core

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#1458 closed enhancement (wontfix)

Add support for Theme Switcher plugin in the default templates

Reported by: chrisdolan Owned by:
Milestone: Priority: lowest
Severity: normal Version: 1.5.1.2
Component: Template Keywords: theme switcher
Focuses: Cc:

Description

The attached patch adds conditional sections the sidebar to show the available themes, via the Theme Switcher plugin. If that plugin is not active, the theme list is omitted.

Attachments (1)

theme_switch_sidebar.patch (876 bytes) - added by chrisdolan 16 years ago.
Addition to themes/*/sidebar.php to add Theme Switcher support

Download all attachments as: .zip

Change History (3)

@chrisdolan
16 years ago

Addition to themes/*/sidebar.php to add Theme Switcher support

#1 @markjaquith
16 years ago

  • Resolution set to wontfix
  • Status changed from new to closed

There is a 'wp_meta' hook that the default themes have. You can use this hook to echo out a <li></li> containing the switcher code. Hooks are our friend! :-D

#2 @markjaquith
16 years ago

Example:

<?php

function show_theme_switch_code() {
echo out the <li> [theme switcher] </li>
}

add_action('wp_meta', 'show_theme_switch_code');

?>

Note: See TracTickets for help on using tickets.