Admin and Edit/Add theme switcher using your template.php file

description

These snippets automatically switches your theme to a custom page-admin.tpl.php layout file so a custom administrators theme is activated when needed.

Useful if you're using a fixed-width site design and your administration pages breaks the layout or where you want to add editing tips to where the sidebar blocks normally appear when a user is creating/editing content.

usage

Make a copy of your page.tpl.php file and rename it to page-admin.tpl.php.

Using a text editor like notepad.exe or equivalent, copy the preferred snippet into the template.php in your theme folder.

Add/Edit theme switcher

The following snippet switches the theme layout for both ADMIN and when a user is editing or creating new content. A simple example application might be to display some editing tips where the sidebars normally appear.