<?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>archGFX &#187; templates</title>
	<atom:link href="http://archgfx.net/tag/templates/feed" rel="self" type="application/rss+xml" />
	<link>http://archgfx.net</link>
	<description>Austin web designer - Adam Freetly</description>
	<lastBuildDate>Thu, 19 Apr 2012 18:01:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Official Theme Options, Please</title>
		<link>http://archgfx.net/blog/2007/geek/blogging/official-theme-options-please</link>
		<comments>http://archgfx.net/blog/2007/geek/blogging/official-theme-options-please#comments</comments>
		<pubDate>Wed, 07 Mar 2007 15:45:36 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[blogging]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[templates]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://archgfx.net/blog/2007/asides/official-theme-options-please</guid>
		<description><![CDATA[Noscope &#124; Hey WordPress Team: How About Theme Options, Officially Supported? sure, theundersigned's tutorial, and ozh's themetoolkit are better than a kick in the head. but with custom headers, sidebar widgets, and color pickers being available to theme authors via API, why can't we have an official options page API? one that sanitizes values, does [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.noscope.com/journal/2007/03/hey-wordpress-team-how-about-theme-options-officially-supported">Noscope | Hey WordPress Team: How About Theme Options, Officially Supported?</a></p>
<p>sure, <a href="http://theundersigned.net/2006/06/wordpress-how-to-theme-options/">theundersigned's tutorial</a>, and <a href="http://frenchfragfactory.net/ozh/my-projects/wordpress-theme-toolkit-admin-menu/">ozh's themetoolkit</a> are better than a kick in the head.  but with <a href="http://sunburntkamel.archgfx.net/2007/01/04/custom-headers-for-everyone/">custom headers</a>, sidebar widgets, and <a href="http://trac.wordpress.org/ticket/1692">color pickers</a> being available to theme authors via <acronym title='Application Interface'><span class='caps'>API</span></acronym>, why can't we have an official options page <acronym title='Application Interface'><span class='caps'>API</span></acronym>?  one that sanitizes values, does error checking, all that good stuff that the theme toolkit <a href="http://en.forums.wordpress.com/topic.php?id=8054&amp;page&amp;replies=7#post-54630">gets blasted for not doing</a>?</p>
<p>this is the sort of thing <a href="http://wank.wordpress.com/2007/02/04/excessive-profanity-on-the-part-of-the-kvetchers/#comment-34086">i've been asking for</a>, and i'm glad i'm not alone.</p>
]]></content:encoded>
			<wfw:commentRss>http://archgfx.net/blog/2007/geek/blogging/official-theme-options-please/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WIP: The Late Show</title>
		<link>http://archgfx.net/blog/2007/geek/blogging/wip-the-late-show</link>
		<comments>http://archgfx.net/blog/2007/geek/blogging/wip-the-late-show#comments</comments>
		<pubDate>Wed, 14 Feb 2007 18:09:23 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[blogging]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CustomCSS]]></category>
		<category><![CDATA[Sandbox]]></category>
		<category><![CDATA[skins]]></category>
		<category><![CDATA[templates]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[wordpress.com]]></category>

		<guid isPermaLink="false">http://archgfx.net/blog/2007/asides/wip-the-late-show</guid>
		<description><![CDATA[The Late Show by Liz Lubowitz. As much as i love using this theme, It's taking away from the energy i need to direct towards other projects. Inspired by patrick heaney, i'm going to strip down to something spartan, until i have the time to finish my own design. This is a Work In Progress. [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://sunburntkamel.wordpress.com/files/2007/02/bannerinner.jpg" alt="banner inner" /></p>
<p><a href="http://www.thestylecontest.com/designs/the_late_show">The Late Show</a> by <a href="http://killsmedead.com/">Liz Lubowitz</a>.</p>
<p>As much as i <a href="http://sunburntkamel.archgfx.net/2006/10/31/join-the-dark-side/">love using this theme</a>, It's taking away from the energy i need to direct towards other projects.  Inspired by <a href="http://patrickhaney.com/thinktank/2006/11/30/unstylish">patrick heaney</a>, i'm going to strip down to something <a href="http://en.forums.wordpress.com/topic.php?id=3287&amp;replies=18">spartan</a>, until i have the time to finish my own design.</p>
<p>This is a <u>W</u>ork <u>I</u>n <u>P</u>rogress.  First there's the matter of license.  Liz happily granted me permission to port the theme, but the theme is certainly not <acronym title='GNU General Public License'><span class='caps'>GPL</span></acronym>, so it's always going to be kind of "for personal use only".</p>
<p>Also, Sixapart's Style Contest themes work a little differently, in that they make use of a body class for each layout. (two-column-left, etc.)  Even after adding the name of the current sandbox skin as a class to the body of the sandbox, i'd still need to finish my "Layout Dependent Sandbox Skins" plugin for this to really be workable.</p>
<h3>Download:</h3>
<p>So here's my two column left version of the theme, and hopefully Rothyschild will <a href="http://en.forums.wordpress.com/topic.php?id=6899&amp;replies=38&amp;page=2">finish her 3 column version soon</a>. Select the 'no stylesheet' skin, and paste these two <acronym title='Cascading Style Sheets'><span class='caps'>CSS</span></acronym> files into the 'edit css' box in order:<br />
<a href="http://archgfx.net/aspnet_client/base-weblog.css" class="download">base-weblog.css</a><br />
<a href="http://archgfx.net/aspnet_client/thelateshow.css" class="download">thelateshow.css</a></p>
]]></content:encoded>
			<wfw:commentRss>http://archgfx.net/blog/2007/geek/blogging/wip-the-late-show/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Bus Full of Hippies for WordPress.com</title>
		<link>http://archgfx.net/blog/2007/geek/blogging/bus-full-of-hippies-for-wordpresscom</link>
		<comments>http://archgfx.net/blog/2007/geek/blogging/bus-full-of-hippies-for-wordpresscom#comments</comments>
		<pubDate>Thu, 04 Jan 2007 05:32:35 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[blogging]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Custom-CSS]]></category>
		<category><![CDATA[CustomCSS]]></category>
		<category><![CDATA[Sandbox]]></category>
		<category><![CDATA[skins]]></category>
		<category><![CDATA[templates]]></category>
		<category><![CDATA[themes]]></category>

		<guid isPermaLink="false">http://archgfx.net/blog/2007/asides/bus-full-of-hippies-for-wordpresscom</guid>
		<description><![CDATA[This skin is for WordPress.com Users. feel free to use this skin ‘as is’. the images are hosted on wordpress.com, so it’s no different than hosting them yourself. If you host your own blog, please get the zipped version of the skin. Credits: Original design by John Oxton Illustration by Denis Radenkovic Based on the [...]]]></description>
			<content:encoded><![CDATA[<p class="alert">This skin is for WordPress.com Users. feel free to use this skin ‘as is’. the images are hosted on wordpress.com, so it’s no different than hosting them yourself. If you host your own blog, please get the <a href="http://www.archgfx.net/blog/index.php/2007/geek/blogging/bus-full-of-hippies-for-wordpress" title="Bus Full of Hippies for WordPress">zipped version of the skin</a>.</p>
<p style="text-align:center;"><img src="http://www.archgfx.net/blog/wp-content/uploads/2006/12/joshuainkhead.jpg" alt="Joshuaink Screenshot" height="145" width="375" /></p>
<h3>Credits:</h3>
<p>Original design by <a href="http://johnoxton.co.uk/" title="visit John's site">John Oxton</a><br />
Illustration by <a href="http://www.38one.com/">Denis Radenkovic</a><br />
Based on the Textpattern template reworked by Graham Bancroft.</p>
<h3>License:</h3>
<p>This Sandbox skin is under the same license as the original template:<br />
<a href="http://creativecommons.org/licenses/by-nc/2.5/" title="CC-by-nc 2.5">Creative Commons   Attribution-Noncommercial 2.5</a>.</p>
<h3>Preparation:</h3>
<p>In order to comply with this license, you must paste the following code into a text widget:</p>
<pre>&#60;&#112;&#62;&#60;&#97;&#32;&#104;&#114;&#101;&#102;&#61;&#34;&#35;&#104;&#101;&#97;&#100;&#101;&#114;&#34;&#62;&#116;&#111;&#112;&#60;&#47;&#97;&#62;&#32;&#124;&#32;&#79;&#114;&#105;&#103;&#105;&#110;&#97;&#108;&#32;&#100;&#101;&#115;&#105;&#103;&#110;&#32;&#98;&#121;&#32;&#60;&#97;&#32;&#104;&#114;&#101;&#102;&#61;&#34;&#104;&#116;&#116;&#112;&#58;&#47;&#47;&#106;&#111;&#104;&#110;&#111;&#120;&#116;&#111;&#110;&#46;&#99;&#111;&#46;&#117;&#107;&#34;&#32;&#116;&#105;&#116;&#108;&#101;&#61;&#34;&#118;&#105;&#115;&#105;&#116;&#32;&#74;&#111;&#104;&#110;&#8217;&#115;&#32;&#115;&#105;&#116;&#101;&#34;&#62;&#74;&#111;&#104;&#110;&#32;&#79;&#120;&#116;&#111;&#110;&#60;&#47;&#97;&#62;&#32;&#124;&#32;&#73;&#108;&#108;&#117;&#115;&#116;&#114;&#97;&#116;&#105;&#111;&#110;&#32;&#98;&#121;&#32;&#60;&#97;&#32;&#104;&#114;&#101;&#102;&#61;&#34;&#104;&#116;&#116;&#112;&#58;&#47;&#47;&#119;&#119;&#119;&#46;&#51;&#56;&#111;&#110;&#101;&#46;&#99;&#111;&#109;&#47;&#34;&#62;&#68;&#101;&#110;&#105;&#115;&#32;&#82;&#97;&#100;&#101;&#110;&#107;&#111;&#118;&#105;&#99;&#60;&#47;&#97;&#62;&#32;&#124;&#32;&#84;&#104;&#105;&#115;&#32;&#100;&#101;&#115;&#105;&#103;&#110;&#32;&#105;&#115;&#32;&#114;&#101;&#108;&#101;&#97;&#115;&#101;&#100;&#32;&#117;&#110;&#100;&#101;&#114;&#32;&#97;&#32;&#60;&#97;&#32;&#104;&#114;&#101;&#102;&#61;&#34;&#104;&#116;&#116;&#112;&#58;&#47;&#47;&#99;&#114;&#101;&#97;&#116;&#105;&#118;&#101;&#99;&#111;&#109;&#109;&#111;&#110;&#115;&#46;&#111;&#114;&#103;&#47;&#108;&#105;&#99;&#101;&#110;&#115;&#101;&#115;&#47;&#98;&#121;&#45;&#110;&#99;&#47;&#50;&#46;&#53;&#47;&#34;&#32;&#116;&#105;&#116;&#108;&#101;&#61;&#34;&#118;&#105;&#101;&#119;&#32;&#116;&#104;&#101;&#32;&#108;&#105;&#99;&#101;&#110;&#99;&#101;&#32;&#102;&#111;&#114;&#32;&#116;&#104;&#105;&#115;&#32;&#100;&#101;&#115;&#105;&#103;&#110;&#34;&#62;&#67;&#114;&#101;&#97;&#116;&#105;&#118;&#101;&#32;&#67;&#111;&#109;&#109;&#111;&#110;&#115;&#32;&#108;&#105;&#99;&#101;&#110;&#99;&#101;&#60;&#47;&#97;&#62;&#60;&#47;&#112;&#62;</pre>
<p><strong>Note:</strong> If you put this text widget in your secondary sidebar, it will display the way it does on this site, as a footer of sorts.   All of the widgets in the secondary sidebar will display this way. (<a href="http://bloggersblurt.wordpress.com/2006/09/17/widget-wizardry/" title="Excellent instructions from Blogger's Blurt">Further instructions on widget usage</a>).</p>
<p><strong>Layout:</strong>  From the Sandbox Skins menu, select "No Stylesheet".</p>
<p><strong>Logo Image:</strong>  This design uses a custom image as the header.  The image is 200x60 pixels, twice.  the two halves of the 400x60 pixel image create the standard and hover states of the logo (mouse over the logo at the top of this page to get an idea of what I mean).  To help you out, here is the *.PSD file I used to make this logo.  It includes guides to make it easier to line up the two states of the image: <a href="http://archgfx.net/aspnet_client/joshuaink_logo.zip" title="joshuaink sandbox logo" class="download">Sandbox Logo</a></p>
<p>after you make your own image, and upload it to your blog, you'll have to change the <acronym title='Cascading Style Sheets'><span class='caps'>CSS</span></acronym> file to point to your new image.  look for <code>#header h1 a</code> near the start of the file.</p>
<h3>Features:</h3>
<p>the maximum width for images in posts is 375 pixels.  anything wider will be squeezed, to prevent the skin from breaking.</p>
<p>John is an excellent designer.  almost anything you put in a post will be styled.  you can see some of the formatting <a href="http://archgfx.net/busfullofhippies_v1/article_with_comments.html" title="from html templates">here</a>, in the <acronym title='HyperText Markup Language'><span class='caps'>HTML</span></acronym> templates.  Since formatting every post with code to use his <code>&lt;ol class="codesample"&gt;</code> might be a bit tedious, i've also added styling for the <code>&lt;pre&gt;</code> element.</p>
<h3>Download:</h3>
<p><a href="http://archgfx.net/aspnet_client/joshuaink.wp.com.css" class="download" title="Bus Full of Hippies for WordPress.com">Bus Full of Hippies v0.6.1</a><br />
or, <a href="http://wordpress.com/forums/topic.php?id=6501&amp;replies=1#post-42028" title="forum thread">copy and paste</a></p>
<h3>Bookmark This:</h3>
<p><a href="http://del.icio.us/post?url=http://sunburntkamel.archgfx.net/2007/01/04/bus-full-of-hippies-for-wordpresscom/;title=Bus+Full+of+Hippies+for+Wordpress.com"><img src="http://sunburntkamel.wordpress.com/files/2006/11/delicious.gif" alt="add to del.icio.us" /></a> :: <a href="http://digg.com/submit?phase=2&amp;url=http://sunburntkamel.archgfx.net/2007/01/04/bus-full-of-hippies-for-wordpresscom/"><img src="http://sunburntkamel.wordpress.com/files/2006/11/digg.gif" alt="Digg it" /></a> :: <a href="http://ma.gnolia.com/bookmarklet/add?url=http://sunburntkamel.archgfx.net/2007/01/04/bus-full-of-hippies-for-wordpresscom/;title=Bus+Full+of+Hippies+for+Wordpress.com"><img src="http://sunburntkamel.wordpress.com/files/2006/11/magnolia.gif" alt="add to ma.gnolia" /></a> :: <a href="http://www.stumbleupon.com/submit?url=http://sunburntkamel.archgfx.net/2007/01/04/bus-full-of-hippies-for-wordpresscom/&amp;title=Bus+Full+of+Hippies+for+Wordpress.com"><img src="http://sunburntkamel.wordpress.com/files/2006/11/stumbleit.gif" alt="Stumble It!" /></a> :: <a href="http://www.newsvine.com/_tools/seed&amp;save?url=http://sunburntkamel.archgfx.net/2007/01/04/bus-full-of-hippies-for-wordpresscom/;title=Bus+Full+of+Hippies+for+Wordpress.com"><img src="http://sunburntkamel.wordpress.com/files/2006/11/newsvine.gif" alt="seed the vine" /></a> :: <a href="http://tailrank.com/share/?text=&amp;link_href=http://sunburntkamel.archgfx.net/2007/01/04/bus-full-of-hippies-for-wordpresscom/&amp;title=Bus+Full+of+Hippies+for+Wordpress.com" title="TailRank"><img src="http://sunburntkamel.wordpress.com/files/2006/11/tailrank.gif" alt="TailRank" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://archgfx.net/blog/2007/geek/blogging/bus-full-of-hippies-for-wordpresscom/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Custom CSS</title>
		<link>http://archgfx.net/blog/2006/geek/blogging/custom-css</link>
		<comments>http://archgfx.net/blog/2006/geek/blogging/custom-css#comments</comments>
		<pubDate>Sun, 31 Dec 2006 04:10:06 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[blogging]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Sandbox]]></category>
		<category><![CDATA[templates]]></category>

		<guid isPermaLink="false">http://archgfx.net/blog/2006/asides/custom-css</guid>
		<description><![CDATA[i'm a sucker for a sale (half assed as it is). It just feels odd to be hawking custom CSS templates, and be still using the standard templates on my own blog. I suppose then, it's also odd to start off with someone else's design, but i do really love not (that) ugly's work. I'm [...]]]></description>
			<content:encoded><![CDATA[<p>i'm a <a href="http://wordpress.com/blog/2006/12/29/css-improvements/" title="$5 off">sucker for a sale</a> (<a href="http://wank.wordpress.com/2006/12/30/keep-the-change/" title="joops">half assed as it is</a>).  It just feels odd to be hawking <a href="http://sunburntkamel.archgfx.net/tag/customCSS" title="Sandbox Skins">custom <acronym title='Cascading Style Sheets'><span class='caps'>CSS</span></acronym> templates</a>, and be still using the standard templates on my own blog.  I suppose then, it's also odd to start off with someone else's design, but i do really love <a href="http://ntuat.wordpress.com/" title="n-(t)-u wp.com skins">not (that) ugly</a>'s work.  I'm working on porting <a href="http://busfullofhippies.johnoxton.co.uk/">another flowery template</a>, which i'll put up here in a few days.</p>
<p style="text-align:center;"><a href="http://sunburntkamel.archgfx.net/2007/01/04/bus-full-of-hippies-for-wordpresscom/" title="Bus Full of Hippies for WordPress.com"><img src="http://www.archgfx.net/blog/wp-content/uploads/2006/12/joshuainkhead.jpg" alt="bus full of hippies" height="145" width="375" /></a></p>
<p><strong>UPDATE:</strong><br />
<a href="http://sunburntkamel.archgfx.net/2007/01/04/bus-full-of-hippies-for-wordpresscom/" title="Bus Full of Hippies for WordPress.com"> the joshuaink.com template is here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://archgfx.net/blog/2006/geek/blogging/custom-css/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>The Thin Line: From Skin To Theme</title>
		<link>http://archgfx.net/blog/2006/geek/blogging/the-thin-line-from-skin-to-theme</link>
		<comments>http://archgfx.net/blog/2006/geek/blogging/the-thin-line-from-skin-to-theme#comments</comments>
		<pubDate>Sun, 19 Nov 2006 01:57:51 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[blogging]]></category>
		<category><![CDATA[2.0]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Sandbox]]></category>
		<category><![CDATA[skins]]></category>
		<category><![CDATA[templates]]></category>
		<category><![CDATA[the-thin-line]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://archgfx.net/blog/2006/asides/the-thin-line-from-skin-to-theme</guid>
		<description><![CDATA[You may have noticed that i really like The Sandbox. Andy suggested a possible path for it to become the default theme, which I think would be an excellent idea. Mainly because writing PHP is not my strong suit. CSS is closer to my skill set. WordPress versions 1.2 and below used a templating system [...]]]></description>
			<content:encoded><![CDATA[<p>You may have noticed that <a href="http://sunburntkamel.wordpress.com/2006/09/11/i-heart-sandbox/" title="i [heart] sandbox">i really like</a> <a href="http://plaintxt.org/themes/sandbox" title="sandbox theme">The Sandbox</a>.  <a href="http://comox.textdrive.com/pipermail/wp-hackers/2006-September/008703.html" title="andy moves on defaultification">Andy suggested</a> a <a href="http://trac.wordpress.org/browser/branches/sandbox" title="the sandbox branch in trac.">possible path</a> for it to become the default theme, which I think would be an excellent idea. Mainly because writing <acronym title='PHP Hypertext Processor'><span class='caps'>PHP</span></acronym> is not my strong suit. <acronym title='Cascading Style Sheets'><span class='caps'>CSS</span></acronym> is closer to my skill set.</p>
<p>WordPress versions 1.2 and below used a templating system like the one andy proposed. The problem was, the classic theme had limitations. if you wanted to remove the sidebar on post pages, as kubrick does, you were out of luck. The Sandbox would <a href="http://andy.wordpress.com/2006/07/20/generated-semantic-classes-2/#more-88" title="how semantic classes help">fix that</a>. The other development that helps make templating viable again was introduced in wordpress 2.0. Since 2.0 was introduced, wordpress loads functions.php of the current theme, if it exists. this means that a theme could use only <code>style.css</code> and <code>functions.php</code>, and have an enormous level of control.</p>
<h3>Changes to The Sandbox</h3>
<p>it's been a while since andy added the sandbox branch, but it doesn't seem to be making progress. so, while i can't implement status: hidden, i can make a workable version of The Sandbox to test The Thin Line on.</p>
<p>It's been stripped of it's skins panel (as well as the skins subfolder), had the default skin set to <em>none</em>, and had status: hidden added to the theme information.  I also moved <code>wp_footer();</code> inside the <code>#footer</code> div, <strike>for even greater semantic justice</strike> so that information added to the footer can be styled more easily (scroll to the end).</p>
<h3>Changes to The Thin Line</h3>
<p>when i said that Themes could be built on <code>style.css</code> and <code>functions.php</code>, that's only partly true. you could build a theme that way that only inserted a footer credit, and applied javascript to the head of the theme. to add an options panel, you'll probably want to use theundersigned's <a href="http://theundersigned.net/2006/06/wordpress-how-to-theme-options/" title="wordpress theme options howto">tutorial</a>, or ozh's <a href="http://frenchfragfactory.net/ozh/my-projects/wordpress-theme-toolkit-admin-menu/" title="the original">theme toolkit</a>. I'm using theundersigned's tutorial, mainly because the <acronym title='PHP Hypertext Processor'><span class='caps'>PHP</span></acronym> is simple enough for me to get the gist of what's going on. Ozh's toolkit does more, but requires me to take more on faith, and has previously caused problems on the theme viewer and wordpress.com.</p>
<p>The first step to gluing The Thin Line to The Sandbox is this:</p>
<pre>/*

<code>

Theme Name: The Thin Line

Theme URI: http://archgfx.net.net/blog/index.php/themes/the-thin-line

Version: 0.7

Description: Hand on mouth, the game goes on

Author: Sunburntkamel

Author URI: http://archgfx.net/blog/index.php/about/

Template: Sandbox

</code>

*/</pre>
<p>That's my entire <code>style.css</code>. it doesn't need to have anything else. I'll be using style.php for all the style information. The important part is the last line, which tells wordpress to use the template files (<code>index.php</code>, <code>single.php</code>, etc) from 'sandbox' to handle the content.  <code>Style.php</code> will be loaded on top of the existing sandbox <acronym title='Cascading Style Sheets'><span class='caps'>CSS</span></acronym>, which is why we set the sandbox skin to 'none'.</p>
<h3>Layouts</h3>
<p>I was going to re-use the sandbox' "skins" submenu at first, but that would require digging into the function, and renaming all the variables to use theundersigned's <code>$shortname</code> converntion, and including it in the thin line, rather than the sandbox. That requires redistributing more code, which isn't my goal. so i used theundersigned's tutorial to make a dropdown list.</p>
<p>corrosponding to the dropdown list is this section of style.php, which performs roughly the same task as the skins page:</p>
<pre>&lt;<code>?php if ($thethinline_layout_style = "3c-b") { ?&gt;

@import url('skins/3c-b.css');

&lt;?php } else if ($thethinline_layout_style = "3c-l") { ?&gt;

@import url('skins/3c-l.css');

&lt;?php } else if ($thethinline_layout_style = "3c-r") { ?&gt;

@import url('skins/3c-r.css');

&lt;?php } else if ($thethinline_layout_style = "2c-l") { ?&gt;

@import url('skins/2c-l.css');

&lt;?php } else if ($thethinline_layout_style = "2c-r") { ?&gt;

@import url('skins/2c-r.css');

&lt;?php } else { /* 1c-r */ ?&gt;

@import url('skins/1c-b.css');

&lt;?php } ?</code>&gt;</pre>
<p>after that, style.php is just the remainder of the original thethinline.css. The advantage of styling in a <acronym title='PHP Hypertext Processor'><span class='caps'>PHP</span></acronym> fileis that you can use variables, wordpress conditionals, and other assorted tricks.</p>
<h3>Functions.<acronym title='PHP Hypertext Processor'><span class='caps'>PHP</span></acronym></h3>
<p>Adding functionality to The Thin Line via functions.php is a little more like writing a plugin than like writing a theme. I'm using add_action(); hooks to add to both the header and footer of the theme. I could also add and remove widgets, although i don't need to mess with the basic widget formatting, because that's handled by functions.php in The Sandbox. Theundersigned's tutorial needs a minor correction first, though. at the end of functions.php, I changed <code>&lt;?php bloginfo('template_directory'); ?&gt;</code> to <code>&lt;?php bloginfo('stylesheet_directory'); ?&gt;</code>. For most themes, those hooks point to the same file.  This is the first time the difference matters to a theme.</p>
<p><a href="https://sunburntkamel.wordpress.com/files/2006/11/footer.jpg" title="Updated Footer"><img src="https://sunburntkamel.wordpress.com/files/2006/11/footer.jpg" alt="Updated Footer" /></a></p>
<p>This is the new footer for The Thin Line.  I added an image and link to The Thin Line homepage, as well as a section for users to add their own copyright notice/pithy slogan/whathaveyou (another trick i stole from scott).  This is purely <acronym title='PHP Hypertext Processor'><span class='caps'>PHP</span></acronym>, but it's not scary.  Just make the end of theundersigned's <code>functions.php</code> look like this:</p>
<pre>
f<code>unction mytheme_wp_footer() {/* Places credit link in the footer */ ?&gt;

&lt;span id="skin-link"&gt;

&lt;a href="http://archgfx.net/blog/index.php/themes/the-thin-line" title="Theme by SunBurntKamel"&gt;

&lt;img src="&lt;?php bloginfo('stylesheet_directory'); ?&gt;/thethinline/ttlogo.jpg" alt="The Thin Line" title="The Thin Line" /&gt;&lt;/a&gt;&lt;/span&gt; &lt;br /&gt;

&lt;p class="annotation"&gt;&lt;small&gt;&lt;?php echo $thethinline_footer_text ?&gt;&lt;/small&gt;&lt;/p&gt;&lt;?php }

add_action('wp_head', 'mytheme_wp_head');

add_action('admin_menu', 'mytheme_add_admin');

add_action('wp_footer', 'mytheme_wp_footer');

?</code>&gt;</pre>
<p>That's actually probably easier than creditting yourself in footer.php  I could (and may possibly) also use this function to add, say, <a href="http://www.mikeindustries.com/blog/archive/2004/12/sifr-2.0-release-candidate-3" title="Scalable Inline Flash Replacement">siFR</a> to the theme as well.  Someone who didn't ph34r javascript the way i do might add <a href="http://binarybonsai.com/archives/2004/09/25/livesearch/" title="kubrick's livesearch">livesearch</a> to a sandbox based theme.</p>
<h3>The End</h3>
<p>My point in writing all of this is to show that the idea of writing a new theme every time is <a href="http://sunburntkamel.archgfx.net/2006/09/21/themes-vs-skins/" title="themes vs. skins">overkill</a>. Template files themselves don't vary a lot. Most of the functionality and variation happens in javascript and <acronym title='Cascading Style Sheets'><span class='caps'>CSS</span></acronym>. those can both be handled by only a couple of files. If theme authors could depend on the sandbox being in every wordpress distribution, It would make it easier for them, as well as for casual users who just want to change something small about a theme. It's a lot easier to find the thing to change when there are only 3 files in the Theme Editor panel of the dashboard.</p>
<p><img src="https://sunburntkamel.wordpress.com/files/2006/11/folder.jpg" alt="theme contents" /></p>
<p>I was going to include The Thin Line with this, but i'm having a little difficulty making everything style the way it was before, and some of the variables i've created with theundersigned's tutorial aren't properly sticking, despite showing up correctly in my database.</p>
<h3>Bookmark This:</h3>
<p><a href="http://del.icio.us/post?url=http://sunburntkamel.archgfx.net/2006/11/18/the-thin-line-from-skin-to-theme/;title=From+Skin+to+Theme"><img src="http://sunburntkamel.wordpress.com/files/2006/11/delicious.gif" alt="add to del.icio.us" /></a> :: <a href="http://digg.com/submit?phase=2&amp;url=http://sunburntkamel.archgfx.net/2006/11/18/the-thin-line-from-skin-to-theme/"><img src="http://sunburntkamel.wordpress.com/files/2006/11/digg.gif" alt="Digg it" /></a> :: <a href="http://ma.gnolia.com/bookmarklet/add?url=http://sunburntkamel.archgfx.net/2006/11/18/the-thin-line-from-skin-to-theme/;title=From+Skin+to+Theme"><img src="http://sunburntkamel.wordpress.com/files/2006/11/magnolia.gif" alt="add to ma.gnolia" /></a> :: <a href="http://www.stumbleupon.com/submit?url=http://sunburntkamel.archgfx.net/2006/11/18/the-thin-line-from-skin-to-theme/;title=From+Skin+to+Theme"><img src="http://sunburntkamel.wordpress.com/files/2006/11/stumbleit.gif" alt="Stumble It!" /></a> :: <a href="http://www.newsvine.com/_tools/seed&amp;save?url=http://sunburntkamel.archgfx.net/2006/11/18/the-thin-line-from-skin-to-theme/;title=From+Skin+to+Theme"><img src="http://sunburntkamel.wordpress.com/files/2006/11/newsvine.gif" alt="seed the vine" /></a> :: <a href="http://tailrank.com/share/?text=&amp;link_href=http://sunburntkamel.archgfx.net/2006/11/18/the-thin-line-from-skin-to-theme/&amp;title=From+Skin+to+Theme" title="TailRank"><img src="http://sunburntkamel.wordpress.com/files/2006/11/tailrank.gif" alt="TailRank"/></a></p>
]]></content:encoded>
			<wfw:commentRss>http://archgfx.net/blog/2006/geek/blogging/the-thin-line-from-skin-to-theme/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

