<?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>Clayton McIlrath &#187; web 2.0</title>
	<atom:link href="http://thinkclay.com/tag/web-20/feed" rel="self" type="application/rss+xml" />
	<link>http://thinkclay.com</link>
	<description>Creative Media Design, Powered by Wordpress</description>
	<lastBuildDate>Thu, 29 Jul 2010 18:35:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>What Makes You Stand Out</title>
		<link>http://thinkclay.com/technology/what-makes-you-stand-out</link>
		<comments>http://thinkclay.com/technology/what-makes-you-stand-out#comments</comments>
		<pubDate>Tue, 14 Apr 2009 05:44:26 +0000</pubDate>
		<dc:creator>Clay McIlrath</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[developer tools]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[freelance]]></category>
		<category><![CDATA[front-end]]></category>
		<category><![CDATA[goals]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[JS]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[web 2.0]]></category>
		<guid isPermaLink="false">http://thinkclay.com/?p=843</guid>
		<description><![CDATA[<a rel="shadowbox[post-843];player=img;" href="http://thinkclay.com/technology/what-makes-you-stand-out"><img width="300" height="200" class="alignleft" title="What makes YOU stand out" alt="An image of Waldo from Where's Waldo" src="http://thinkclay.com/wp-content/uploads/2009/04/waldo.jpg"/></a>Combining a poor economy with an ever changing web makes it challenging to stay on the cutting edge. With multiple web languages, platforms, and techniques it’s important to dedicate your time to being versatile and flexible while not wasting time learning skills that you won’t use. In the past 2 years I have learned and mastered many tools and techniques, and I’m here to share what has been valuable and where you can trim the fat from your day.]]></description>
			<content:encoded><![CDATA[<p><a href="http://thinkclay.com/wp-content/uploads/2009/04/waldo.jpg"><img class="alignleft" src="http://thinkclay.com/wp-content/uploads/2009/04/waldo.jpg" alt="An image of Waldo from Where&#039;s Waldo" title="What makes YOU stand out" width="300" height="200" class="size-full wp-image-844" /></a>Combining a poor global state of economic growth with an always changing web, makes a challenging formula for staying on the cutting edge and being successful in the web industry. With multiple web languages, platforms, and techniques it&#8217;s important to dedicate your time to being versatile and flexible while not wasting time learning skills that you won&#8217;t use. In the past 2 years I have learned and mastered many tools and techniques, and I&#8217;m here to share what has been valuable and where you can trim the fat from your day.</p>
<h2>Find your strengths and excel above the rest</h2>
<p>So many web developers claim to know all when it comes to web, but when put to the test someone that can write &#8220;hello world&#8221; doesn&#8217;t meet the standards the client expected when they said &#8220;Do you know PHP?&#8221; All developers whether primarily front-end or back-end, should know at least a C level amount in both. To be an awesome back-end developer you need to be able to structure your content in something other than tables or invalid HTML, and to be an awesome back-end developer, you should at least know how to make simple variables and includes to make your job quick and efficient, rather than copying/pasting your doctype and head information on each page. If you want to do well in the next few years, then succeed by being a GURU in at least two of the following: </p>
<ul>
<li><strong>XHTML and CSS</strong> &#8211; with clean and valid markup that works in FF, Webkit, and IE7+</li>
<li><strong>Flex and ActionScript</strong> &#8211; flash/animation/design are a huge plus</li>
<li><strong>JavaScript</strong> &#8211; with and without frameworks, jQuery or MooTools knowledge a plus</li>
<li><strong>PHP</strong> &#8211; cakePHP or codeignitor frameworks will take you to the next level</li>
<li><strong>.NET</strong> &#8211; IIS and server administration a plus</li>
<li><strong>Ruby</strong> &#8211; Rails will take you to the next level</li>
<li><strong>JAVA</strong> &#8211; desktop publishing knowledge a plus</li>
</ul>
<h2>Learn new and trendy technologies</h2>
<p>While following trends isn&#8217;t always a good idea, trends that have been around for more than just a year and have high demand are usually worth taking a second glance at. In the past 5 years, there are a few major trends that are really growing. I highly recommend picking one of the trends and learning as much as you can about the technology on the side of your current studies and work..</p>
<h3>Rich Internet Applications (RIA)</h3>
<p>Adobe Flash has always had a strong presence on the web, and that presence is only increasing along with other RIA platforms like Microsoft Silverlight, JavaFX, and the future HTML5. There are almost no major disadvantages to sites built entirely in Flash or other platforms now that search engines like Google are making more of an effort to index RIA content. To top that, Adobe has now adopted a markup language geared more towards developers called FLEX. Flex allows developers to markup their code in MXML while also using ActionScript for animation and then simply, with the click of a button plublish the application in either a SWF for web or as an AIR application for desktop. I strongly believe this is the future of not only the web, but future Operating Systems as well. Google and Ubuntu have already shown a heavy interest in using web applications on the desktop, and phone operating systems are following a similar pattern. While mobile and desktop development are entirely different from web development, learning FLEX is a great way for web developers to cross that threshold and succeed.</p>
<h3>Agile Development and Object Oriented code</h3>
<p>As the internet reaches the far corners of the Earth, boundaries and barriers are being broken for working remotely on projects. In fact there are many businesses that operate entirely on remote collaboration. This means you need to learn a versioning software and systems (CVS or SVN using Tortoise is a good place to start), how to organize your thoughts and communicate them quickly and effectively over IM or email, and most importantly how to comment and structure your code (for programmers OO principles are a must) so that others can quickly pickup where you left off.</p>
<h3>Web Services and Cross-Platform Markup</h3>
<p>UML, XML, JSON, REST and SOAP, just to name the most common languages, are becoming a must for nearly every developer. Almost every RIA and API use a language like this to communicate. Any site that is dynamic is probably using at least one of these technologies. I can&#8217;t specifically tell you which is more relevant or popular, as it varies per project, but I can tell you that they&#8217;re all fairly simple to learn, so I suggest doing your homework or ready a book on each to know at least base knowledge and markup for each of them.</p>
<h2>Refine your Interpersonal Communication Skills</h2>
<p>As you climb the corporate ladder, or step out into the world of business, it will become more and more important that your written and verbal communication skills are sharp and effective. The gap that used to exist between sales/consulting/design/IT is now closing, and more businesses are switching to an Agile model. This means from the start of a project or team, you may be communicating directly with a client, or with others that don&#8217;t know or understand the technology. You&#8217;ll need to learn how to explain things so that others can easily understand and relate, as well as sound professional and well educated. These skills are not easy to hone, and require a lot of time. I highly recommend actively getting involved in forums/blogging to improve written communication, perhaps join a local business group or Chamber of Commerce to learn how to communicate better in a professional business setting (another perk to this is the networking), and ask others to correct and help you identify bad habits and mistakes.</p>
]]></content:encoded>
			<wfw:commentRss>http://thinkclay.com/technology/what-makes-you-stand-out/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Learn Custom Fields in WordPress</title>
		<link>http://thinkclay.com/technology/learn-custom-fields-wordpress</link>
		<comments>http://thinkclay.com/technology/learn-custom-fields-wordpress#comments</comments>
		<pubDate>Fri, 20 Mar 2009 23:08:23 +0000</pubDate>
		<dc:creator>Clay McIlrath</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[automate]]></category>
		<category><![CDATA[developer tools]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[resources]]></category>
		<category><![CDATA[web 2.0]]></category>
		<guid isPermaLink="false">http://thinkclay.com/?p=777</guid>
		<description><![CDATA[<a href="http://thinkclay.com/wp-content/uploads/2009/03/custom-fields.gif"><img class="alignleft" src="http://thinkclay.com/wp-content/uploads/2009/03/custom-fields.gif" alt="custom fields" title="custom fields in Wordpress" width="300" height="200" class="size-full wp-image-788" /></a>Wordpress is jam-packed with some great features out of the box, and has been developed to make customization simple. However, Wordpress started out as a blogging CMS, and still has a way to go before some features are one-click or drag-n-drop easy. One such feature, <strong>custom fields</strong>, are a powerful and great tool to make your WP theme a little more creative. However, to take advantage of custom fields, you’ll need to get dirty with the code.]]></description>
			<content:encoded><![CDATA[<p><a href="http://thinkclay.com/wp-content/uploads/2009/03/custom-fields.gif"><img class="alignleft" src="http://thinkclay.com/wp-content/uploads/2009/03/custom-fields.gif" alt="custom fields" title="custom fields in WordPress" width="300" height="200" class="size-full wp-image-788" /></a>WordPress is jam-packed with some great features out of the box, and has been developed to make customization simple. However, WordPress started out as a blogging CMS, and still has a way to go before some features are one-click or drag-n-drop easy. One such feature, <strong>custom fields</strong>, are a powerful and great tool to make your WP theme a little more creative. However, to take advantage of custom fields, you’ll need to get dirty with the code.</p>
<h2>What are Custom Fields?</h2>
<p>Custom fields are a predefined function within the WP system. All you have to do is pass a parameter to the function to receive data back. Though there is great <a title="Documentation on Custom Fields Function" href="http://codex.wordpress.org/Using_Custom_Fields" target="_blank">documentation for custom fields</a> in the WordPress Codex, to a new coder, this documentation can be overwhelming. Instead, let&#8217;s breakdown and look at a very specific piece of the function..</p>
<p>So hypothetically, let&#8217;s say you want a thumbnail in the beginning each post on your homepage (take a look at <a href="http://thinkclay.com">my homepage</a> to see the layout I&#8217;m referring to). Thumbnails and images are important for blogs to break up the content and add visual appeal. For quite a while I&#8217;ve been going into each of my posts, uploading an image and floating it left, and then taking that image and intro text and putting it into the excerpt box. This method, while functional, is a three step process that slows down my blogging time. So to speed up the process I can use custom fields and the RSS limit function to display the same results automatically without having to do it manually each time.</p>
<p>In my blog post, I create a new custom field called &#8220;imagethumb&#8221;. After defining the imagethumb &#8220;key&#8221; once, I can then use that custom field on each blog post by selecting it from the dropdown field, and all I have to do is specify a value (location) of the image. So the custom field should display as:</p>
<blockquote><p>Name: imagethumb<br />
Value: http://yourimage.url</p></blockquote>
<p>Then I need to edit my index.php file and add the thumbnail to the post loop and set two modes for posts with or without images.</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?</span>
<span style="color: #666666; font-style: italic;">// Start the post loop</span>
<span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;div class=&quot;date&quot;&gt;
  &lt;span class=&quot;day&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?</span> the_time<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'j'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/span&gt;
  &lt;span class=&quot;month&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?</span> the_time<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'M'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/span&gt;
  &lt;span class=&quot;year&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?</span> the_time<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: #000000; font-weight: bold;">?&gt;</span>&lt;/span&gt;
&lt;/div&gt;
&nbsp;
&lt;h1&gt;Title Goes Here&lt;/h1&gt;
&nbsp;
&lt;p class=&quot;postmetadata&quot;&gt;
  <span style="color: #000000; font-weight: bold;">&lt;?</span> the_tags<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Tags: '</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">', '</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'&lt;br /&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
  Posted in <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_category<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">', '</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> |
  <span style="color: #000000; font-weight: bold;">&lt;?</span> edit_post_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Edit'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">' | '</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
  <span style="color: #000000; font-weight: bold;">&lt;?</span> comments_popup_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'No Comments;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'1 Comment'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'% Comments'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/p&gt;
&nbsp;
&lt;div class=&quot;entry&quot;&gt;
<span style="color: #000000; font-weight: bold;">&lt;?</span>
<span style="color: #666666; font-style: italic;">// Get custom field by passing the parameter to get_post_custom_values() function</span>
<span style="color: #000088;">$values</span> <span style="color: #339933;">=</span> get_post_custom_values<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;image&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// If custom field is set, format the image with the content</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$values</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
  &lt;img class=&quot;alignleft&quot; src=&quot;<span style="color: #000000; font-weight: bold;">&lt;?</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'url'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/<span style="color: #000000; font-weight: bold;">&lt;?=</span><span style="color: #000088;">$values</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; /&gt;
  &lt;p class=&quot;alignleft&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?</span> the_content_rss<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">TRUE</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">100</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/p&gt;
<span style="color: #000000; font-weight: bold;">&lt;?</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// if not set, pull in the excerpt instead</span>
<span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
  &lt;p&gt;<span style="color: #000000; font-weight: bold;">&lt;?</span> the_excerpt<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/p&gt;
<span style="color: #000000; font-weight: bold;">&lt;?</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// end loop</span>
<span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>
<p>You can go one step further in the automation process and use a cropping script to automatically crop the image to the desired size. All you&#8217;ll need is <a href="http://timthumb.googlecode.com/svn/trunk/timthumb.php">timthumb</a> and to set the parameters you want on the image</p>
<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">Parameters
----------------------
w: width
h: height
zc: zoom crop (0 or 1)
q: quality (default is 75 and max is 100)
&nbsp;
example:
&lt;img src=&quot;&lt;? bloginfo('url'); ?&gt;/timthumb.php?src=&lt;?=$values[0];?&gt;&amp;w=300&amp;h=200&amp;zc=1&quot; /&gt;</pre></div></div>
]]></content:encoded>
			<wfw:commentRss>http://thinkclay.com/technology/learn-custom-fields-wordpress/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Automate to save time and money!</title>
		<link>http://thinkclay.com/technology/automate-to-save-time-and-money</link>
		<comments>http://thinkclay.com/technology/automate-to-save-time-and-money#comments</comments>
		<pubDate>Wed, 13 Aug 2008 19:41:56 +0000</pubDate>
		<dc:creator>Clay McIlrath</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[automate]]></category>
		<category><![CDATA[best practices]]></category>
		<category><![CDATA[freelance]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[JS]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[web 2.0]]></category>
		<guid isPermaLink="false">http://www.new-age-design.com/?p=14</guid>
		<description><![CDATA[The guys over at Chosen Creative have given us yet another awesome way to make are lives easier! This script generates a list of all files in a directory using a PHP function to read the directory files starting with the underscore _ character, and then it outputs them into a JQuery styled accordion menu! [...]]]></description>
			<content:encoded><![CDATA[<p>The guys over at <a title="Chosen Creative Advertising" href="http://chosencreative.com">Chosen Creative</a> have given us yet another awesome way to make are lives easier! This script generates a list of all files in a directory using a PHP function to read the directory files starting with the underscore _ character, and then it outputs them into a JQuery styled accordion menu!</p>
<p><strong>Here&#8217;s the JQ </strong></p>
<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;li.child:visible&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;li.parent&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">children</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hasClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;selected&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">children</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'selected'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">next</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">toggle</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;slow&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
		<span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
			$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">children</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'selected'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">next</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">load</span><span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">children</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;href&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">toggle</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;medium&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>
<p><strong>Here&#8217;s the PHP</strong></p>
<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$handle</span> <span style="color: #339933;">=</span> <span style="color: #990000;">opendir</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'./'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">false</span> <span style="color: #339933;">!==</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$file</span> <span style="color: #339933;">=</span> <span style="color: #990000;">readdir</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$handle</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">preg_match</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/^\_/&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$file</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
		<span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$filename</span> <span style="color: #339933;">=</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/\_/'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">' '</span><span style="color: #339933;">,</span> <span style="color: #000088;">$file</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;
	&lt;li class=&quot;</span>\<span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span>parent\<span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span><span style="color: #0000ff;">&quot;&gt;&lt;a href=&quot;</span>\<span style="color: #0000ff;">&quot;&gt;&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$filename</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&lt;/a&gt;&lt;/li&gt;
<span style="color: #000099; font-weight: bold;">\n</span>
	&lt;li class=&quot;</span>\<span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span>child\<span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span><span style="color: #0000ff;">&quot;&gt;&lt;/li&gt;
&quot;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #990000;">closedir</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$handle</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>
]]></content:encoded>
			<wfw:commentRss>http://thinkclay.com/technology/automate-to-save-time-and-money/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
