<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Alex is @Hempsworth</title>
	<atom:link href="http://hempsworth.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://hempsworth.com</link>
	<description>The blog of Alex Hempton-Smith</description>
	<lastBuildDate>Wed, 02 Jun 2010 00:36:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0-RC1-15092</generator>
		<item>
		<title>Change WordPress admin header based on multisite blog</title>
		<link>http://hempsworth.com/2010/06/change-wordpress-admin-header-based-on-multisite-blog/</link>
		<comments>http://hempsworth.com/2010/06/change-wordpress-admin-header-based-on-multisite-blog/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 23:27:57 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.hempsworth.com/?p=5</guid>
		<description><![CDATA[This evening on the [wp-ui] mailing list, @andrea_r said how cool it would be to be able to change the header color in the WordPress admin area, based on the blog you were on using the new multisite functionality in &#8230; <a href="http://hempsworth.com/2010/06/change-wordpress-admin-header-based-on-multisite-blog/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This evening on the [wp-ui] mailing list, @andrea_r said how cool it would be to be able to change the header color in the WordPress admin area, based on the blog you were on using the new multisite functionality in 3.0.</p>
<p>I thought it would be cool too, so I made a quick &#8216;n dirty plugin to do that very thing:</p>
<pre class="brush: php;">&lt;?php
/*
Plugin Name: Site Colors
Plugin URI: http://www.alexhemptonsmith.com
Description: Lets you define the header color for specific sites
Author: Alex Hempton-Smith
Version: 0.1
Author URI: http://www.alexhemptonsmith.com
*/

function site_colors(){

 $site = get_current_site();

 // Site with ID of 1 has a header with a red background
 if ($site-&gt;blog_id == 1)
 $header_color = 'red';

 // Site with ID of 2 has a header with a black background
 if ($site-&gt;blog_id == 2)
 $header_color = '#000';

 if ($header_color)
 echo &quot;&lt;style type='text/css'&gt;#wphead {background: $header_color !important;}&lt;/style&gt;&quot;;
}
add_action('admin_print_styles', 'site_colors');</pre>
<p>You can <a href="http://uploads.hempsworth.com/2010/06/site-colors.php.txt">download the plugin</a> here.</p>
]]></content:encoded>
			<wfw:commentRss>http://hempsworth.com/2010/06/change-wordpress-admin-header-based-on-multisite-blog/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>echo &#8216;Hello World!&#8217;;</title>
		<link>http://hempsworth.com/2010/06/hello-world/</link>
		<comments>http://hempsworth.com/2010/06/hello-world/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 23:07:14 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.hempsworth.com/?p=1</guid>
		<description><![CDATA[So this is the obligatory &#8216;Hello World&#8217; post. I&#8217;ve attempted blogging before, no doubt I&#8217;ll fail again, but I&#8217;ll try harder this time]]></description>
			<content:encoded><![CDATA[<p>So this is the obligatory &#8216;Hello World&#8217; post. I&#8217;ve attempted blogging before, no doubt <a href="http://upload.wikimedia.org/wikipedia/en/d/de/Failwhale.png">I&#8217;ll fail again</a>, but I&#8217;ll try harder this time <img src='http://hempsworth.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://hempsworth.com/2010/06/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
