<?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>zy.sg personal.portfolio. &#187; Tutorials</title>
	<atom:link href="http://www.zy.sg/category/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zy.sg</link>
	<description>Personal Website of Melvin Lee (zy)</description>
	<lastBuildDate>Tue, 04 May 2010 14:39:45 +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>The Buffet Framework &#8211; Adding Minify</title>
		<link>http://www.zy.sg/05/the-buffet-framework-adding-minify/</link>
		<comments>http://www.zy.sg/05/the-buffet-framework-adding-minify/#comments</comments>
		<pubDate>Tue, 12 May 2009 15:50:46 +0000</pubDate>
		<dc:creator>zy</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[buffet]]></category>
		<category><![CDATA[feature]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[minify]]></category>

		<guid isPermaLink="false">http://www.zy.sg/the-buffet-framework-adding-minify/</guid>
		<description><![CDATA[While we wait for Arras Theme 1.3.0 to get approved and posted up into the WordPress themes directory, let’s shift the focus back to the Buffet Framework.
I have been actively developing the framework, pushing in new ideas and finding simple approaches to make theme development much easier. If you have actually explored the repository up [...]]]></description>
			<content:encoded><![CDATA[<p>While we wait for Arras Theme 1.3.0 to get approved and posted up into the <a href="http://www.wordpress.org/" target="_blank">WordPress</a> themes directory, let’s shift the focus back to the Buffet Framework.</p>
<p>I have been actively developing the framework, pushing in new ideas and finding simple approaches to make theme development much easier. If you have actually explored the repository up at Google Code, you would have noticed some additions into the framework.</p>
<h3>Minify Support</h3>
<p>One of the main features that I have been trying is to add support for <a href="http://code.google.com/p/minify/" target="_blank">Minify</a>, which allows you to combine, minify and cache your CSS and JS files. WordPress actually has an internal caching feature for their CSS and JS files that will be implemented in 2.8, but it will only be used in admin. So to provide support for this app, the theme developer would probably have to do the following things:</p>
<ul>
<li>Define the path Minify is installed, with their own configuration. </li>
<li>Use <code>wp_enqueue_script</code> to add their own JS files instead of echoing out the HTML tags like you would normally do. </li>
<li>Use a special framework function <code>bf_add_stylesheet</code> to include your stylesheet instead of using <code>@import</code> or the <code>&lt;link&gt;</code> tag. </li>
</ul>
<p>As long as the path to the installation path is defined, the framework will kick in and add an option into the admin to allow theme users to enable or disable the feature. An additional option will also appear to allow the users to delete the cache should they change anything in their CSS and JS files.</p>
<p>This feature should appear in the 0.6 stable release of the framework.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zy.sg/05/the-buffet-framework-adding-minify/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Getting Started on the Buffet Framework – Part 1</title>
		<link>http://www.zy.sg/04/getting-started-on-the-buffet-framework-%e2%80%93-part-1/</link>
		<comments>http://www.zy.sg/04/getting-started-on-the-buffet-framework-%e2%80%93-part-1/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 15:41:13 +0000</pubDate>
		<dc:creator>zy</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[buffet]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.zy.sg/?p=459</guid>
		<description><![CDATA[In this tutorial, I will be showing you how to start developing a child theme based on the Buffet Framework. Starting from the creation of the child theme, and the stylesheet.]]></description>
			<content:encoded><![CDATA[<p>In this tutorial, I will be showing you how to start developing a child theme based on the Buffet Framework. You’ll need:</p>
<ul>
<li><strong>Text editor</strong> (Notepad will do, but you might want to use code editors like Notepad++)</li>
<li><strong>Local web development server</strong> (I highly recommend you do it on a local web server before using it on a production server. XAMPP or WAMP will do)</li>
<li><strong>FTP client</strong> (If you want to upload files to your web server. FileZilla would be a good choice for me)</li>
</ul>
<h3>The CSS Stylesheet</h3>
<p>Like all child themes, the first thing you will need to do is to create a folder in <code>/wp-content/themes/</code> and name it as you wish. Next, you will need to create a file called style.css inside the folder you have just created.</p>
<p>You will need to add the following codes into the file:</p>
<pre class="brush: css">
/*
Theme Name: Theme Name
Theme URI: http://www.zy.sg/
Description: Child Theme of the Buffet Framework
Version: 1.0
Author: Me, myself and I
Author URI: http://www.zy.sg/
Template: the-buffet-framework
*/
</pre>
<p>You can edit any of the theme information here, except for the <code>Template</code> line. It tells WordPress that you are using the template files from that folder as the parent.</p>
<p>Once that is done, you can import in the framework CSS files. For example, I can import the Blueprint CSS stylesheets which are bundled with the framework. To do it, you will need to add the following lines:</p>
<pre class="brush: css">
/* Import Blueprint CSS styles */
@import url(&#039;../the-buffet-framework/css/blueprint/reset.css&#039;);
@import url(&#039;../the-buffet-framework/css/blueprint/typography.css&#039;);
@import url(&#039;../the-buffet-framework/css/blueprint/forms.css&#039;);
</pre>
<p>The framework comes bundled with the layout stylesheets from Thematic. So for example, I would like my basic layout to be a 2 column layout, with the sidebar to the right:</p>
<pre class="brush: css">
/* Import custom layouts (located at /css/layouts/) */
@import url(&#039;../the-buffet-framework/css/layouts/2c-r-fixed.css&#039;);
</pre>
<p>Once you are done, you can continue to style the theme to the way you would like it. You can also copy over all the styles from the default stylesheet at <code>/wp-content/themes/the-buffet-framework/style.css</code> and edit from there.</p>
<p>You can view and activate the theme from the Themes page over at the WordPress admin panel if you have done it correctly.</p>
<p>You can basically stop here right now, but if you need to add and edit content to the existing child theme, you will need to use the theme hooks to do it. I will cover this on the second part of the tutorial.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zy.sg/04/getting-started-on-the-buffet-framework-%e2%80%93-part-1/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
