<?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/"
	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>Comments on: WordPress Template Files and Style Sheets &#8211; Give Them a Name</title>
	<atom:link href="http://lorelle.wordpress.com/2005/08/25/wordpress-template-files-and-style-sheets-give-them-a-name/feed/" rel="self" type="application/rss+xml" />
	<link>http://lorelle.wordpress.com/2005/08/25/wordpress-template-files-and-style-sheets-give-them-a-name/</link>
	<description>Helping you learn more and do more with WordPress</description>
	<lastBuildDate>Tue, 21 May 2013 07:30:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Designing a WordPress Theme: Building a Post Sandbox &#171; Lorelle on WordPress</title>
		<link>http://lorelle.wordpress.com/2005/08/25/wordpress-template-files-and-style-sheets-give-them-a-name/#comment-919584</link>
		<dc:creator><![CDATA[Designing a WordPress Theme: Building a Post Sandbox &#171; Lorelle on WordPress]]></dc:creator>
		<pubDate>Fri, 10 Apr 2009 23:55:19 +0000</pubDate>
		<guid isPermaLink="false">http://lorelle.wordpress.com/?p=15#comment-919584</guid>
		<description><![CDATA[[...] WordPress Template Files and Style Sheets - Give Them a Name [...]]]></description>
		<content:encoded><![CDATA[<p>[...] WordPress Template Files and Style Sheets &#8211; Give Them a Name [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Your Comment Has Been Moderated - Stay Tuned for Approval &#171; Lorelle on WordPress</title>
		<link>http://lorelle.wordpress.com/2005/08/25/wordpress-template-files-and-style-sheets-give-them-a-name/#comment-917040</link>
		<dc:creator><![CDATA[Your Comment Has Been Moderated - Stay Tuned for Approval &#171; Lorelle on WordPress]]></dc:creator>
		<pubDate>Fri, 06 Mar 2009 07:16:34 +0000</pubDate>
		<guid isPermaLink="false">http://lorelle.wordpress.com/?p=15#comment-917040</guid>
		<description><![CDATA[[...] WordPress Template Files and Style Sheets - Give Them a Name [...]]]></description>
		<content:encoded><![CDATA[<p>[...] WordPress Template Files and Style Sheets &#8211; Give Them a Name [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jidanni</title>
		<link>http://lorelle.wordpress.com/2005/08/25/wordpress-template-files-and-style-sheets-give-them-a-name/#comment-915958</link>
		<dc:creator><![CDATA[jidanni]]></dc:creator>
		<pubDate>Fri, 13 Feb 2009 02:46:02 +0000</pubDate>
		<guid isPermaLink="false">http://lorelle.wordpress.com/?p=15#comment-915958</guid>
		<description><![CDATA[OK, thanks.

By the way, regarding using &quot;the PHP comment function&quot; you mentioned,
all I was able to find was e.g.,

 $dom = new DOMDocument();
 $comment = $dom-&gt;appendChild(new DOMComment(
  &#039;This is the &#039;. basename(__FILE__). &#039; file - it goes here.&#039;));
 echo $dom-&gt;saveHTML();

which will make

(!--This is the bla.php file - it goes here.--&gt;]]></description>
		<content:encoded><![CDATA[<p>OK, thanks.</p>
<p>By the way, regarding using &#8220;the PHP comment function&#8221; you mentioned,<br />
all I was able to find was e.g.,</p>
<p> $dom = new DOMDocument();<br />
 $comment = $dom-&gt;appendChild(new DOMComment(<br />
  &#8216;This is the &#8216;. basename(__FILE__). &#8216; file &#8211; it goes here.&#8217;));<br />
 echo $dom-&gt;saveHTML();</p>
<p>which will make</p>
<p>(!&#8211;This is the bla.php file &#8211; it goes here.&#8211;&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lorelle VanFossen</title>
		<link>http://lorelle.wordpress.com/2005/08/25/wordpress-template-files-and-style-sheets-give-them-a-name/#comment-915917</link>
		<dc:creator><![CDATA[Lorelle VanFossen]]></dc:creator>
		<pubDate>Thu, 12 Feb 2009 07:20:26 +0000</pubDate>
		<guid isPermaLink="false">http://lorelle.wordpress.com/?p=15#comment-915917</guid>
		<description><![CDATA[So you are not asking a question but trying to give an answer to something that isn&#039;t being asked in this article, and still struggling to understand how to &lt;a href=&quot;http://www.blogherald.com/2007/07/16/writing-and-publishing-code-in-your-wordpress-blog-posts/&quot; title=&quot;Writing and Publishing Code in Your WordPress Blog Posts&quot; rel=&quot;nofollow&quot;&gt;post code in comments&lt;/a&gt;. Thanks for the hard work to make your point, though I&#039;m still not sure why. 

To include files within a WordPress Theme, you simply use the PHP &lt;code&gt;include&lt;/code&gt;. If you want to comment within a template file so the words do not appear for the reader to see but leave a comment to explain instructions or guides, then you use the PHP comment function, which allows you to leave notes like &quot;this is the header file - it goes here.&quot; While the feature you mention allows people to put the name of the file in a comment, that only serves one purpose, which can be done manually, with less work. If there are dozens of files within a Theme, this is a handy bit of code, but few WordPress Themes have more than a dozen files. 

Thanks for the tip, though, and the hard work.]]></description>
		<content:encoded><![CDATA[<p>So you are not asking a question but trying to give an answer to something that isn&#8217;t being asked in this article, and still struggling to understand how to <a href="http://www.blogherald.com/2007/07/16/writing-and-publishing-code-in-your-wordpress-blog-posts/" title="Writing and Publishing Code in Your WordPress Blog Posts" rel="nofollow">post code in comments</a>. Thanks for the hard work to make your point, though I&#8217;m still not sure why. </p>
<p>To include files within a WordPress Theme, you simply use the PHP <code>include</code>. If you want to comment within a template file so the words do not appear for the reader to see but leave a comment to explain instructions or guides, then you use the PHP comment function, which allows you to leave notes like &#8220;this is the header file &#8211; it goes here.&#8221; While the feature you mention allows people to put the name of the file in a comment, that only serves one purpose, which can be done manually, with less work. If there are dozens of files within a Theme, this is a handy bit of code, but few WordPress Themes have more than a dozen files. </p>
<p>Thanks for the tip, though, and the hard work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jidanni</title>
		<link>http://lorelle.wordpress.com/2005/08/25/wordpress-template-files-and-style-sheets-give-them-a-name/#comment-915893</link>
		<dc:creator><![CDATA[jidanni]]></dc:creator>
		<pubDate>Thu, 12 Feb 2009 01:29:45 +0000</pubDate>
		<guid isPermaLink="false">http://lorelle.wordpress.com/?p=15#comment-915893</guid>
		<description><![CDATA[(Oh, I see, it wasn&#039;t that hard to get the comment in. I just didn&#039;t refresh my WWWOFFLE + emacs-w3m browser.)]]></description>
		<content:encoded><![CDATA[<p>(Oh, I see, it wasn&#8217;t that hard to get the comment in. I just didn&#8217;t refresh my WWWOFFLE + emacs-w3m browser.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jidanni</title>
		<link>http://lorelle.wordpress.com/2005/08/25/wordpress-template-files-and-style-sheets-give-them-a-name/#comment-915892</link>
		<dc:creator><![CDATA[jidanni]]></dc:creator>
		<pubDate>Thu, 12 Feb 2009 01:28:03 +0000</pubDate>
		<guid isPermaLink="false">http://lorelle.wordpress.com/?p=15#comment-915892</guid>
		<description><![CDATA[(It is so hard to type any code into these comment boxes without it
all going into a black hole. The minute any angle bracket is detected,
all the comment goes into the dumpster. I feel just like you in your
article where you hit backspace and all was lost. OK, trying again...
What I&#039;m trying to say here, and in
2005/09/18/wordpress-tips-and-tricks-for-template-files comments is:)

At the top of this article, note the word &quot;header&quot; of &quot;header begins&quot;
and &quot;header ends&quot;,

If you replace that word with

(?php echo basename(__FILE__); ?)

PHP will insert the name of the file (&quot;header&quot; in this case) for you,
without one needing to type it in.

That way one can just paste the same HTML comment line at the top and
bottom of each file, and have PHP do the work of telling you what file
it was in!

It might look a little longer than the original, but it saves some
work!

I hope my tip helps somebody. Note the outer parentheses need to be
changed to angle brackets.]]></description>
		<content:encoded><![CDATA[<p>(It is so hard to type any code into these comment boxes without it<br />
all going into a black hole. The minute any angle bracket is detected,<br />
all the comment goes into the dumpster. I feel just like you in your<br />
article where you hit backspace and all was lost. OK, trying again&#8230;<br />
What I&#8217;m trying to say here, and in<br />
2005/09/18/wordpress-tips-and-tricks-for-template-files comments is:)</p>
<p>At the top of this article, note the word &#8220;header&#8221; of &#8220;header begins&#8221;<br />
and &#8220;header ends&#8221;,</p>
<p>If you replace that word with</p>
<p>(?php echo basename(__FILE__); ?)</p>
<p>PHP will insert the name of the file (&#8220;header&#8221; in this case) for you,<br />
without one needing to type it in.</p>
<p>That way one can just paste the same HTML comment line at the top and<br />
bottom of each file, and have PHP do the work of telling you what file<br />
it was in!</p>
<p>It might look a little longer than the original, but it saves some<br />
work!</p>
<p>I hope my tip helps somebody. Note the outer parentheses need to be<br />
changed to angle brackets.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jidanni</title>
		<link>http://lorelle.wordpress.com/2005/08/25/wordpress-template-files-and-style-sheets-give-them-a-name/#comment-915890</link>
		<dc:creator><![CDATA[jidanni]]></dc:creator>
		<pubDate>Thu, 12 Feb 2009 01:08:50 +0000</pubDate>
		<guid isPermaLink="false">http://lorelle.wordpress.com/?p=15#comment-915890</guid>
		<description><![CDATA[I just stick the one size fits all
&lt;code&gt;(!-- The following output was made by template (?php echo basename(__FILE__); ?&gt; --&gt;&lt;/code&gt;
in all my templates. The point is PHP will automatically convert __FILE__, so I don&#039;t have to type it in.

Now in my browser clicking &#039;view HTML source&#039; I will see
&lt;code&gt;(!-- The following output was made by template happy.php --&gt;&lt;/code&gt;
&lt;code&gt;(!-- The following output was made by template groovy.php --&gt;&lt;/code&gt;
etc. (Change &quot;(&quot; to angle bracket.)
I hope this also explains my 2005/09/18/wordpress-tips-and-tricks-for-template-files comments.]]></description>
		<content:encoded><![CDATA[<p>I just stick the one size fits all<br />
<code>(!-- The following output was made by template (?php echo basename(__FILE__); ?&gt; --&gt;</code><br />
in all my templates. The point is PHP will automatically convert __FILE__, so I don&#8217;t have to type it in.</p>
<p>Now in my browser clicking &#8216;view HTML source&#8217; I will see<br />
<code>(!-- The following output was made by template happy.php --&gt;</code><br />
<code>(!-- The following output was made by template groovy.php --&gt;</code><br />
etc. (Change &#8220;(&#8221; to angle bracket.)<br />
I hope this also explains my 2005/09/18/wordpress-tips-and-tricks-for-template-files comments.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WordPress Themes: Start With a Solid Framework &#171; Lorelle on WordPress</title>
		<link>http://lorelle.wordpress.com/2005/08/25/wordpress-template-files-and-style-sheets-give-them-a-name/#comment-914088</link>
		<dc:creator><![CDATA[WordPress Themes: Start With a Solid Framework &#171; Lorelle on WordPress]]></dc:creator>
		<pubDate>Mon, 29 Dec 2008 20:07:12 +0000</pubDate>
		<guid isPermaLink="false">http://lorelle.wordpress.com/?p=15#comment-914088</guid>
		<description><![CDATA[[...] WordPress Template Files and Style Sheets - Give Them a Name [...]]]></description>
		<content:encoded><![CDATA[<p>[...] WordPress Template Files and Style Sheets &#8211; Give Them a Name [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dissecting the WordPress Post Title Link &#171; Lorelle on WordPress</title>
		<link>http://lorelle.wordpress.com/2005/08/25/wordpress-template-files-and-style-sheets-give-them-a-name/#comment-913774</link>
		<dc:creator><![CDATA[Dissecting the WordPress Post Title Link &#171; Lorelle on WordPress]]></dc:creator>
		<pubDate>Tue, 23 Dec 2008 18:09:27 +0000</pubDate>
		<guid isPermaLink="false">http://lorelle.wordpress.com/?p=15#comment-913774</guid>
		<description><![CDATA[[...] WordPress Template Files and Style Sheets - Give Them a Name [...]]]></description>
		<content:encoded><![CDATA[<p>[...] WordPress Template Files and Style Sheets &#8211; Give Them a Name [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lorelle VanFossen</title>
		<link>http://lorelle.wordpress.com/2005/08/25/wordpress-template-files-and-style-sheets-give-them-a-name/#comment-26</link>
		<dc:creator><![CDATA[Lorelle VanFossen]]></dc:creator>
		<pubDate>Thu, 25 Aug 2005 14:54:58 +0000</pubDate>
		<guid isPermaLink="false">http://lorelle.wordpress.com/?p=15#comment-26</guid>
		<description><![CDATA[I&#039;m not one of the developers, just one of the testers. Yes, WordPress 1.6 has a new interface, as discussed in &lt;a href=&quot;http://lorelle.wordpress.com/2005/08/22/what-can-you-do-with-wordpresscom/&quot;&gt;another post&lt;/a&gt;, I&#039;m not sure if the admin design you are talking about is the same. Here is a &lt;a href=&quot;http://asymptomatic.net/wp/2005/06/16/1665/wordpress-16-feature-updates/&quot;&gt;view of it as of June&lt;/a&gt;, which looks fancier as a screencast. ;-)]]></description>
		<content:encoded><![CDATA[<p>I&#8217;m not one of the developers, just one of the testers. Yes, WordPress 1.6 has a new interface, as discussed in <a href="http://lorelle.wordpress.com/2005/08/22/what-can-you-do-with-wordpresscom/">another post</a>, I&#8217;m not sure if the admin design you are talking about is the same. Here is a <a href="http://asymptomatic.net/wp/2005/06/16/1665/wordpress-16-feature-updates/">view of it as of June</a>, which looks fancier as a screencast. <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
