Ticket #1458 (closed enhancement: wontfix)

Opened 7 years ago

Last modified 7 years ago

Add support for Theme Switcher plugin in the default templates

Reported by: chrisdolan Owned by: anonymous
Priority: lowest Milestone:
Component: Template Version: 1.5.1.2
Severity: normal Keywords: theme switcher
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

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

Change History

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

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

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

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.