<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Between Old and New Moons &#187; Wordpress Mods/Themes</title>
	<atom:link href="http://mahood.wordpress.com/category/wordpress-modsthemes/feed/" rel="self" type="application/rss+xml" />
	<link>http://mahood.wordpress.com</link>
	<description>Mythology &#124; Spirituality &#124; Web Design &#124; Digital Art</description>
	<lastBuildDate>Sat, 17 Feb 2007 01:36:05 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='mahood.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/c46135fd4f9a5ce6e8081b6021820cf8?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Between Old and New Moons &#187; Wordpress Mods/Themes</title>
		<link>http://mahood.wordpress.com</link>
	</image>
			<item>
		<title>Create a &#8216;Calendar style&#8217; WordPress date format</title>
		<link>http://mahood.wordpress.com/2006/12/19/create-a-calendar-style-wordpress-date-format/</link>
		<comments>http://mahood.wordpress.com/2006/12/19/create-a-calendar-style-wordpress-date-format/#comments</comments>
		<pubDate>Tue, 19 Dec 2006 23:02:49 +0000</pubDate>
		<dc:creator>mahud</dc:creator>
				<category><![CDATA[Wordpress Mods/Themes]]></category>

		<guid isPermaLink="false">http://mahood.wordpress.com/2006/12/19/create-a-calendar-style-wordpress-date-format/</guid>
		<description><![CDATA[
A calendar image for post entries is a nifty looking addition to a blog. This tutorial shows how to format the template tags and the mark up (CSS and XHTML), to whip up a post date calendar, that&#8217;s browser resizable.
The Date and Time Template Tags
The post entry date is displayed  using the date and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mahood.wordpress.com&blog=777727&post=71&subd=mahood&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><img src="http://img.photobucket.com/albums/v283/dudleythoth/blogtutorials/cd3.jpg" alt="calandarimage" /></p>
<p>A calendar image for post entries is a nifty looking addition to a blog. This tutorial shows how to format the template tags and the mark up (<acronym title="Cascading Style Sheets">CSS</acronym> and <acronym title="Extensible HyperText Markup Language">XHTML</acronym>), to whip up a post date calendar, that&#8217;s browser resizable.</p>
<h3>The Date and Time Template Tags</h3>
<p>The post entry date is displayed  using the date and time template tags</p>
<pre><code>&lt;?php the_date() ?&gt;

&lt;?php the_time() ?&gt;</code></pre>
<p>To format the post date for a calendar image use <strong>&lt;?php the_time() ?&gt;</strong>.</p>
<h4>The Day of the Month</h4>
<p>To display the day of the month, use the value j.</p>
<pre><code>&lt;?php the_time('j'); ?&gt;</code></pre>
<h4>The Month</h4>
<p>To display the abbreviated month (jan, feb, mar, etc), use the value M. The <strong>M</strong> value needs to be capitalized, otherwise the month with only display as a number. </p>
<pre><code>&lt;?php the_time('M'); ?&gt;</code></pre>
<h4>The Year</h4>
<p>For the year, use the value Y. A small <strong>y</strong> displays the last two digits, and a capitol <strong>Y</strong> displays all four digits.</p>
<pre><code>&lt;?php the_time('Y'); ?&gt;</code></pre>
<h3>The <acronym title="Extensible HyperText Markup Language">XHTML</acronym> mark up</h3>
<p>Wrap all the tags in a <code>&lt;div&gt;</code> element.  Also, wrap the month tag in a <code>&lt;span&gt;</code> element, so it can be uniquely styled. Assign a class name to both elements. To create line breaks add <code>&lt;br /&gt;</code> tags after both the day of the month, and the month tags:</p>
<pre><code><strong>&lt;div class="date"&gt;</strong>
&lt;?php the_time('j'); ?&gt;<strong>&lt;br /&gt;</strong>
<strong>&lt;span class="month"&gt;</strong>&lt;?php the_time('M'); ?&gt;<strong>&lt;/span&gt;</strong><strong>&lt;br /&gt;</strong>
&lt;?php the_time('y'); ?&gt;
<strong>&lt;/div&gt;</strong></code></pre>
<p>If you use <acronym title="HyperText Markup Language">HTML</acronym> the <strong>&lt;br /&gt;</strong> tags should not be self closing. Use <strong>&lt;br&gt;</strong> instead.</p>
<p>In the <acronym title="WordPress">wp</acronym>-admin, go to  <strong>Presentation</strong> &gt; <strong>Themes</strong>, and look for the post entry wordpress loop, in the <strong>Index.php</strong> template. Then, swap the <strong><code>&lt;?php the_date() ?&gt;</code></strong> template tag, with the mark up above.</p>
<p>Save and view your site, and you should have something like this:</p>
<p><img src="http://img.photobucket.com/albums/v283/dudleythoth/blogtutorials/cd1.jpg" alt="calandarimage" /></p>
<h3>The <acronym title="Cascading Style Sheets">CSS</acronym> mark up</h3>
<p>In <strong>Presentation</strong> &gt; <strong>Themes</strong>, open up the <strong>syle.css</strong> file. add both the class name selectors with the following properties and values:</p>
<pre><code>.date {width:3em;
       padding:0.6em 0 0 0;
       text-align:center;
       border-right:1px solid #bcd0d4;
       border-bottom:1px solid #bcd0d4;
       color:#355b61;
       background-color:#dfe9eb;}

.month {text-transform:uppercase; font-weight:bold; color:#9b241b;}</code></pre>
<p>I&#8217;ve used the border properties to give the calendar a dropshadow effect. </p>
<p>The result should look something like this:</p>
<p><img src="http://img.photobucket.com/albums/v283/dudleythoth/blogtutorials/cd2.jpg" alt="calandarimage" /></p>
<p>Next add a background image. For this tutorial it should be 24 pixels in height, and extra long to compensate for increased font size in browsers. </p>
<p>Here&#8217;s my image:</p>
<p><img src="http://img.photobucket.com/albums/v283/dudleythoth/blogtutorials/calbg.jpg" alt="calandarimage" /></p>
<p>you can copy and save my image and upload it to your theme&#8217;s images file for this tutorial.</p>
<p>Add the following properties and values to the <strong>.date</strong> class selector:</p>
<pre><code>background-image:url(images/calbg.jpg);
background-repeat:no-repeat;
background-position:top center;</code></pre>
<p>The result:</p>
<p><img src="http://img.photobucket.com/albums/v283/dudleythoth/blogtutorials/cd3.jpg" alt="calandarimage" /></p>
<p>You now have a resizeable calendar for your blog posts.</p>
<h4>Decreased font-size (0.7em)</h4>
<p><img src="http://img.photobucket.com/albums/v283/dudleythoth/blogtutorials/cd4.jpg" alt="calandarimage" /></p>
<h4>Increased font-size (2em)</h4>
<p><img src="http://img.photobucket.com/albums/v283/dudleythoth/blogtutorials/cd5.jpg" alt="calandarimage" /></p>
<p>And that&#8217;s it <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mahood.wordpress.com/71/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mahood.wordpress.com/71/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mahood.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mahood.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mahood.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mahood.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mahood.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mahood.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mahood.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mahood.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mahood.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mahood.wordpress.com/71/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mahood.wordpress.com&blog=777727&post=71&subd=mahood&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mahood.wordpress.com/2006/12/19/create-a-calendar-style-wordpress-date-format/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/74a6ed39be8087e224b03696cf316532?s=96&#38;d=identicon" medium="image">
			<media:title type="html">mahud</media:title>
		</media:content>

		<media:content url="http://img.photobucket.com/albums/v283/dudleythoth/blogtutorials/cd3.jpg" medium="image">
			<media:title type="html">calandarimage</media:title>
		</media:content>

		<media:content url="http://img.photobucket.com/albums/v283/dudleythoth/blogtutorials/cd1.jpg" medium="image">
			<media:title type="html">calandarimage</media:title>
		</media:content>

		<media:content url="http://img.photobucket.com/albums/v283/dudleythoth/blogtutorials/cd2.jpg" medium="image">
			<media:title type="html">calandarimage</media:title>
		</media:content>

		<media:content url="http://img.photobucket.com/albums/v283/dudleythoth/blogtutorials/calbg.jpg" medium="image">
			<media:title type="html">calandarimage</media:title>
		</media:content>

		<media:content url="http://img.photobucket.com/albums/v283/dudleythoth/blogtutorials/cd3.jpg" medium="image">
			<media:title type="html">calandarimage</media:title>
		</media:content>

		<media:content url="http://img.photobucket.com/albums/v283/dudleythoth/blogtutorials/cd4.jpg" medium="image">
			<media:title type="html">calandarimage</media:title>
		</media:content>

		<media:content url="http://img.photobucket.com/albums/v283/dudleythoth/blogtutorials/cd5.jpg" medium="image">
			<media:title type="html">calandarimage</media:title>
		</media:content>
	</item>
	</channel>
</rss>