<?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>ExplodingBoy &#187; Site</title>
	<atom:link href="http://www.exploding-boy.com/category/site/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.exploding-boy.com</link>
	<description>A weblog about design, music, entertainment and life.</description>
	<lastBuildDate>Wed, 20 Jul 2011 15:57:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Simple Time Sensitive CSS</title>
		<link>http://www.exploding-boy.com/2008/06/16/simple-time-sensitive-css/</link>
		<comments>http://www.exploding-boy.com/2008/06/16/simple-time-sensitive-css/#comments</comments>
		<pubDate>Mon, 16 Jun 2008 13:45:05 +0000</pubDate>
		<dc:creator>Christopher</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Site]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.exploding-boy.com/?p=267</guid>
		<description><![CDATA[With the most recent redesign of this site, about a year ago, I decided I wanted to mix things up a little and display a different look/design for each month. I wanted the main page of the site to change with each month, but have the individual entries maintain the look of the month it [...]]]></description>
			<content:encoded><![CDATA[<p>With the most recent redesign of this site, about a year ago, I decided I wanted to mix things up a little and display a different look/design for each month. I wanted the main page of the site to change with each month, but have the individual entries maintain the look of the month it was written. Using a little bit of PHP, 13 different stylesheets, and some handy WordPress conditionals I was able to do just that.<br />
<span id="more-267"></span></p>
<h4>Stylesheets A&#8217; Plenty</h4>
<p>I started by first creating 13 different stylesheets. The first one I created was a base stylesheet containing the basic structure of site. The other stylesheets containing color changes to the header, headings, and link colors, were created for every month. I saved each of the monthly stylesheets by month number, so September&#8217;s stylesheet was saved as 9.css, June&#8217;s was 6.css and December&#8217;s was 12.css. You can take a look through the archived entries on this site to see the various styling for each month.</p>
<h4>Taking Advantage of WordPress Conditional Tags</h4>
<p><a href="http://codex.wordpress.org/Conditional_Tags">WordPress conditional tags</a> are an easy way to tell WordPress to alter various elements within your theme depending on certain conditions. Most early themes for WordPress take advantage of conditional tags to display different content in the sidebar of a page depending on your current location on the site. In order to keep the current month&#8217;s look on the front page of my site, but have the individual entries maintain the look of the month it was written I set up a conditional that said if the page <code>is_single() </code> then display the stylesheet of the month it was published. If we are not on a single entry page then display the current month&#8217;s stylesheet. Here&#8217;s what it looks like:<br />
<code><br />
&lt; ?php if (is_single() ) { ?&gt;<br />
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;http://sitename.com/&lt;?php the_time('n'); ?&gt;.css&quot; /&gt;<br />
&lt; ?php } else { ?&gt;<br />
&lt;link rel=&quot;stylesheet&rdquo; type=&quot;text/css&quot; href=&quot;http://sitename.com/&lt;?php echo date('n'); ?&gt;.css&quot; /&gt;<br />
&lt; ?php } ?&gt;<br />
</code></p>
<h4>PHP</h4>
<p>Notice the small bit of PHP within the conditional we set up &#8211; <code>&lt;?php echo date('n'); ?&gt;</code>?  I replaced the name of the imported CSS file with a short snippet of PHP, which in turn generates a numerical value of one through twelve depending on the month, and appends the *.css file extension. This is why I saved my monthly stylesheets by month number. You can read more about the <a href="http://us.php.net/datetime">PHP Date/Time functions</a> and decide what format is best for you.</p>
<h4>Options</h4>
<p>If you are not using WordPress you can still easily accomplish the same switching of stylesheets with some simple javascript or server side methods. Once you are familiar with some the options of the PHP Date/Time functions you can experiment with changing the look of your site at any interval you like.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.exploding-boy.com/2008/06/16/simple-time-sensitive-css/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Nutty</title>
		<link>http://www.exploding-boy.com/2008/06/12/nutty/</link>
		<comments>http://www.exploding-boy.com/2008/06/12/nutty/#comments</comments>
		<pubDate>Thu, 12 Jun 2008 17:04:11 +0000</pubDate>
		<dc:creator>Christopher</dc:creator>
				<category><![CDATA[Site]]></category>
		<category><![CDATA[Bumpernuts]]></category>
		<category><![CDATA[Truck Nuts]]></category>

		<guid isPermaLink="false">http://www.exploding-boy.com/?p=269</guid>
		<description><![CDATA[Plastic + Testicles = Profit! While I was driving to work today I got stuck behind a vehicle that sparked a couple of sobering thoughts. It saddens me that I live in a world where a man that thought of the idea to mold colored plastic into the shape of large testicles to hang on [...]]]></description>
			<content:encoded><![CDATA[<div class="postimage">
<img src="http://exploding-boy.com/entryimages/2008/06_12_2008.jpg" class="entryimage" alt="Truck Nuts" /></p>
<p class="caption">Plastic + Testicles = Profit!</p>
</div>
<p>While I was driving to work today I got stuck behind a vehicle that sparked a couple of sobering thoughts.</p>
<ol>
<li>It saddens me that I live in a world where a man that thought of the idea to mold colored plastic into the shape of large testicles to hang on the back of vehicles is a millionaire, while I am not.</li>
<li>It also saddens me that there is such a great demand for this product to make the inventor a millionaire.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.exploding-boy.com/2008/06/12/nutty/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Fo&#8217; Shizzle</title>
		<link>http://www.exploding-boy.com/2008/02/06/fo-shizzle/</link>
		<comments>http://www.exploding-boy.com/2008/02/06/fo-shizzle/#comments</comments>
		<pubDate>Thu, 07 Feb 2008 02:47:50 +0000</pubDate>
		<dc:creator>Christopher</dc:creator>
				<category><![CDATA[Site]]></category>
		<category><![CDATA[Snoop Dogg]]></category>

		<guid isPermaLink="false">http://www.exploding-boy.com/2008/02/06/fo-shizzle/</guid>
		<description><![CDATA[I have always got a kick out of visiting a site to find out they are using some of the icons, code snippets, or menus I&#8217;ve shared in the past, but I don&#8217;t think any others have given me as much of a kick as one that was brought to my attention recently by a [...]]]></description>
			<content:encoded><![CDATA[<p>I have always got a kick out of visiting a site to find out they are using some of the icons, code snippets, or menus I&#8217;ve shared in the past, but I don&#8217;t think any others have given me as much of a kick as one that was brought to my attention recently by a reader.</p>
<blockquote><p>
Do you know you&#8217;re featured in <a href="http://www.snoopdogg.com">Snoop Dogg’s</a> source code? An exploding Boy CSS file.
</p></blockquote>
<p>Sure enough the &#8220;<a href="http://www.snoopdogg.com">Doggfather</a>&#8221; is sportin&#8217; one of the menus examples I created a few years back for the &#8220;Login&#8221; and &#8220;Sign Up&#8221; links. The site isn&#8217;t using my personal fav from the bunch. I also can&#8217;t really say it looks all that good with the rest of the overall look of the site, but it is cool nonetheless.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.exploding-boy.com/2008/02/06/fo-shizzle/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Two Years</title>
		<link>http://www.exploding-boy.com/2007/06/09/two-years/</link>
		<comments>http://www.exploding-boy.com/2007/06/09/two-years/#comments</comments>
		<pubDate>Sat, 09 Jun 2007 13:50:30 +0000</pubDate>
		<dc:creator>Christopher</dc:creator>
				<category><![CDATA[Site]]></category>

		<guid isPermaLink="false">http://www.exploding-boy.com/2007/06/09/two-years/</guid>
		<description><![CDATA[exploding-boy.com turns two today &#8212; that&#8217;s right, as of today I&#8217;ve been wasting this little area of the web for two years. (It took me about month to work out a design and begin posting entries.) Time does indeed fly my friends. It seems like just yesterday I was ranting about Rolling Stone, Wal-Mart, and [...]]]></description>
			<content:encoded><![CDATA[<p>exploding-boy.com turns two today &#8212; that&#8217;s right, as of today I&#8217;ve been wasting this little area of the web for two years. (It took me about month to work out a design and begin posting entries.) Time does indeed fly my friends. It seems like just yesterday I was ranting about <a href="http://www.exploding-boy.com/2005/07/21/rolling-stone-rant/">Rolling Stone</a>, <a href="http://www.exploding-boy.com/2005/07/18/i-hate-wal-mart/">Wal-Mart</a>, and <a href="http://www.exploding-boy.com/2005/07/13/is-alabama-lacking-talented-web-designers/">all the shitty web designers in Alabama</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.exploding-boy.com/2007/06/09/two-years/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Shift</title>
		<link>http://www.exploding-boy.com/2007/06/08/shift/</link>
		<comments>http://www.exploding-boy.com/2007/06/08/shift/#comments</comments>
		<pubDate>Fri, 08 Jun 2007 22:16:56 +0000</pubDate>
		<dc:creator>Christopher</dc:creator>
				<category><![CDATA[Site]]></category>
		<category><![CDATA[burnout]]></category>
		<category><![CDATA[I-suck-at-blogging]]></category>

		<guid isPermaLink="false">http://www.exploding-boy.com/2007/06/08/shift/</guid>
		<description><![CDATA[I have never claimed to be a prolific blogger by any means, but over the past few months I had been feeling some general blog burnout. I had grown tired of writing on my site&#8230;it began to feel more like a chore. I started to feel like I had to deliver some type of meaningful [...]]]></description>
			<content:encoded><![CDATA[<p>I have never claimed to be a prolific blogger by any means, but over the past few months I had been feeling some general blog burnout. I had grown tired of writing on my site&hellip;it began to feel more like a chore. I started to feel like I had to deliver some type of meaningful or entertaining content with every entry. I would find myself writing numerous drafts only to delete them later because I didn&#8217;t feel they fit the site. I even debating the idea of doing away with this site altogether.</p>
<p>After some thought, I decided recently to write for myself, not what I think others might want to read. I want to share, but more importantly record, my thoughts and reactions to life, fatherhood and all the events and people that surround me. There will be a shift in content on this site, and I&#8217;m sure there will be a fair share of readers who will not like it, but the more I think about it I&#8217;d much rather record all the aspects of life no matter how mundane and boring to some, than continue to struggle to write anything.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.exploding-boy.com/2007/06/08/shift/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

