<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Dynamic Copyright Date</title>
	<atom:link href="http://www.elanman.co.uk/2009/08/dynamic-copyright-date/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.elanman.co.uk/2009/08/dynamic-copyright-date/</link>
	<description>ElanMan&#039;s Code Snippets</description>
	<lastBuildDate>Tue, 24 Aug 2010 07:35:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Scott S</title>
		<link>http://www.elanman.co.uk/2009/08/dynamic-copyright-date/comment-page-1/#comment-126</link>
		<dc:creator>Scott S</dc:creator>
		<pubDate>Fri, 21 Aug 2009 21:57:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.elanman.co.uk/?p=1019#comment-126</guid>
		<description>&lt;pre lang=&quot;html&quot;&gt;
 Fair enough lol. Don&#039;t know why it&#039;s being spazzy!
&lt;/pre&gt;

Cheers for the amendment.</description>
		<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;"> Fair enough lol. Don't know why it's being spazzy!</pre></div></div>

<p>Cheers for the amendment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ElanMan</title>
		<link>http://www.elanman.co.uk/2009/08/dynamic-copyright-date/comment-page-1/#comment-125</link>
		<dc:creator>ElanMan</dc:creator>
		<pubDate>Fri, 21 Aug 2009 21:30:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.elanman.co.uk/?p=1019#comment-125</guid>
		<description>The best way at the moment to post code in a comment is to use the pre tag with a lang attribute of either php, css, javascript or html4strict like this:
&lt;pre lang=&quot;html4strict&quot;&gt;
&lt;body&gt;
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>The best way at the moment to post code in a comment is to use the pre tag with a lang attribute of either php, css, javascript or html4strict like this:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">body</span>&gt;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: ElanMan</title>
		<link>http://www.elanman.co.uk/2009/08/dynamic-copyright-date/comment-page-1/#comment-124</link>
		<dc:creator>ElanMan</dc:creator>
		<pubDate>Fri, 21 Aug 2009 21:27:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.elanman.co.uk/?p=1019#comment-124</guid>
		<description>Oh bugger, send me your code and I&#039;ll amend your posts :)
Meanwhile, I&#039;ll have a look at the comment system.

Cheers Scott :)</description>
		<content:encoded><![CDATA[<p>Oh bugger, send me your code and I&#8217;ll amend your posts <img src='http://www.elanman.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Meanwhile, I&#8217;ll have a look at the comment system.</p>
<p>Cheers Scott <img src='http://www.elanman.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott S</title>
		<link>http://www.elanman.co.uk/2009/08/dynamic-copyright-date/comment-page-1/#comment-123</link>
		<dc:creator>Scott S</dc:creator>
		<pubDate>Fri, 21 Aug 2009 21:07:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.elanman.co.uk/?p=1019#comment-123</guid>
		<description>Your  tag doesn&#039;t work :(</description>
		<content:encoded><![CDATA[<p>Your  tag doesn&#8217;t work <img src='http://www.elanman.co.uk/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott S</title>
		<link>http://www.elanman.co.uk/2009/08/dynamic-copyright-date/comment-page-1/#comment-121</link>
		<dc:creator>Scott S</dc:creator>
		<pubDate>Fri, 21 Aug 2009 21:06:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.elanman.co.uk/?p=1019#comment-121</guid>
		<description>&lt;pre lang=&quot;php&quot;&gt;
&#169; 
&lt;?php ini_set(&#039;date.timezone&#039;, &#039;Europe/London&#039;);
$startYear = &#039;2009&#039;; 
$thisYear = date(&#039;Y&#039;); 
if($startYear == $thisYear) { 
    echo $startYear; }
else { 
    echo $startYear.&#039; &amp;ndash &#039;.$thisYear; } ?&gt; 
&#160;YOUR NAME
&lt;/pre&gt;

Is the one I use. Slightly more advanced, but lets you have the whole 2008 - 2009 thing, accurate to time-zone :)</description>
		<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&amp;copy; 
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #990000;">ini_set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'date.timezone'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Europe/London'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$startYear</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'2009'</span><span style="color: #339933;">;</span> 
<span style="color: #000088;">$thisYear</span> <span style="color: #339933;">=</span> <span style="color: #990000;">date</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Y'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$startYear</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$thisYear</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> 
    <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$startYear</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span> 
    <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$startYear</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' &amp;ndash '</span><span style="color: #339933;">.</span><span style="color: #000088;">$thisYear</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> 
&amp;nbsp;YOUR NAME</pre></div></div>

<p>Is the one I use. Slightly more advanced, but lets you have the whole 2008 &#8211; 2009 thing, accurate to time-zone <img src='http://www.elanman.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
