I finally got the urge to read the Extension development docs and sift through a billion forum posts to find out how to do an extension. Go easy on me, please - this is my first extension!
Reason For Being:
I found that I am often in more than one website control panel at a time, in different tabs, and that I get a bit confused sometimes because the name of the site isn’t jumping out at me. Occasionally I’m on the wrong tab, etc. Anyway, I wrote this extension to put the name of the site at the upper left of the Control Panel header.
Again, this is my first extension, so any advice from seasoned pros would be more than welcome.
Version 1.1.5 (Mar 21 2008):
Updated to account for sites using .png instead of .ico for the favicon. Good to know this will no longer be needed in 2.0 - but not everyone is going to update immediately, so there is still a need!
Version 1.1.4 (Nov 18 2007):
Changed $siteurl variable. Favicon path seemed to be not working in certain cases. Let me know if it’s not working for you.
Version 1.1.3 (Sep 15 2007):
Added the ability to make the text italic. (Thanks Hambo)
Version 1.1.2 (Jul 15 2007):
Added the ability to show a site’s favicon next to the text.
Version 1.1.1 (Jul 13 2007):
Added setting for overriding the default site name. You can make the text say whatever you want. Might be handy to designate “development” sites, shorten a real long name, play a prank, or whatever you like.
Version 1.1.0 (Jul 08 2007):
Added settings for font-size, making the site name a link to your site’s homepage, color, font-weight, font-family, and padding on the top and the bottom (in case changing the size of the text messes the layout up at all).
Version 1.0.2 (Jul 06 2007):
Added ‘stripslashes’ for site names with apostrophes.
Version 1.0.1 (Jun 25 2007):
- I’ve only tested this on Firefox and Safari for Mac. I was too lazy to fire up Parallels and test in IE. Any bugs or problems with the styles in other browsers? Just let me know, and I’ll update.
- I haven’t tested this on a Multi-Site managed installation, but I imagine it would work fine.
- Not sure what would happen if you had a ton of extra links at the right, but I’ll cross that bridge when I get to it.
See the attached pic to see what it actually looks like in Firefox.
The download for this is now located at its designated page over at masugadesign.com: http://www.masugadesign.com/the-lab/scripts/add-sitename/