<?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>macouno.com</title>
	<atom:link href="http://www.macouno.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.macouno.com</link>
	<description>The shenanigans of Dolf J. Veenvliet</description>
	<lastBuildDate>Tue, 20 Jul 2010 13:10:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Durian Project screening</title>
		<link>http://www.macouno.com/2010/07/20/durian-project-screening/</link>
		<comments>http://www.macouno.com/2010/07/20/durian-project-screening/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 13:09:20 +0000</pubDate>
		<dc:creator>Dolf Veenvliet</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[Blender]]></category>
		<category><![CDATA[Durian]]></category>

		<guid isPermaLink="false">http://www.macouno.com/?p=857</guid>
		<description><![CDATA[Last sunday was the private screening of Sintel (also known as the Blender Institute&#8217;s Project Durian). After being involved in the project for the last 5 months it was simply epic to view the nearly finished film on the big screen with full surround sound. Sadly, today, half the team is getting on a plane [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.macouno.com/wp-content/uploads/2010/07/05.2b_comp0065.png"><img class="alignright size-thumbnail wp-image-859" title="05.2b_comp0065" src="http://www.macouno.com/wp-content/uploads/2010/07/05.2b_comp0065-100x42.png" alt="" width="100" height="42" /></a>Last sunday was <a href="http://durian.blender.org/news/sintel-pre-premiere/">the private screening</a> of Sintel (also known as the Blender Institute&#8217;s <a href="http://durian.blender.org/">Project Durian</a>). After being involved in the project for the last 5 months it was simply epic to view the nearly finished film on the big screen with full surround sound. Sadly, today, half the team is getting on a plane home. And as for myself&#8230; I will help wrap up a few last things, and perhaps create a tutorial or two to conclude my own involvement for now. The project has been life changing, the crew will be missed dearly. On to the next adventure! I hope to see you all there!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.macouno.com/2010/07/20/durian-project-screening/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Support my work</title>
		<link>http://www.macouno.com/2010/06/04/support-my-work/</link>
		<comments>http://www.macouno.com/2010/06/04/support-my-work/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 23:06:44 +0000</pubDate>
		<dc:creator>Dolf Veenvliet</dc:creator>
				<category><![CDATA[Support my work]]></category>

		<guid isPermaLink="false">http://www.macouno.com/?p=814</guid>
		<description><![CDATA[All the works published on this website are free for anyone to download and use. But of course I also have to make a living. This sometimes means spending less time on free/open projects, and things I can share with the world.
Here&#8217;s a few ways you can help me worry less about money, and spend [...]]]></description>
			<content:encoded><![CDATA[<p>All the works published on this website are free for anyone to download and use. But of course I also have to make a living. This sometimes means spending less time on free/open projects, and things I can share with the world.</p>
<p><strong>Here&#8217;s a few ways you can help me worry less about money, and spend more time making things to share.</strong></p>
<h3>Buy a print</h3>
<table border="0" cellspacing="0" cellpadding="10">
<tbody>
<tr>
<td><a href="http://www.macouno.com/wp-content/uploads/2010/06/tidal-print.jpg"><img class="alignleft size-thumbnail wp-image-836" title="Tidal" src="http://www.macouno.com/wp-content/uploads/2010/06/tidal-print-100x75.jpg" alt="" width="100" height="75" /></a><a href="http://www.chiefsandspirits.nl/" target="_self">The Chiefs and spirits gallery</a> in the Hague has several limited issue prints in their collection. Visit them to have a look, and get more information.</td>
</tr>
</tbody>
</table>
<hr />
<h3>Buy a T-shirt</h3>
<table border="0" cellspacing="0" cellpadding="10">
<tbody>
<tr>
<td><a href="http://www.cafepress.com/forthebins"><img class="alignnone size-thumbnail wp-image-826" title="Tidal" src="http://www.macouno.com/wp-content/uploads/2010/06/tidal-tshirt-100x100.jpg" alt="" width="100" height="100" /></a></td>
<td><a href="http://www.cafepress.com/blenderboy"><img class="alignnone size-thumbnail wp-image-828" title="blenderboy" src="http://www.macouno.com/wp-content/uploads/2010/06/blenderboy-tshirt-100x100.jpg" alt="" width="100" height="100" /></a></td>
</tr>
</tbody>
</table>
<hr />
<h3>Donate</h3>
<table border="0" cellspacing="0" cellpadding="10">
<tbody>
<tr>
<td>
<form style="text-align: left;" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input name="cmd" type="hidden" value="_s-xclick" />
<input name="hosted_button_id" type="hidden" value="4EPMSK2ELWR62" />
<input alt="PayPal - The safer, easier way to pay online!" name="submit" src="https://www.paypal.com/en_US/NL/i/btn/btn_donateCC_LG.gif" type="image" /> <img src="https://www.paypal.com/nl_NL/i/scr/pixel.gif" border="0" alt="" width="1" height="1" /><br />
</form>
</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.macouno.com/2010/06/04/support-my-work/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Who I am</title>
		<link>http://www.macouno.com/2010/06/03/who-i-am/</link>
		<comments>http://www.macouno.com/2010/06/03/who-i-am/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 21:47:24 +0000</pubDate>
		<dc:creator>Dolf Veenvliet</dc:creator>
				<category><![CDATA[About me]]></category>

		<guid isPermaLink="false">http://www.macouno.com/?p=822</guid>
		<description><![CDATA[At 25 I stumbled upon an environment where I could create my own world. Whilst during my studies I was bound by the physical, I found that using free 3D software on the computer I could create my own realm with my rules. In this world I am completely free to tell the stories I [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.macouno.com/wp-content/uploads/2010/03/scheveningen.jpg"><img class="alignright size-thumbnail wp-image-43" title="scheveningen" src="http://www.macouno.com/wp-content/uploads/2010/03/scheveningen-75x100.jpg" alt="" width="75" height="100" /></a>At 25 I stumbled upon an environment where I could create my own world. Whilst during my studies I was bound by the physical, I found that using free 3D software on the computer I could create my own realm with my rules. In this world I am completely free to tell the stories I want in the way I envision. This freedom afforded to me by the tools of my trade translates to my definition of art.</p>
<p>The product of my labour comes in many forms, each telling its story in its own way. It is this diversity in which I thrive. I&#8217;ve worked on still images as much as moving pictures. Within the bounds of the digital domain and reaching out.</p>
<p>I enjoy creating my own work equally to cooperating with fellow artists. Beyond the sharing of ideas, and teaching I also share the results of my labour. Most though not all of my creations are available for other artists to use in their projects.</p>
<p>I studied at the <a title="KABK" href="http://www.kabk.nl" target="_blank">KABK</a>, <a title="Kunstakademiet i Trondheim" href="http://www.kit.ntnu.no" target="_blank">Kunstakademiet i Trondheim</a>, <a title="AKI" href="http://www.aki.nl" target="_blank">AKI</a>, and got my degree as a ‘Monumental Artist’ in 1999. I also have several degrees in audio technique, am a certified <a href="http://www.macouno.com/education/">Blender 3D educator</a>, &amp; <a title="W3C" href="http://www.w3.org/" target="_blank">W3C</a> certified web developer. Nearly all designs I make are released under the: <a href="http://creativecommons.org/licenses/by/3.0/" target="_blank">creative commons attribution 3.0 license</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.macouno.com/2010/06/03/who-i-am/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making a category based menu with posts in wordpress 2.9.2</title>
		<link>http://www.macouno.com/2010/05/23/making-a-category-based-menu-with-posts-in-wordpress-2-9-2/</link>
		<comments>http://www.macouno.com/2010/05/23/making-a-category-based-menu-with-posts-in-wordpress-2-9-2/#comments</comments>
		<pubDate>Sun, 23 May 2010 09:07:32 +0000</pubDate>
		<dc:creator>Dolf Veenvliet</dc:creator>
				<category><![CDATA[Web development]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Php]]></category>

		<guid isPermaLink="false">http://www.macouno.com/?p=800</guid>
		<description><![CDATA[I was not entirely happy with the way wordpress handles menus for this (my own) website. I like the idea of making all the content posts so they&#8217;re bound to a date and such. Then I&#8217;d like to see them in the menu based on the category they&#8217;re in. There are category menus, and even [...]]]></description>
			<content:encoded><![CDATA[<p>I was not entirely happy with the way wordpress handles menus for this (my own) website. I like the idea of making all the content posts so they&#8217;re bound to a date and such. Then I&#8217;d like to see them in the menu based on the category they&#8217;re in. There are category menus, and even nice folding ones, but I couldn&#8217;t find one that displays all the posts per category in a nice way.</p>
<p>So I decided to hack one in myself. It&#8217;s a very nasty hack&#8230; and I just put a bunch of code in the sidebar.php of my template. But that said&#8230; it works and I now have a menu that does what I want.</p>
<p><strong>If you&#8217;d like to use this&#8230; just remember it&#8217;s a great big bad hack and very inefficient!</strong></p>
<p>Here&#8217;s the html/php code I added to my template&#8217;s sidebar.php:</p>
<div class="code"><pre class="php"><ol><li class="li1"><div class="de1"><span class="co1">// Get the id of the current post so we can give it a &quot;current&quot; class later.</span></div></li><li class="li1"><div class="de1"><span class="re0">$postid</span> = <span class="re0">$post</span>-&gt;<span class="me1">ID</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1"><span class="co1">// Arguments for getting all the categories</span></div></li><li class="li1"><div class="de1"><span class="re0">$args</span> = <span class="kw3">array</span><span class="br0">&#40;</span></div></li><li class="li1"><div class="de1"><span class="st0">'show_option_all'</span> &nbsp; &nbsp;=&gt; <span class="st0">''</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'orderby'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=&gt; <span class="st0">'name'</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'order'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=&gt; <span class="st0">'ASC'</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'show_last_update'</span> &nbsp; =&gt; <span class="nu0">0</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'style'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=&gt; <span class="st0">'list'</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'show_count'</span> &nbsp; &nbsp; &nbsp; &nbsp; =&gt; <span class="nu0">0</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'hide_empty'</span> &nbsp; &nbsp; &nbsp; &nbsp; =&gt; <span class="nu0">1</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'use_desc_for_title'</span> =&gt; <span class="nu0">0</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'child_of'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =&gt; <span class="nu0">0</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'feed'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =&gt; <span class="st0">''</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'feed_type'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=&gt; <span class="st0">''</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'feed_image'</span> &nbsp; &nbsp; &nbsp; &nbsp; =&gt; <span class="st0">''</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'exclude'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=&gt; <span class="st0">''</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'exclude_tree'</span> &nbsp; &nbsp; &nbsp; =&gt; <span class="st0">''</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'include'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=&gt; <span class="st0">''</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'hierarchical'</span> &nbsp; &nbsp; &nbsp; =&gt; <span class="kw2">true</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'title_li'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =&gt; <span class="st0">''</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'number'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =&gt; <span class="kw2">NULL</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'echo'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =&gt; <span class="nu0">0</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'depth'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=&gt; <span class="nu0">0</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'current_category'</span> &nbsp; =&gt; <span class="nu0">1</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'pad_counts'</span> &nbsp; &nbsp; &nbsp; &nbsp; =&gt; <span class="nu0">0</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'taxonomy'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =&gt; <span class="st0">'category'</span> <span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1"><span class="co1">// Get all categories (in a silly html menu)</span></div></li><li class="li1"><div class="de1"><span class="re0">$catmenu</span> = wp_list_categories<span class="br0">&#40;</span> <span class="re0">$args</span> <span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1"><span class="co1">// Split the menu to get all categories sepparately</span></div></li><li class="li1"><div class="de1"><span class="re0">$cats</span> = <span class="kw3">split</span><span class="br0">&#40;</span><span class="st0">'</span></div></li><li class="li1"><div class="de1"><span class="st0">&lt;li class=&quot;cat-item cat-item-'</span>, <span class="re0">$catmenu</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1"><span class="re0">$catmenu</span> = <span class="st0">''</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1"><span class="co1">// Loop through the categories.</span></div></li><li class="li1"><div class="de1"><span class="kw1">foreach</span><span class="br0">&#40;</span><span class="re0">$cats</span> <span class="kw1">as</span> <span class="re0">$key</span> =&gt; <span class="re0">$cat</span><span class="br0">&#41;</span><span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$current</span> = <span class="st0">''</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// Get the code and html sepparately</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">list</span><span class="br0">&#40;</span><span class="re0">$id</span>, <span class="re0">$code</span><span class="br0">&#41;</span> = <span class="kw3">split</span><span class="br0">&#40;</span><span class="st0">'&quot;&gt;&lt;a'</span>, <span class="re0">$cat</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// Make sure they're there.</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span><span class="br0">&#40;</span><span class="re0">$id</span> &amp;&amp; <span class="re0">$code</span><span class="br0">&#41;</span><span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// If this is the current category, then remove that text and remember for later</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span><span class="br0">&#40;</span><span class="kw3">strpos</span><span class="br0">&#40;</span><span class="re0">$id</span>, <span class="st0">' current-cat'</span><span class="br0">&#41;</span> !== <span class="kw2">False</span><span class="br0">&#41;</span><span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$current</span> = <span class="st0">' current-cat'</span>;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$id</span> = <span class="kw3">str_replace</span><span class="br0">&#40;</span><span class="st0">' current-cat'</span>, <span class="st0">''</span>, <span class="re0">$id</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// In case we got an id... and this category doesn't have sub categories.</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span><span class="br0">&#40;</span><span class="kw3">is_numeric</span><span class="br0">&#40;</span><span class="re0">$id</span><span class="br0">&#41;</span> &amp;&amp; <span class="kw3">strpos</span><span class="br0">&#40;</span><span class="re0">$code</span>, <span class="st0">&quot;</span></div></li><li class="li1"><div class="de1"><span class="st0">&lt;ul class='children'&gt;&quot;</span><span class="br0">&#41;</span> === <span class="kw2">False</span><span class="br0">&#41;</span><span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// Arguments for getting the categorie's posts</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$args</span> = <span class="kw3">array</span><span class="br0">&#40;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">'post_type'</span> =&gt; <span class="st0">'post'</span>,</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">'post_status'</span> =&gt; <span class="st0">'published'</span>,</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">'numberposts'</span> =&gt; <span class="nu0">-1</span>,</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">'category'</span> =&gt; <span class="re0">$id</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#41;</span>; </div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// Get the posts</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="re0">$myposts</span> = get_posts<span class="br0">&#40;</span><span class="re0">$args</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="co1">// If we got any posts returned</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="kw1">if</span><span class="br0">&#40;</span><span class="kw3">count</span><span class="br0">&#40;</span><span class="re0">$myposts</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// Start a nice html post list</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$postlist</span> = <span class="st0">&quot;<span class="es0">\n</span>&quot;</span>.<span class="st0">'</span></div></li><li class="li1"><div class="de1"><span class="st0">&lt;ul class=&quot;posts&quot;&gt;'</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// Check east post to see if it's current and add to the html</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="kw1">foreach</span><span class="br0">&#40;</span><span class="re0">$myposts</span> <span class="kw1">as</span> <span class="re0">$post</span><span class="br0">&#41;</span> <span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$current_post</span> = <span class="st0">''</span>;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span><span class="br0">&#40;</span><span class="re0">$postid</span> == <span class="re0">$post</span>-&gt;<span class="me1">ID</span><span class="br0">&#41;</span><span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$current_post</span> = <span class="st0">' class=&quot;current-post&quot;'</span>;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$current</span> = <span class="st0">' current-cat'</span>;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$postlist</span> .= <span class="st0">&quot;<span class="es0">\n</span>&quot;</span>.<span class="st0">'</span></div></li><li class="li1"><div class="de1"><span class="st0">&lt;li'</span>.<span class="re0">$current_post</span>.<span class="st0">'&gt;&lt;a href=&quot;'</span>.get_permalink<span class="br0">&#40;</span><span class="re0">$post</span>-&gt;<span class="me1">ID</span><span class="br0">&#41;</span>.<span class="st0">'&quot;&gt;'</span>.<span class="re0">$post</span>-&gt;<span class="me1">post_title</span>.<span class="st0">'&lt;/a&gt;&lt;/li&gt;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1"><span class="st0">'</span>;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="br0">&#125;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="re0">$postlist</span> .= <span class="st0">&quot;<span class="es0">\n</span>&quot;</span>.<span class="st0">'&lt;/ul&gt;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1"><span class="st0">'</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// Add the post list to the code of the current category</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$code</span> = <span class="kw3">str_replace</span><span class="br0">&#40;</span><span class="st0">'&lt;/a&gt;'</span>, <span class="st0">'&lt;/a&gt;'</span>.<span class="re0">$postlist</span>, <span class="re0">$code</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// Put everything that was split before back together</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$cat</span> = <span class="st0">'</span></div></li><li class="li1"><div class="de1"><span class="st0">&lt;li class=&quot;cat-item cat-item-'</span>.<span class="re0">$id</span>.<span class="re0">$current</span>.<span class="st0">'&quot;&gt;&lt;a'</span>.<span class="re0">$code</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// Add back into the complete category menu</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$catmenu</span> .= <span class="re0">$cat</span>;</div></li><li class="li1"><div class="de1"><span class="br0">&#125;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1"><span class="co1">// Print out the category menu</span></div></li><li class="li1"><div class="de1"><span class="kw3">echo</span> <span class="st0">'</span></div></li><li class="li1"><div class="de1"><span class="st0">&lt;li id=&quot;menu&quot;&gt;</span></div></li><li class="li1"><div class="de1"><span class="st0">&lt;ul&gt;'</span>.<span class="re0">$catmenu</span>.<span class="st0">'&lt;/ul&gt;</span></div></li><li class="li1"><div class="de1"><span class="st0">&lt;/li&gt;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1"><span class="st0">'</span>;</div></li></ol></pre></div><p><a href="javascript: void(0);" class="showpre">Display clean php code for copying</a></p><pre class="php">// Get the id of the current post so we can give it a "current" class later.
$postid = $post->ID;

// Arguments for getting all the categories
$args = array(
'show_option_all'    => '',
'orderby'            => 'name',
'order'              => 'ASC',
'show_last_update'   => 0,
'style'              => 'list',
'show_count'         => 0,
'hide_empty'         => 1,
'use_desc_for_title' => 0,
'child_of'           => 0,
'feed'               => '',
'feed_type'          => '',
'feed_image'         => '',
'exclude'            => '',
'exclude_tree'       => '',
'include'            => '',
'hierarchical'       => true,
'title_li'           => '',
'number'             => NULL,
'echo'               => 0,
'depth'              => 0,
'current_category'   => 1,
'pad_counts'         => 0,
'taxonomy'           => 'category' );

// Get all categories (in a silly html menu)
$catmenu = wp_list_categories( $args );

// Split the menu to get all categories sepparately
$cats = split('
<li class="cat-item cat-item-', $catmenu);

$catmenu = '';

// Loop through the categories.
foreach($cats as $key => $cat){

	$current = '';

	// Get the code and html sepparately
	list($id, $code) = split('"><a', $cat);

	// Make sure they're there.
	if($id &#038;&#038; $code){

		// If this is the current category, then remove that text and remember for later
		if(strpos($id, ' current-cat') !== False){
			$current = ' current-cat';
			$id = str_replace(' current-cat', '', $id);
		}

		// In case we got an id... and this category doesn't have sub categories.
		if(is_numeric($id) &#038;&#038; strpos($code, "
<ul class='children'>") === False){

			// Arguments for getting the categorie's posts
			$args = array(
				'post_type' => 'post',
				'post_status' => 'published',
				'numberposts' => -1,
				'category' => $id
				); 

			// Get the posts
			 $myposts = get_posts($args);

			 // If we got any posts returned
			 if(count($myposts)){

				// Start a nice html post list
				$postlist = "\n".'
<ul class="posts">';

				// Check east post to see if it's current and add to the html
				 foreach($myposts as $post) {
					$current_post = '';
					if($postid == $post->ID){
						$current_post = ' class="current-post"';
						$current = ' current-cat';
					}
					$postlist .= "\n".'
<li'.$current_post.'><a href="'.get_permalink($post->ID).'">'.$post->post_title.'</a></li>

';
				 }

				 $postlist .= "\n".'</ul>

';

				// Add the post list to the code of the current category
				$code = str_replace('</a>', '</a>'.$postlist, $code);

			}

		}

		// Put everything that was split before back together
		$cat = '
<li class="cat-item cat-item-'.$id.$current.'"><a'.$code;

	}

	// Add back into the complete category menu
	$catmenu .= $cat;
}

// Print out the category menu
echo '
<li id="menu">
<ul>'.$catmenu.'</ul>
</li>

';</pre>
<p>And here is the javascript code I added to my template&#8217;s header.php:</p>
<div class="code"><pre class="javascript"><ol><li class="li1"><div class="de1"><span class="co1">// Initialise javascript functions using jquery</span></div></li><li class="li1"><div class="de1">jQuery<span class="br0">&#40;</span>document<span class="br0">&#41;</span>.<span class="me1">ready</span><span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; initMenu<span class="br0">&#40;</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1"><span class="br0">&#125;</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1"><span class="co1">// Start the menu functionality</span></div></li><li class="li1"><div class="de1"><span class="kw2">function</span> initMenu<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// Hide all the submenus by default</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; jQuery<span class="br0">&#40;</span><span class="st0">'#menu ul ul'</span><span class="br0">&#41;</span>.<span class="me1">hide</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// Find the current post and make sure all the categories it's in are also &quot;current&quot;, then show their kids.</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; jQuery<span class="br0">&#40;</span><span class="st0">'#menu .current-post'</span><span class="br0">&#41;</span>.<span class="me1">parents</span><span class="br0">&#40;</span><span class="st0">'li[id!=menu]'</span><span class="br0">&#41;</span>.<span class="me1">addClass</span><span class="br0">&#40;</span><span class="st0">'current-cat'</span><span class="br0">&#41;</span>.<span class="me1">children</span><span class="br0">&#40;</span><span class="st0">'ul'</span><span class="br0">&#41;</span>.<span class="me1">show</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// Replace the click event of all category menu items except for &quot;news&quot;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// In stead make them fold down and up the sub menu</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; jQuery<span class="br0">&#40;</span><span class="st0">'#menu a'</span><span class="br0">&#41;</span>.<span class="me1">click</span><span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span>event<span class="br0">&#41;</span><span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; thisItem = jQuery<span class="br0">&#40;</span><span class="kw1">this</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; childList = thisItem.<span class="me1">siblings</span><span class="br0">&#40;</span><span class="st0">'ul'</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span><span class="br0">&#40;</span>childList.<span class="me1">length</span><span class="br0">&#41;</span><span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span><span class="br0">&#40;</span>!<span class="br0">&#40;</span>thisItem.<span class="me1">html</span><span class="br0">&#40;</span><span class="br0">&#41;</span> == <span class="st0">'News'</span> &amp;&amp; childList.<span class="kw1">is</span><span class="br0">&#40;</span><span class="st0">':hidden'</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; event.<span class="me1">preventDefault</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span><span class="br0">&#40;</span>childList.<span class="kw1">is</span><span class="br0">&#40;</span><span class="st0">':hidden'</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; thisItem.<span class="me1">addClass</span><span class="br0">&#40;</span><span class="st0">'clicked'</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; childList.<span class="me1">slideDown</span><span class="br0">&#40;</span><span class="st0">'fast'</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jQuery<span class="br0">&#40;</span><span class="st0">'#menu ul:visible'</span><span class="br0">&#41;</span>.<span class="me1">each</span><span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span><span class="br0">&#40;</span>!<span class="br0">&#40;</span>jQuery<span class="br0">&#40;</span><span class="st0">'.clicked'</span>, <span class="kw1">this</span><span class="br0">&#41;</span>.<span class="me1">length</span> || jQuery<span class="br0">&#40;</span><span class="kw1">this</span><span class="br0">&#41;</span>.<span class="me1">siblings</span><span class="br0">&#40;</span><span class="st0">'.clicked'</span><span class="br0">&#41;</span>.<span class="me1">length</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jQuery<span class="br0">&#40;</span><span class="kw1">this</span><span class="br0">&#41;</span>.<span class="me1">slideUp</span><span class="br0">&#40;</span><span class="st0">'fast'</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; thisItem.<span class="me1">removeClass</span><span class="br0">&#40;</span><span class="st0">'clicked'</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><span class="kw1">else</span><span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; childList.<span class="me1">slideUp</span><span class="br0">&#40;</span><span class="st0">'fast'</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1"><span class="br0">&#125;</span></div></li></ol></pre></div><p><a href="javascript: void(0);" class="showpre">Display clean javascript code for copying</a></p><pre class="javascript">// Initialise javascript functions using jquery
jQuery(document).ready(function(){

	initMenu();

});

// Start the menu functionality
function initMenu(){
	// Hide all the submenus by default
	jQuery('#menu ul ul').hide();

	// Find the current post and make sure all the categories it's in are also "current", then show their kids.
	jQuery('#menu .current-post').parents('li[id!=menu]').addClass('current-cat').children('ul').show();

	// Replace the click event of all category menu items except for "news"
	// In stead make them fold down and up the sub menu
	jQuery('#menu a').click(function(event){

		thisItem = jQuery(this);

		childList = thisItem.siblings('ul');

		if(childList.length){

			if(!(thisItem.html() == 'News' &#038;&#038; childList.is(':hidden'))){

				event.preventDefault();

				if(childList.is(':hidden')){

					thisItem.addClass('clicked');

					childList.slideDown('fast');

					jQuery('#menu ul:visible').each(function(){

						if(!(jQuery('.clicked', this).length || jQuery(this).siblings('.clicked').length)){
							jQuery(this).slideUp('fast');
						}

					});

					thisItem.removeClass('clicked');

				}else{
					childList.slideUp('fast');
				}
			}

		}

	});
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.macouno.com/2010/05/23/making-a-category-based-menu-with-posts-in-wordpress-2-9-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BoganBlender published</title>
		<link>http://www.macouno.com/2010/05/16/boganblender-published/</link>
		<comments>http://www.macouno.com/2010/05/16/boganblender-published/#comments</comments>
		<pubDate>Sun, 16 May 2010 21:15:27 +0000</pubDate>
		<dc:creator>Dolf Veenvliet</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Blender]]></category>

		<guid isPermaLink="false">http://www.macouno.com/?p=772</guid>
		<description><![CDATA[I just now uploaded my first build of BoganBlender. It&#8217;s a version of Blender that attempts to remove all &#8220;arbitrary&#8221; limits on input values. That also makes it somewhat unstable, and well&#8230; use at your own risk. But it should enable us to do things with Blender that aren&#8217;t normally possible.
You can find the Linux [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.macouno.com/wp-content/uploads/2010/05/Blender2.png"><img class="alignright size-thumbnail wp-image-784" title="Blender" src="http://www.macouno.com/wp-content/uploads/2010/05/Blender2-100x100.png" alt="" width="100" height="100" /></a>I just now uploaded my first build of BoganBlender. It&#8217;s a version of Blender that attempts to remove all &#8220;arbitrary&#8221; limits on input values. That also makes it somewhat unstable, and well&#8230; use at your own risk. But it should enable us to do things with Blender that aren&#8217;t normally possible.</p>
<p><a href="http://www.graphicall.org/builds/builds/showbuild.php?action=show&amp;id=1396" target="_blank"><strong>You can find the Linux 64bit Blender Render Branch build here</strong></a></p>
<p>Thanks to Campbell Barton for writing the patch. He is ehm&#8230; well not exactly opposed to the idea, but doesn&#8217;t really like it hehe. So extra thanks for writing something that you think is silly Cam, you&#8217;re a hero ;)</p>
<p><a href="http://www.pasteall.org/13202/diff" target="_blank">You can find the patch here</a></p>
<p>Be aware that if you edit/create blender files in this version, you may not be able to use them in other versions, and&#8230; they may well crash computers and do things you don&#8217;t want&#8230; this is a HIGHLY experimental version of Blender.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.macouno.com/2010/05/16/boganblender-published/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Color it! Oinkie</title>
		<link>http://www.macouno.com/2010/05/14/color-it-oinkie/</link>
		<comments>http://www.macouno.com/2010/05/14/color-it-oinkie/#comments</comments>
		<pubDate>Fri, 14 May 2010 08:55:06 +0000</pubDate>
		<dc:creator>Dolf Veenvliet</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[Media]]></category>
		<category><![CDATA[Shapeways]]></category>

		<guid isPermaLink="false">http://www.macouno.com/?p=764</guid>
		<description><![CDATA[Shapeways published a nice new feature that I&#8217;m proud I got to help out with. You can now color your very own piggybank! Go here to have a look. There is also an article about it on SolidSmack.com
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.macouno.com/wp-content/uploads/2010/05/shapeways-colorit.jpg"><img class="alignleft size-thumbnail wp-image-765" title="shapeways-colorit" src="http://www.macouno.com/wp-content/uploads/2010/05/shapeways-colorit-100x100.jpg" alt="" width="100" height="100" /></a>Shapeways published a nice new feature that I&#8217;m proud I got to help out with. You can now color your very own piggybank! <a href="http://www.shapeways.com/model/116556/" target="_blank">Go here to have a look.</a> There is also an article about it on <a href="http://www.solidsmack.com/fabrication/shapeways-plating-steel-with-gold-printing-pigs-with-color/" target="_blank">SolidSmack.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.macouno.com/2010/05/14/color-it-oinkie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sintel trailer released</title>
		<link>http://www.macouno.com/2010/05/14/sintel-trailer-released/</link>
		<comments>http://www.macouno.com/2010/05/14/sintel-trailer-released/#comments</comments>
		<pubDate>Fri, 14 May 2010 08:48:06 +0000</pubDate>
		<dc:creator>Dolf Veenvliet</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Blender]]></category>
		<category><![CDATA[Durian]]></category>

		<guid isPermaLink="false">http://www.macouno.com/?p=760</guid>
		<description><![CDATA[After a lot of long days, and sleepless nights for some of the team, we finally released the trailer. It&#8217;s great to be able to show the world some of what we&#8217;ve been up to. More to come!
http://durian.blender.org/news/sintel-teaser/
]]></description>
			<content:encoded><![CDATA[<p><a href="http://durian.blender.org/news/sintel-teaser/"><img class="alignright size-thumbnail wp-image-761" title="sintel_screenshot" src="http://www.macouno.com/wp-content/uploads/2010/05/sintel_screenshot-99x47.png" alt="" width="99" height="47" /></a>After a lot of long days, and sleepless nights for some of the team, we finally released the trailer. It&#8217;s great to be able to show the world some of what we&#8217;ve been up to. More to come!</p>
<p><a href="http://durian.blender.org/news/sintel-teaser/">http://durian.blender.org/news/sintel-teaser/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.macouno.com/2010/05/14/sintel-trailer-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OZMO6:2 released</title>
		<link>http://www.macouno.com/2010/04/07/ozmo62-released/</link>
		<comments>http://www.macouno.com/2010/04/07/ozmo62-released/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 08:13:44 +0000</pubDate>
		<dc:creator>Dolf Veenvliet</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Media]]></category>
		<category><![CDATA[Music]]></category>

		<guid isPermaLink="false">http://www.macouno.com/?p=750</guid>
		<description><![CDATA[Dutch rapper Blaxtar released his new album OZMO6:2 last wednesday. He had a great party at the beautiful Tuschinski movie theatre in Amsterdam. I am very proud to have contributed to the creation of his record cover together with Torben Raun.
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.macouno.com/wp-content/uploads/2010/04/ozmo6-2.jpg"><img class="alignright size-thumbnail wp-image-751" title="ozmo6-2" src="http://www.macouno.com/wp-content/uploads/2010/04/ozmo6-2-100x89.jpg" alt="" width="100" height="89" /></a>Dutch rapper <a href="http://www.blaxtar.com/" target="_blank">Blaxtar</a> released his new album OZMO6:2 last wednesday. He had a great party at the beautiful <a href="http://en.wikipedia.org/wiki/Tuschinski_Theater" target="_blank">Tuschinski</a> movie theatre in Amsterdam. I am very proud to have contributed to the creation of his record cover together with <a href="http://www.torbenraun.com/" target="_blank">Torben Raun</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.macouno.com/2010/04/07/ozmo62-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>First week at the Durian Open Movie project</title>
		<link>http://www.macouno.com/2010/03/24/first-week-at-the-durian-open-movie-project/</link>
		<comments>http://www.macouno.com/2010/03/24/first-week-at-the-durian-open-movie-project/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 21:43:00 +0000</pubDate>
		<dc:creator>Dolf Veenvliet</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Blender]]></category>
		<category><![CDATA[Durian]]></category>

		<guid isPermaLink="false">http://www.macouno.com/?p=719</guid>
		<description><![CDATA[Hi all. Today I had my second full day at the Blender Institute with the Durian team. Find out more about the project here. I already wrote some scripts, found some bugs, been working on a big city scene, played soccer with the guys, and fed the ducks with Nathan. All in all a great [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.macouno.com/wp-content/uploads/2010/03/Durian_lunch.jpg"><img class="alignleft size-thumbnail wp-image-720" title="Durian_lunch" src="http://www.macouno.com/wp-content/uploads/2010/03/Durian_lunch-100x66.jpg" alt="" width="100" height="66" /></a>Hi all. Today I had my second full day at the Blender Institute with the Durian team. Find out more about the project <a href="http://durian.blender.org/production/new-team-members-4k-renders/" target="_blank">here</a>. I already wrote some scripts, found some bugs, been working on a big city scene, played soccer with the guys, and fed the ducks with Nathan. All in all a great start. The photo was taken by <a href="http://www.colinlevy.com" target="_blank">Colin Levy</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.macouno.com/2010/03/24/first-week-at-the-durian-open-movie-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Project London Multiply Teaser</title>
		<link>http://www.macouno.com/2010/03/24/project-london-multiply-teaser/</link>
		<comments>http://www.macouno.com/2010/03/24/project-london-multiply-teaser/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 16:31:43 +0000</pubDate>
		<dc:creator>Dolf Veenvliet</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Blender]]></category>
		<category><![CDATA[Media]]></category>
		<category><![CDATA[Project London]]></category>

		<guid isPermaLink="false">http://www.macouno.com/?p=715</guid>
		<description><![CDATA[The crew from Project London (which I&#8217;m proud to have been a part of) have yesterday released a brand new, awesome teaser trailer! I&#8217;m actually in this one&#8217;s credits as well. Go have a look!
]]></description>
			<content:encoded><![CDATA[<p><a href="http://vimeo.com/10370567" target="_blank"><img class="alignright size-thumbnail wp-image-716" title="ProjectLondon_Frame06_540px" src="http://www.macouno.com/wp-content/uploads/2010/03/ProjectLondon_Frame06_540px-100x56.jpg" alt="" width="100" height="56" /></a>The crew from <a href="http://projectlondonmovie.com/" target="_blank">Project London</a> (which I&#8217;m proud to have been a part of) have yesterday released a brand new, awesome teaser trailer! I&#8217;m actually in this one&#8217;s credits as well. <a href="http://vimeo.com/10370567" target="_blank">Go have a look</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.macouno.com/2010/03/24/project-london-multiply-teaser/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
