>
Download This Plugin | |
Download Elegant Themes | |
Name | The Admin Theme Experience |
Version | 0.1 |
Author | Greg Ross |
Rating | 0 |
Last updated | 2013-12-24 02:32:00 |
Downloads |
521
|
Download Plugins Speed Test plugin for Wordpress |
Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%
The Admin Theme Experience plugin added 13 bytes of resources to the Home page and 17 bytes of resources to the sample Post page.
The Admin Theme Experience plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.
Great! The Admin Theme Experience plugin ads no tables to your Wordpress blog database.Proof of concept for proper theme's for the admin area.
THIS PLUGIN SHOULD NOT BE USED AT THIS TIME
It is only a proof of concept for submission to the "Features-As-Plugins" development model for WordPress.
It has two primary goals:
Simplify
The current process of creating an admin color theme requires you to create a WordPress plugin. There is no reason a color theme author should have to also be proficient in PHP and WordPress development to be able to create and deploy an admin color theme.
To this end, The Admin Theme Experience (ATHX) removes all PHP dependences from the theme files. It does this my creating a new directory for admin themes (currently located in the plugin directory, however if brought in to the core, it would live in the wp-admin/themes directory to mirror the wp-content/themes structure).
Inside the admin theme directory are at minimum 2 files:
In addition, several optional files can be included in the theme:
Updated version of _admin.scss and _variables.scss have been included that support the creation of rtl sytlesheets as well (read on for more information on this later).
The goal would be to create a third (themes, plugins and admin themes) repository on WordPress.org for admin themes, similar to the theme repository that exists today.
Site Theme Experience
The current admin theme selector in the 'Your Profile' page is woefully underpowered. Fortunately WordPress 3.8 introduced a brand spanking, super shiny, theme selector (THX) for the site themes, so why not use it for admin themes as well?
Using the new style.css header information as well as the screen shot, a new menu item is added to the users.php menu, 'Your Admin Theme'. This currently loads a slimmed down version of THX (this will be fleshed out, but this is only version 0.1 ;).
The plugin also replaces the existing theme selector in the 'Your Profile' page with a link to the new page.
Technical Notes
This is version 0.1, so there are some things to note:
History
Just after WordPress 3.8 b1 came out I found myself not liking the new default admin color scheme all that much. It was a lot darker than the old one and just didn't appeal to me.
So I started looking at how to build an admin color theme. This was before the officially sanctioned "Admin Color Schemes" plugin came out and I found the documentation to be slightly confusing overall. To the point that I put the idea away, figuring someone else would probably make a plugin to do the work for me :)
Once "Admin Color Schemes" was released, it became much clearer what you had to do. However it also made clear the fact that the admin color scheme code was fundamentally broken. I say this because:
On top of that, the theme picker in the profile page became much too large to be part of the profile page. "Admin Color Schemes" adds 8 new themes, my own "Grey Admin Color Schemes" adds 4. A large site could have countless themes all adding to the profile page.
Likewise, with only 4 "preview" colors, it makes it VERY hard to tell what the theme is actually going to look like. My "Grey Admin Color Schemes" share much of the same color pallet, but are clearly different as soon as you see them in action.
The final nitpick I had with the existing code is that as soon as you click on a new admin theme, it gets saved as your theme. This goes counter to the "Save" button at the bottom of the page and the traditional work flow of the profile page.
I tried several different things to "save" the old system:
In the end, I decided the old method was just too limited and wrote this plugin to try and fix the problem.
Turns out it was easier than I thought... kind of ;)