Version 1.1.2 of the K2 Style Switcher plugin has been committed to the WordPress plugin repository. This version contains the following enhancements:
- Added ‘
languages‘ folder for l10n files
- Added German translation (de_DE), many thanks to Julian Manzel
- Confirmed compatibility against WordPress 2.8.5
As usual, if you’ve got the plugin installed then WordPress should display the fact that an update is available on the plugins menu within 12 hours. The plugin can be manually downloaded from the WordPress repository if you don’t want to wait.
Version 1.1.1 of the K2 Style Switcher plugin has been committed to the WordPress plugin repository. This version contains the following enhancements:
- Added code to allow the current style to specified as a URL parameter called ‘
k2ss_target_style‘
- Added code to allow the default style for a page or post to be specified using a custom field called ‘
k2ss_default_style‘
As usual, if you’ve got the plugin installed then WordPress should display the fact that an update is available on the plugins menu within 12 hours. The plugin can be manually downloaded from the WordPress repository if you don’t want to wait.
Version 1.1.0 of the K2 Style Switcher plugin has been committed to the WordPress plugin repository. This version contains the following enhancements:
- Encapsulated plugin functionality in a class
- Consolidated plugin options into an array stored in a single option
- Cleaned up code to match WordPress Coding Standards
- Re-wrote admin panel code to use the new options mechanism introduced in WordPress 2.7
- Made all plugin messages translatable
- Added footer message to plugin admin panel stating the name of the plugin, the current version and the author’s name
- Re-wrote plugin activation hook to attempt to pull in existing options from current and previous versions of the plugin as well as removing redundant options
- Added call to load the plugin l10n / i18n text domain
- Removed plugin deactivation code to stop configuration options being removed when plugin is deactivated
- Added uninstall script to ensure that configuration options are removed when plugin is deleted
- Added plugin widget in a class based on the WP_Widget class introduced in WordPress 2.8
- Added option to hide specific elements of WordPress & K2 standard footers
- Prevented styles that are always selected (base styles) from being added to the list of switch-able styles
- Took out custom WPMU checks. Detection of K2 styles directory and URL is now based on K2 options
- Added a message to the K2 options page explaining how styles are layered
- Added code to make sure that the plugin is not loaded if K2 is not active
As usual, if you’ve got the plugin installed then WordPress should display the fact that an update is available on the plugins menu within 12 hours. The plugin can be manually downloaded from the WordPress repository if you don’t want to wait.
NB: When the plugin is updated it will attempt to keep your previous configuration options and delete any stray options created by previous versions. To ensure that the update process works properly please do not deactivate the plugin prior to updating it. The WordPress plugin update functionality takes care of everything for you.
When porting my sites from WordPress to WordPress Multi User (WPMU) I took the opportunity to upgrade K2 and implement the K2 Style Switcher plugin which you can see in action in the sidebar. Unfortunately, it doesn’t come out of the box with WPMU support, so I made the necessary changes. The modified plugin can be downloaded here. This version will work with both vanilla WordPress and WPMU, enjoy.
Update: I am now working together with Kimya Hasira (the original author) on the development of this plugin as described here. It has found a new permanent home on this site. Check out the page for information about the plugin.