<?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>Fearless Flyer Web Design</title>
	<atom:link href="http://fearlessflyer.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://fearlessflyer.com</link>
	<description>Web Design and Development in La Crescenta California</description>
	<lastBuildDate>Sat, 27 Feb 2010 05:34:31 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>10 Fancy Cell Phone Web Sites and a Free PSD!</title>
		<link>http://fearlessflyer.com/2010/02/10-fancy-cell-phone-websites/</link>
		<comments>http://fearlessflyer.com/2010/02/10-fancy-cell-phone-websites/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 05:34:31 +0000</pubDate>
		<dc:creator>Michael Soriano</dc:creator>
				<category><![CDATA[Freebies]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Inspiration]]></category>
		<category><![CDATA[cell phone]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[mock up]]></category>
		<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[PSD]]></category>
		<category><![CDATA[Web 2.0]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://fearlessflyer.com/?p=1281</guid>
		<description><![CDATA[This time around I decided to mix it up a little bit in a single post. Here is a list of fancy web sites featuring cell phones. I needed to get inspiration for a website I was designing and came up with these 10 awesome sites. Notice almost all of them have a large product [...]]]></description>
			<content:encoded><![CDATA[<p>This time around I decided to mix it up a little bit in a single post. Here is a list of fancy web sites featuring cell phones. I needed to get inspiration for a website I was designing and came up with these 10 awesome sites. Notice almost all of them have a large product image right on the fold of the page. Also included, is a high detail, fully layered Photoshop file of home page mockup featuring cell phones. I figured you fellow designers can use the list, as well as the mock up for your future projects.</p>
<h3>The Websites:</h3>
<p><strong><a href="http://www.verizonwireless.com/">Verizon Wireless</a></strong></p>
<p><a href="http://www.verizonwireless.com/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/02/verizon.jpg" alt="" title="Verizon Wireless" width="576" height="323" class="alignnone size-full wp-image-1292" /></a></p>
<p><strong><a href="http://www.sprint.com/index.html">Sprint.com</a></strong></p>
<p><a href="http://www.sprint.com/index.html"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/02/sprint.jpg" alt="" title="sprint" width="576" height="323" class="alignnone size-full wp-image-1290" /></a></p>
<p><strong><a href="http://na.blackberry.com/eng/devices/?iid=Choose_Homepage">Blackberry.com</a></strong></p>
<p><a href="http://na.blackberry.com/eng/devices/?iid=Choose_Homepage"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/02/blackberry.jpg" alt="" title="blackberry" width="576" height="323" class="alignnone size-full wp-image-1284" /></a></p>
<p><strong><a href="http://www.palm.com/us/products/phones/pre/index.html">Palm Pre</a></strong></p>
<p><a href="http://www.palm.com/us/products/phones/pre/index.html"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/02/palmpre.jpg" alt="" title="palmpre" width="576" height="323" class="alignnone size-full wp-image-1289" /></a></p>
<p><strong><a href="http://www.sonyericsson.com/cws/products/mobilephones/overview/xperiax10?cc=us&#038;lc=en">Sony Ericsson Xperia X10</a></strong></p>
<p><a href="http://www.sonyericsson.com/cws/products/mobilephones/overview/xperiax10?cc=us&amp;lc=en"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/02/ericson.jpg" alt="" title="Sony Ericsson" width="576" height="323" class="alignnone size-full wp-image-1285" /></a></p>
<p><strong><a href="http://www.google.com/phone">Nexus One</a></strong></p>
<p><a href="http://www.google.com/phone"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/02/nexus1.jpg" alt="" title="Nexus One" width="576" height="323" class="alignnone size-full wp-image-1288" /></a></p>
<p><strong><a href="http://www.wirefly.com/">WireFly.com</a></strong></p>
<p><a href="http://www.wirefly.com/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/02/wirefly.jpg" alt="" title="Wirefly.com" width="576" height="323" class="alignnone size-full wp-image-1283" /></a></p>
<p><strong><a href="http://www.apple.com/iphone/">Of course -The iPhone</a></strong></p>
<p><a href="http://www.apple.com/iphone/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/02/iphone.jpg" alt="" title="iphone" width="576" height="323" class="alignnone size-full wp-image-1287" /></a></p>
<p><strong><a href="http://www.htc.com/us/#/?slide=3">HTC</a></strong></p>
<p><a href="http://www.htc.com/us/#/?slide=3"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/02/htc.jpg" alt="" title="htc" width="576" height="323" class="alignnone size-full wp-image-1286" /></a></p>
<p><strong><a href="http://www.t-mobile.com/">T-Mobile</a></strong></p>
<p><a href="http://www.t-mobile.com/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/02/t-mobile.jpg" alt="" title="t-mobile" width="576" height="323" class="alignnone size-full wp-image-1291" /></a></p>
<h3>The Free PSD:</h3>
<p>Below is a preview of the Photoshop mock up free for download. It was inspired by the list above.</p>
<p><a href="http://fearlessflyer.com/main/wp-content/uploads/2010/02/cell-phone-website.jpg"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/02/small-cellphone-web.jpg" alt="" title="Click to see the full version" width="576" height="1283" class="alignnone size-full wp-image-1304" /></a></p>
<p>Here is the <a href="http://fearlessflyer.com/downloads/cell-phone-website.zip">download link</a>. Feel free to check out my downloads page for other free stuff you can use in your design projects. Follow me in <a href="http://twitter.com/_fearlessflyer">Twitter</a> or leave a comment below &#8211; That&#8217;s all I ask. </p>
]]></content:encoded>
			<wfw:commentRss>http://fearlessflyer.com/2010/02/10-fancy-cell-phone-websites/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Five Easy Steps to a Faster Website</title>
		<link>http://fearlessflyer.com/2010/02/five-easy-steps-to-a-faster-website/</link>
		<comments>http://fearlessflyer.com/2010/02/five-easy-steps-to-a-faster-website/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 04:46:03 +0000</pubDate>
		<dc:creator>Michael Soriano</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Websites]]></category>
		<category><![CDATA[fast sites]]></category>
		<category><![CDATA[lazy load]]></category>
		<category><![CDATA[load faster pages]]></category>
		<category><![CDATA[smushit]]></category>
		<category><![CDATA[speedy pages]]></category>
		<category><![CDATA[yslow]]></category>

		<guid isPermaLink="false">http://fearlessflyer.com/?p=1271</guid>
		<description><![CDATA[The speed of a web page is a strong determinant of your website’s success.  The faster your page loads &#8211; the happier your viewers are. Well, that may not entirely be true (happy viewers result from good content) – but what good is good content if it takes too long to load?  
As [...]]]></description>
			<content:encoded><![CDATA[<p>The speed of a web page is a strong determinant of your website’s success.  The faster your page loads &#8211; the happier your viewers are. Well, that may not entirely be true (happy viewers result from good content) – but what good is good content if it takes too long to load?  </p>
<p>As we all may know &#8211; Web 101 includes a plethora of venues for better performing sites:  SEO being one of them.  Speed is another.  As a matter of fact –<a href="http://mashable.com/2009/11/15/google-ranking-speed/"> speed may one day affect your page rankings in search engines</a>. Now before we scour our HTML for bloated code, check out these quick and easy tips on how to make your web pages faster:</p>
<h3>Smush.It</h3>
<p>Smush.It is Yahoo’s proprietary image compression tool. If you haven’t yet noticed, web sites nowadays are getting fancier. Plenty of images – large backgrounds, slideshows, thumbnails – they’re all accomplished by embedding images into the pages. The problem is &#8211; images are huge in kilobytes. Smush.It takes care of that by compressing your images, hence “Smush” – but without loss of quality. </p>
<p><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/02/smushit.jpg" alt="" title="My Background Image was Smushed to 65 Percent" width="576" height="203" class="alignnone size-full wp-image-1272" /></p>
<p>Simply go to <a href="http://smush.it">Smush.it </a>and upload your images. No code to download, no plugin to install – Yahoo has provided this service for anyone to use online. </p>
<h5>For Wordpress Users:</h5>
<p>A beautiful plugin known as WP Smush.it developed by the folks from <a href="http://dialect.ca/code/wp-smushit/">Dialect.ca</a>. The plugin automatically compresses images uploaded to your posts behind the scenes – using the Smush.it API. What’s great about this plugin is – you can go back to your image library and Smush your older images – how neat is that!</p>
<p><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/02/smushit2.jpg" alt="" title="Screenshot of Media Library with Smushit Plugin" width="576" height="203" class="alignnone size-full wp-image-1273" /></p>
<h3>Use Lazy Load</h3>
<p>You ever notice those mega websites with tons of images in an article – but each image only load when you scroll to that part? This effect is achieved through Javascript (jQuery) and a little plugin called Lazy Load. Lazy Load is developed by Mika Tuupola with the main purpose of delaying the loading of images below the viewable screen area.  Thus making pages load faster – especially helpful for long pages with plenty of images. </p>
<p>Installing Lazy Load is very easy.  There are two scripts you need included in your page – the jquery.js file and the plugin script itself (which can be downloaded from this<a href="http://www.appelsiini.net/projects/lazyload"> link</a>)</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;script src=&quot;jquery.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;jquery.lazyload.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;</pre></td></tr></table></div>

<p>You can assign all images to automatically load lazy:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;img&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">lazyload</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Or  only specify specific images:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#main-container img&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">lazyload</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<h3>CSS Sprites</h3>
<p>No, not another flavor of that clear soda pop – CSS Sprites is the process of using a single image for a web component such as navigation or rollover buttons. The idea is one image source greatly reduces the amount of HTTP requests compared to using multiple images; thus, decreasing page load times.  Web designers may have started using sprites for buttons, but I’ve seen many websites using it on any static image such as maps, rating scales and logos. My main navigation bar is using CSS Sprites: </p>
<p><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/02/css-sprites.jpg" alt="" title="My Page Navigation with Sprites" width="576" height="163" class="alignnone size-full wp-image-1274" /></p>
<p>While many think CSS Sprites are daunting to make &#8211; it certainly becomes much easier once you get the hang of it. Check out my tutorial on <a href="http://fearlessflyer.com/2009/05/create-a-subscribe-bar-with-css-sprites/">How to make a Subscribe Bar using CSS sprites</a>. </p>
<h3>Combine those Stylesheets</h3>
<p>As mentioned previously &#8211; Reducing the number of HTTP requests is key to a speedier page.  Different calls for external stylesheets is no different. Having just a single external stylesheet will definitely improve your page performance. This may not apply to smaller single page portfolios, but if you run a blog or a CMS with countless dynamic pages – having multiple stylesheets is very common.  Combine those styles into one giant stylesheet. <del datetime="2010-02-25T06:49:49+00:00">Better yet – include an @imports statement inside your main css file:</del> </p>
<p><strong>Update!</strong> &#8211; It turns out that using @imports may have a negative impact on the overall performance of your websites. Thanks to Max Zero &#8211; who led me to <a href="http://www.stevesouders.com/blog/2009/04/09/dont-use-import/">this article</a> which outlines performance lags including IE issues by using @imports.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #a1a100;">@import url('/css/another.css') screen; </span>
<span style="color: #a1a100;">@import url('/css/another1.css') screen; </span>
<span style="color: #a1a100;">@import url('/css/another2.css') screen; </span>
<span style="color: #a1a100;">@import url('/css/print.css') print;</span></pre></td></tr></table></div>

<p>Import statements include other stylesheets into your main css. So you can still use multiple sheets – but in your HTML – you just call the main file:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;/css/styles.css&quot; /&gt;</pre></div></div>

<h5>For Wordpress Users:</h5>
<p>Many of you may not know that most plugins come with their own css file. The more plugins you have – the more HTTP request for those stylesheets get appended in your HTML – slowing your pages down multi-fold. Read this <a href="http://www.wprecipes.com/wordpress-trick-disable-plugin-stylesheet">article by WPRecipes</a> on how to deregister plugin css files. Once you have the css deregistered, simply copy those stylesheets it into your main styles.css file. This eliminates the need for those additional stylesheets. </p>
<h3>Use Speed Testers</h3>
<p>The final tip for web swiftness –use online speed testers. These are special websites that determine your page load times. Of course this alone won’t make your website fast – you have to go through the analysis and recommendations on HOW to speed up your website.  What’s good about these websites are not only that they’re designed specifically for this purpose – but also, they’re free! So take advantage of speed testers and see their suggestions on how to fix and fine tune your site. I think of them as pit stops for web pages – sound corny? I think so too. </p>
<p>Personally, I use a firefox add-on known as <a href="https://addons.mozilla.org/en-US/firefox/addon/5369">YSlow</a>. YSlow analyzes your pages based on the strict Yahoo rules for high website performance.</p>
<p><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/02/speed-testers.jpg" alt="" title="Speed Testing Websites" width="576" height="225" class="alignnone size-full wp-image-1275" /></p>
<p> Other online web page speed testing services include: <a href="http://tools.pingdom.com/">http://tools.pingdom.com/</a> and <a href="http://www.websiteoptimization.com/services/analyze/">http://www.websiteoptimization.com/services/analyze/</a>. </p>
<h3>Conclusion:</h3>
<p>Now apply these techniques to you web pages and I guarantee a significant increase in performance.  What about you? Do you have tips on how to make web pages faster? Feel free to leave a comment below:</p>
]]></content:encoded>
			<wfw:commentRss>http://fearlessflyer.com/2010/02/five-easy-steps-to-a-faster-website/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Embed Videos in your Web Pages with Flowplayer!</title>
		<link>http://fearlessflyer.com/2010/01/embed-videos-with-flowplayer/</link>
		<comments>http://fearlessflyer.com/2010/01/embed-videos-with-flowplayer/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 03:39:20 +0000</pubDate>
		<dc:creator>Michael Soriano</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flowplayer]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[video blog]]></category>
		<category><![CDATA[video player]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://fearlessflyer.com/?p=1231</guid>
		<description><![CDATA[Normally when you want to add videos into your web pages &#8211; automatically you think of Youtube. All you need is a Youtube account, upload your video, embed the code and your ready to go! But what if you want to do something more? Something like changing how the player looks, maybe add a different [...]]]></description>
			<content:encoded><![CDATA[<p>Normally when you want to add videos into your web pages &#8211; automatically you think of Youtube. All you need is a Youtube account, upload your video, embed the code and your ready to go! But what if you want to do something more? Something like changing how the player looks, maybe add a different splash image, take out that annoying “Youtube” logo, and more importantly &#8211; take out that link toYoutube.com. Now there is a better alternative. Enter Flowplayer.</p>
<p>Before I delve into the details of FlowPlayer, view the demo below: (Notice the absence of the “YouTube” logo)</p>
<div style="padding:20px 0 20px 0;">
<a id="wpfp_d1d8dfbf538c0e5d14a342b9fe994026" style="width:572px; height:280px;" class="flowplayer_container"></a>
<div id="popup_contents_d1d8dfbf538c0e5d14a342b9fe994026" class="popup_contents"><div class="popup_controls"><a title="Replay video" onClick="javascript:window.location=this.href" href="javascript:fp_replay('d1d8dfbf538c0e5d14a342b9fe994026');"><img src="RELATIVE_PATH/images/replay.png" alt="Replay video" /></a><a title="Share video" onClick="javascript:window.location=this.href" href="javascript:fp_share('d1d8dfbf538c0e5d14a342b9fe994026');"><img src="RELATIVE_PATH/images/share.png" alt="Share video" /></a></div><div id="wpfp_d1d8dfbf538c0e5d14a342b9fe994026_custom_popup" class="wpfp_custom_popup"><div style="margin-top: 10px;">Would you like to replay the video or share the link to it with your friends?</div></div></div>
</div>
<h3>What is FlowPlayer?</h3>
<p>FlowPlayer is an open source video player for the web. It is a way for you to stream videos in your pages, from your own server. Thus, eliminating the need for external video serving services such as YouTube. FlowPlayer is highly extensible and customizable. Though it may take a little more than a few clicks &#8211; the benefits far outweigh the work needed to get it running. Consider these pros and cons:</p>
<h5>Pros:</h5>
<div class="pros">
<strong>No Links to External Sites</strong> &#8211; As I’ve mentioned, this alone is enough reason to use FlowPlayer. Your visitors cannot escape your website when video is live. They stay in your site during playback and when clicked. In addition, you can configure your player to use custom events (see below)
</div>
<div class="pros">
<strong>CSS Skinning and Branding</strong> &#8211; You can totally change the appearance of Flowplayer. This includes player controls, backgrounds and logo (custom logo is supported in the “Commercial” version). Best of all &#8211; skinning FlowPlayer follows strict web standards using simple HTML and CSS. Check out this demo using a billboard sign as the background of the player: <a href="http://flowplayer.org/demos/skinning/container-background.html. ">http://flowplayer.org/demos/skinning/container-background.html</a>.
</div>
<p><a href="http://flowplayer.org/demos/skinning/container-background.html"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/01/custom-skin-flowplayer2.jpg" alt="" title="Try Doing This with YouTube" width="576" height="300" class="alignnone size-full wp-image-1247" /></a></p>
<div class="pros">
<strong>Set your own Splash Image </strong>- one of the annoying things about Youtube is it automatically selects the splash image for you. With Flowplayer you can select a high quality image as the splash state &#8211; before the actual player loads.
</div>
<div class="pros">
<strong>You can add your own Events </strong>- configure your player to do more than just playback videos. Examples can be adding captions during playback, extracting clip information as well as chaining video clips to play one after the other. See some examples of events <a href="http://flowplayer.org/documentation/events/">here</a>.
</div>
<div class="pros">
<strong>Extend with Plugins</strong> &#8211; Plugins are already made functionalities that other developers have created and made available for you to download. Examples of kick ass plugins are <a href="http://flowplayer.org/plugins/flash/content.html">Flash Content</a>, <a href="http://flowplayer.org/plugins/javascript/embed.html">Javascript Embed</a> and <a href="http://flowplayer.org/plugins/streaming/slowmotion.html">Streaming Slow Motion</a>.
</div>
<h5>Cons:</h5>
<div class="cons">
<strong>Need some HTML experience </strong>- you will need to touch the source code of your pages to use. For advanced functionality &#8211; scripting technologies such as javascript and flash is also required
</div>
<div class="cons">
<strong>You need to convert the videos locally first before uploading</strong> &#8211; at the time of writing, FlowPlayer supports FLV, H.264 and MP4. You will need to convert your video to the said formats before uploading. Check this article for good information on Flash Video Conversion: <a href="http://worldtv.com/blog/guides_tutorials/flv_converter.php">http://worldtv.com/blog/guides_tutorials/flv_converter.php</a>
</div>
<div class="cons">
<strong>Bandwidth</strong> &#8211; Since videos are served locally you may see an increase in bandwidth usage.
</div>
<h3>How to use FlowPlayer</h3>
<p>What I really liked about FlowPlayer is their extensive documentation. It includes walkthroughs for beginners, as well as in depth instructions for the expert programmers. To start using FlowPlayer &#8211; all you need is to do the following: </p>
<p><strong>1) <a href="http://releases.flowplayer.org/flowplayer/flowplayer-3.1.5.zip">Download</a> the FlowPlayer Files</strong> &#8211; This download includes the actual FlowPlayer .swf files as well as the .js file to get you started. It also includes an HTML page that demonstrate the basic installation of FlowPlayer.</p>
<p><strong>2) Include the flowplayer.js in your HTML:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;script src=&quot;path/to/the/flowplayer-3.1.4.min.js&quot;&gt;&lt;/script&gt;</pre></div></div>

<p><strong>3) Setup the player container</strong> &#8211; Simply add an anchor tag with 3 important attributes: a) <em>href &#8211; the pointer to the video file</em>, b) style: <em>determines the size and basic display properties of the player </em>and c) id: <em>very important &#8211; this acts as a selector for the javascript to target to load the player</em>.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;a  
    href=&quot;http://www.mywebsite.com/myVideo.flv&quot;  
    style=&quot;display:block;width:425px;height:300px;&quot;  
    id=&quot;player&quot;&gt; 
&lt;/a&gt;</pre></td></tr></table></div>

<p><strong>4) Install Flowplayer</strong> &#8211; The final code tells FlowPlayer to install in our anchor tag:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;script language=&quot;JavaScript&quot;&gt; 
flowplayer(&quot;player&quot;, &quot;path/to/the/flowplayer-3.1.5.swf&quot;); 
&lt;/script&gt;</pre></div></div>

<h3>FlowPlayer and Wordpress:</h3>
<p>Oh yes &#8211; you can actually embed Flowplayer inside your posts. The beauty of it is &#8211; there are actually several Flowplayer plugins already available for Wordpress. Though I’m just going to cover the two most popular: </p>
<p><strong><a href="http://foliovision.com/seo-tools/wordpress/plugins/fv-wordpress-flowplayer">FV Wordpress Flowplayer </a></strong>- developed by Foliovision, is a straight forward FlowPlayer plugin made exceptionally easy. All you need is to install, upload your video and add the plugin shortcode to your posts. Note that this is the plugin I’m using for my video demo above. The screenshot below shows the plugin options page:</p>
<p><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/01/screenshot-3.png" alt="" title="Screenshot of FolioVisions Options" width="576" height="337" class="alignnone size-full wp-image-1248"  /></p>
<p><strong><a href="http://www.saiweb.co.uk/wordpress-flowplayer">Flowplayer for Wordpress</a></strong> &#8211; created by David Busby of Saiweb, this plugin also includes player customization features as well as commercial license key input for advanced settings:</p>
<p><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/01/screenshot-1.png" alt="" title="SaiWebs Options Page" width="576" height="300" class="alignnone size-full wp-image-1249"  /></p>
<h5>Embed FlowPlayer in your Theme:</h5>
<p>If you’re like me, you may come across a website project that requires videos hosted in their own server. Of course Wordpress and FlowPlayer is a good combination. What about if the requirements for the player are so extensive that may not be achieved with any sort of plugin? This is when you’d want to embed FlowPlayer in your theme. </p>
<p>The process is pretty much the same as the basic FlowPlayer installation. The only difference is we’re using custom fields for the href attribute of our player. In your theme folder, edit single.php and include this code inside the loop:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'movie'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'movie'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$single</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;  
			 style=&quot;display:block;width:590px;height:278px&quot;  
			 id=&quot;player&quot;&gt; 
&lt;/a&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>This sets up a default player for each post, wrapped in an “if” block. This way you customize the page to your client’s extensive requirements. A screenshot of my page mockup is shown below: </p>
<p><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/01/scv-mockup.jpg" alt="" title="Mock Up with Custom Player" width="576" height="300" class="alignnone size-full wp-image-1250" /></p>
<p>Don’t forget the call to install FlowPlayer:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">&lt;script&gt;
flowplayer(&quot;player&quot;, &quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'template_directory'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/flow-player-files/flowplayer-3.1.5.swf&quot;);
&lt;/script&gt;</pre></td></tr></table></div>

<p>Now all you need to do is upload the movie using the default Wordpress media uploader, and plug in the url in a custom field set to “<strong>movie</strong>”</p>
<h3>Conclusion</h3>
<p>If you haven’t already noticed &#8211; almost every aspect of FlowPlayer can be customized. Having this much control over video content is invaluable and cannot compare to services like YouTube. Best of all, the basic version is free under the GPL license which you can use for personal or commercial purposes. Note that there are also paid versions that determine the amount of branding you can as well as legal domain usage. Head on over to FlowPlayer&#8217;s <a href="http://flowplayer.org/index.html">website</a> for more information. </p>
]]></content:encoded>
			<wfw:commentRss>http://fearlessflyer.com/2010/01/embed-videos-with-flowplayer/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>16 Beautiful Restaurant Websites</title>
		<link>http://fearlessflyer.com/2010/01/16-beautiful-restaurant-websites/</link>
		<comments>http://fearlessflyer.com/2010/01/16-beautiful-restaurant-websites/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 20:23:34 +0000</pubDate>
		<dc:creator>Michael Soriano</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Inspiration]]></category>
		<category><![CDATA[Websites]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[food]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[restaurant]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://fearlessflyer.com/?p=1196</guid>
		<description><![CDATA[One of the challenging parts of web design is to provide exactly what your client needs. Some of them look to advertise a product. Others offer some kind of service, while the rest want a website for general information about their organization. Recently, I had to design for a local restaurant. Restaurant owners are quite [...]]]></description>
			<content:encoded><![CDATA[<p>One of the challenging parts of web design is to provide exactly what your client needs. Some of them look to advertise a product. Others offer some kind of service, while the rest want a website for general information about their organization. Recently, I had to design for a local restaurant. Restaurant owners are quite the hybrid of all the clientele types I mentioned because they:  1) want a website to advertise their products *usually in a menu form, 2) promote their services and friendly staff and 3) show the world about their fine establishment. </p>
<p>As I was searching the net for good restaurant websites, I stumbled upon these 16 sites which had all the elements that my client needed.  In addition, some of these websites look so good – that it would inspire many of you designers out there. Note that I included my work in the list (its my blog &#8211; I can do whatever I want).</p>
<p><strong><a href="http://thenoodlebox.net/">http://thenoodlebox.net/</a></strong><br />
<a href="http://thenoodlebox.net/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/01/the-noodle-box.jpg" alt="the-noodle-box" width="576" height="323" class="alignnone size-full wp-image-1211" /></a></p>
<p><strong><a href="http://www.rubytuesday.com/">http://www.rubytuesday.com</a></strong><br />
<a href="http://www.rubytuesday.com/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/01/ruby-tuesdays.jpg" alt="ruby-tuesdays" width="576" height="323" class="alignnone size-full wp-image-1208" /></a></p>
<p><strong><a href="http://www.twelve-restaurant.co.uk/">http://www.twelve-restaurant.co.uk/</a></strong><br />
<a href="http://www.twelve-restaurant.co.uk/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/01/twelve-restaurant.jpg" alt="twelve-restaurant" width="576" height="323" class="alignnone size-full wp-image-1213" /></a></p>
<p><strong><a href="http://www.pizzaza.ca/">http://www.pizzaza.ca/</a></strong><br />
<a href="http://www.pizzaza.ca/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/01/pizzaza.jpg" alt="pizzaza" width="576" height="323" class="alignnone size-full wp-image-1206" /></a></p>
<p><strong><a href="http://www.nuevo-aurich.de/">http://www.nuevo-aurich.de/</a></strong><br />
<a href="http://www.nuevo-aurich.de/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/01/nuevo-aurich.jpg" alt="nuevo-aurich" width="576" height="323" class="alignnone size-full wp-image-1205" /></a></p>
<p><strong><a href="http://www.pomonavalleyminingco.com/">http://www.pomonavalleyminingco.com/</a></strong><br />
<a href="http://www.pomonavalleyminingco.com/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/01/pomona-valley-mining.jpg" alt="pomona-valley-mining" width="576" height="323" class="alignnone size-full wp-image-1207" /></a></p>
<p><strong><a href="http://www.lapizarraproject.com/">http://www.lapizarraproject.com/</a></strong><br />
<a href="http://www.lapizarraproject.com/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/01/la-pizarra.jpg" alt="la-pizarra" width="576" height="323" class="alignnone size-full wp-image-1204" /></a></p>
<p><strong><a href="http://www.villagerkent.com/">http://www.villagerkent.com/</a></strong><br />
<a href="http://www.villagerkent.com/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/01/the-villager.jpg" alt="the-villager" width="576" height="323" class="alignnone size-full wp-image-1212" /></a></p>
<p><strong><a href="http://www.bertoldis.ca/">http://www.bertoldis.ca/</a></strong><br />
<a href="http://www.bertoldis.ca/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/01/bertoldis.jpg" alt="bertoldis" width="576" height="323" class="alignnone size-full wp-image-1198" /></a></p>
<p><strong><a href="http://www.caferouge.co.uk/">http://www.caferouge.co.uk/</a></strong><br />
<a href="http://www.caferouge.co.uk/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/01/cafe-rouge.jpg" alt="cafe-rouge" width="576" height="323" class="alignnone size-full wp-image-1199" /></a></p>
<p><strong><a href="http://jakesrh.net/">http://jakesrh.net/</a></strong><br />
<a href="http://jakesrh.net/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/01/jakes-roadhouse.jpg" alt="" title="I did this!" width="576" height="323" class="alignnone size-full wp-image-1203" /></a></p>
<p><strong><a href="http://www.belgo-restaurants.co.uk/">http://www.belgo-restaurants.co.uk/</a></strong><br />
<a href="http://www.belgo-restaurants.co.uk/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/01/belgo.jpg" alt="belgo" width="576" height="323" class="alignnone size-full wp-image-1197" /></a></p>
<p><strong><a href="http://www.giraffe.net/">http://www.giraffe.net/</a></strong><br />
<a href="http://www.giraffe.net/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/01/giraffe.jpg" alt="giraffe" width="576" height="323" class="alignnone size-full wp-image-1200" /></a></p>
<p><strong><a href="http://www.sandiegobrewing.com/">http://www.sandiegobrewing.com/</a></strong><br />
<a href="http://www.sandiegobrewing.com/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/01/san-diego-brewing.jpg" alt="san-diego-brewing" width="576" height="323" class="alignnone size-full wp-image-1209" /></a></p>
<p><strong><a href="http://www.hoddows-gastwerk.de/">http://www.hoddows-gastwerk.de/</a></strong><br />
<a href="http://www.hoddows-gastwerk.de/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/01/hoddows.jpg" alt="hoddows" width="576" height="323" class="alignnone size-full wp-image-1201" /></a></p>
<p><strong><a href="http://www.strada.co.uk/">http://www.strada.co.uk/</a></strong><br />
<a href="http://www.strada.co.uk/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/01/strada.jpg" alt="strada" width="576" height="323" class="alignnone size-full wp-image-1210" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://fearlessflyer.com/2010/01/16-beautiful-restaurant-websites/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Get Some Aparatus! &#8211; Free Theme for Wordpress</title>
		<link>http://fearlessflyer.com/2010/01/get-some-aparatus-free-theme-for-wordpress/</link>
		<comments>http://fearlessflyer.com/2010/01/get-some-aparatus-free-theme-for-wordpress/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 08:26:25 +0000</pubDate>
		<dc:creator>Michael Soriano</dc:creator>
				<category><![CDATA[Freebies]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[WP Themes]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[Magazine Style]]></category>
		<category><![CDATA[MooTools]]></category>
		<category><![CDATA[Options Panel]]></category>
		<category><![CDATA[premium theme]]></category>
		<category><![CDATA[Smooth Gallery]]></category>
		<category><![CDATA[Themes]]></category>
		<category><![CDATA[Web 2.0]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[WP]]></category>
		<category><![CDATA[WP 2.9]]></category>

		<guid isPermaLink="false">http://fearlessflyer.com/?p=1128</guid>
		<description><![CDATA[After many attempts at trying to get a fully functional magazine theme, I give you: Aparatus &#8211; my most complicated theme yet. Aparatus is as a premium Wordpress theme that comes with a Mootools slideshow in the home page. You may also notice that I misspelled Aparatus  (which I can lie and say was [...]]]></description>
			<content:encoded><![CDATA[<p>After many attempts at trying to get a fully functional magazine theme, I give you: Aparatus &#8211; my most complicated theme yet. Aparatus is as a premium Wordpress theme that comes with a Mootools slideshow in the home page. You may also notice that I misspelled Aparatus  (which I can lie and say was purely intentional) but honestly &#8211; did not know until the little red line in this HTML editor showed up underneath and I said to myself &#8220;WTF! If I change the spelling &#8211; think of all the places in the code I have to change!&#8221;. </p>
<p><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/01/aparatus12.jpg" alt="" title="Misspelled Apparatus - too late to go back!" width="576" height="160" class="alignnone size-full wp-image-1133" /></p>
<p>So much for a name change. Nonetheless, Aparatus is packed with features and design delight that aims to tickle your innermost web mag fancy. I have included extensive theme options that will leave you not needing to touch a single line of HTML. I have cufonized fonts for the headings and the site logos &#8211; that you need not create your own. I have modified the Wordpress loop so much that it covered almost all possible looping scenario. Last of all, Aparatus comes with four different stylesheets targeted to suit your color schema. </p>
<h3>The Slide Show</h3>
<p>As for many magazine styled websites &#8211; a slideshow is a must have. Thanks to <a href="http://smoothgallery.jondesign.net/">JonDesign&#8217;s Smooth Gallery</a> &#8211; which made this possible. The slideshow by default pulls your five latest posts. The loop then continues to present the remaining of your posts directly below. The theme options allow total exclusion of the slideshow, as well as automatic slide. You can also specify a specific category to be pulled into the slideshow &#8211; without ever duplicating the posts in the bottom. All while the default loop logic is still acknowledged and functional. What this means is that &#8211; the loop still recognizes the options you enter in Wordpress admin &#8211; not just in the theme (i.e. number of posts to show, etc); in addition, the paging system (next page etc) still works and automatically hides the slideshow in the inner pages. Oh, I also re-styled the WP-Navi Plugin (the right way), by de registering it&#8217;s default stylesheet. </p>
<p><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/01/aparatus31.jpg" alt="" title="Four Sytlesheets Included" width="576" height="300" class="alignnone size-full wp-image-1138" /></p>
<h3>WP 2.9 Thumbnail Ready!</h3>
<p>The images in the slideshow as well as the thumbnails per post can be set by using the new &#8220;set as thumbnail&#8221; feature in WP 2.9!. This supersedes the old school way of inserting &#8220;custom-fields&#8221; &#8211; but will still work with either! You can use the thumbnail feature or custom fields set to &#8220;image&#8221;. </p>
<h3>Ads, Twitter, Widgets and Everything else</h3>
<p>The sidebar comes with advertising blocks which you can set up in the theme options panel. When you enter your Twitter account in the options, this will dictate the @replies in the Tweet Me buttons, the big &#8220;Follow my Updates&#8221; in the header, as well as the last tweet in the sidebar. The popular posts and recent comments tabbed area are all non-plugin driven &#8211; which means the code is all inclusive with the theme, without needing to install a plugin. Lastly, the sidebar supports widgets, the comments are threaded, gravatar &#8211; ready, as well as suckerfished drop down menus for the categories in the header. </p>
<p><a href="http://fearlessflyer.com/main/wp-content/uploads/2010/01/aparatus-large.jpg"><br />
<img src="http://fearlessflyer.com/main/wp-content/uploads/2010/01/aparatus2.jpg" alt="" title="Its packed with Options my dear!" width="576" height="678" class="alignnone size-full wp-image-1135" /><br />
</a></p>
<h3>That&#8217;s Enough! Download Already!</h3>
<p><strong>To view a live preview of Aparatus &#8211; click <a href="http://aparatus.fearlessflyer.com/">here</a></strong>. You can download the theme from this <strong><a href="http://fearlessflyer.com/downloads/aparatus.zip">link</a></strong>. If you like the theme &#8211; you can do one of many things to keep me happy: Follow me in Twitter, Donate some coffee money, Tweet about it, subscribe to my feeds or even just leave a nice comment below. </p>
]]></content:encoded>
			<wfw:commentRss>http://fearlessflyer.com/2010/01/get-some-aparatus-free-theme-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>152</slash:comments>
		</item>
		<item>
		<title>Elegant Themes &#8211; Best Value Themes Club</title>
		<link>http://fearlessflyer.com/2009/12/elegant-themes-best-value-themes-club/</link>
		<comments>http://fearlessflyer.com/2009/12/elegant-themes-best-value-themes-club/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 19:45:05 +0000</pubDate>
		<dc:creator>Michael Soriano</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[WP Themes]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Blogger]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[grunge]]></category>
		<category><![CDATA[premium theme]]></category>
		<category><![CDATA[Web 2.0]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[WP]]></category>

		<guid isPermaLink="false">http://fearlessflyer.com/?p=1080</guid>
		<description><![CDATA[With the increasing popularity of Wordpress comes the business of developing &#8220;bi-products&#8221; that support this amazing blogging platform. This includes the countless plugins, web hosting, developer support and of course &#8211; the most marketable of them all: premium themes. 
A number of leading designers have already dominated this Wordpress premium themes market; quite notably: Woothemes, [...]]]></description>
			<content:encoded><![CDATA[<p>With the increasing popularity of Wordpress comes the business of developing &#8220;bi-products&#8221; that support this amazing blogging platform. This includes the countless plugins, web hosting, developer support and of course &#8211; the most marketable of them all: premium themes. </p>
<p>A number of leading designers have already dominated this Wordpress premium themes market; quite notably: <a href="http://fearlessflyer.com/u/woothemes">Woothemes</a>, <a href="http://themereviewer.net/u/l">DIYThemes</a> and <a href="http://www.studiopress.com/">StudioPress</a>. </p>
<p>But amongst these big names you may have come across a more succinct, straightforward and classy premium theme designer &#8211; simply named &#8220;<a href="http://fearlessflyer.com/u/elegantthemes">Elegant Themes</a>&#8220;. </p>
<h3>Who is Elegant Themes?</h3>
<p>Elegant Themes is owned by a designer named <a href="http://twitter.com/elegantthemes">Nick Roach</a>. This means that all of the designs and code that is produced from Elegant Themes is from this mighty fellow. According to Nick: </p>
<blockquote><p>I created this website to provide WordPress themes of quality and integrity. I craft my themes with a goal of simplicity and professionalism and strive to inject each design with a dose of modest elegance. I believe that your website is not just a tool, it is an integral part of your identity. My job is to respect each customer by providing attractive and userfriendly templates that will help you achieve your online goals.</p></blockquote>
<h3>What&#8217;s so special about Elegant Themes?</h3>
<p><strong>Quality over quantity. </strong> Elegant Themes is hardly a large collection &#8211; I mean, there&#8217;s only about 30 downloadable themes at the time of this writing. But note they are quite high quality. Check out some of them below: </p>
<p><strong><a href="http://www.elegantthemes.com/affiliates/idevaffiliate.php?id=147&#038;keyword=wooden&#038;custom=97">Wooden</a></strong></p>
<p>Very down to earth, classy and professionally done &#8211; this theme can transform your blog into a modern website wonder.<br />
<a href="http://www.elegantthemes.com/affiliates/idevaffiliate.php?id=147&#038;keyword=wooden&#038;custom=97"><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/12/wooden.jpg" alt="wooden" title="Wooden By Elegant Themes" width="576" height="323" class="alignnone size-full wp-image-1101" /></a></p>
<p><strong><a href="http://www.elegantthemes.com/affiliates/idevaffiliate.php?id=147&#038;keyword=lumin&#038;custom=96">Lumin</a></strong></p>
<p>Soothing to the eye with subtle textures and sharp, detailed accents &#8211; this theme is packed with visual amenities that scream <strong>WEB 2.0</strong>!<br />
<a href="http://www.elegantthemes.com/affiliates/idevaffiliate.php?id=147&#038;keyword=lumin&#038;custom=96"><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/12/lumin.jpg" alt="lumin" title="Lumin by Elegant Themes" width="576" height="323" class="alignnone size-full wp-image-1100" /></a></p>
<p><strong><a href="http://www.elegantthemes.com/affiliates/idevaffiliate.php?id=147&#038;keyword=grungemag&#038;custom=98">GrungeMag</a></strong></p>
<p>Semi-magazine, semi-newspaper &#8211; beautiful textures, slider, thumbnails &#8211; simply stunning.<br />
<a href="http://www.elegantthemes.com/affiliates/idevaffiliate.php?id=147&#038;keyword=grungemag&#038;custom=98"><br />
<img src="http://fearlessflyer.com/main/wp-content/uploads/2009/12/grungemag.jpg" alt="grungemag" title="Grungemag by Elegant Themes" width="576" height="323" class="alignnone size-full wp-image-1099" /></a></p>
<p><strong><a href="http://www.elegantthemes.com/affiliates/idevaffiliate.php?id=147&#038;keyword=evid&#038;custom=99">Evid</a></strong></p>
<p>Create your own “<strong>Hulu</strong>” styled video website with this theme:<br />
<a href="http://www.elegantthemes.com/affiliates/idevaffiliate.php?id=147&#038;keyword=evid&#038;custom=99"><br />
<img src="http://fearlessflyer.com/main/wp-content/uploads/2009/12/evid.jpg" alt="evid" title="Evid by Elegant Themes" width="576" height="323" class="alignnone size-full wp-image-1098" /><br />
</a></p>
<p><strong><a href="http://www.elegantthemes.com/affiliates/idevaffiliate.php?id=147&#038;keyword=deviant&#038;custom=100">Deviant</a></strong></p>
<p>The ultimate grunge look! Random page tears, crumpled paper, dirty textures &#8211; you want your blog to stand out from the crowd &#8211; this be the theme for you!<br />
<a href="http://www.elegantthemes.com/affiliates/idevaffiliate.php?id=147&#038;keyword=deviant&#038;custom=100"><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/12/deviant.jpg" alt="deviant" title="Deviant by Elegant Themes" width="576" height="323" class="alignnone size-full wp-image-1096" /></a></p>
<p>Like Nick said &#8211; <em>&#8220;each design is injected with a dose of modest elegance&#8221;</em>. With each theme you will find excellent color schema, superb use of typography, plenty of textures, just the right amount of Javascript, and above all &#8211; originality. The themes obviously took time to build.</p>
<h3>You Can&#8217;t Beat 20 Bucks a Year!</h3>
<p>I don&#8217;t think I can elaborate on this any further. $20 dollars a year gives you unlimited access to all of Elegant Themes. Whether you’re a blog owner, an entrepreneur, or even a web developer &#8211; you’ve already won by having this arsenal of elegant designs to beautify your websites; all for about the same price as a bucket of fried chicken. <a href="http://www.elegantthemes.com/affiliates/idevaffiliate.php?id=147&#038;keyword=join&#038;url=3">Head on over to Elegant Themes!</a></p>
]]></content:encoded>
			<wfw:commentRss>http://fearlessflyer.com/2009/12/elegant-themes-best-value-themes-club/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Create a Single Page Portfolio from Scratch &#8211; Part 2: HTML and CSS</title>
		<link>http://fearlessflyer.com/2009/12/create-a-single-page-portfolio-from-scratch-part-2-html-and-css/</link>
		<comments>http://fearlessflyer.com/2009/12/create-a-single-page-portfolio-from-scratch-part-2-html-and-css/#comments</comments>
		<pubDate>Sun, 13 Dec 2009 23:30:22 +0000</pubDate>
		<dc:creator>Michael Soriano</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Websites]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[single page portfolio]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://fearlessflyer.com/?p=1035</guid>
		<description><![CDATA[Now we have come to part 2 of this series on how to create a single page portfolio from scratch. This part focuses on the HTML and CSS mark up to convert our .psd file to a living web page. The tools we need for this is of course &#8211; Photoshop, an HTML editor (in [...]]]></description>
			<content:encoded><![CDATA[<p>Now we have come to part 2 of this series on how to create a single page portfolio from scratch. This part focuses on the HTML and CSS mark up to convert our .psd file to a living web page. The tools we need for this is of course &#8211; Photoshop, an HTML editor (in my case I’m using Dreamweaver) and multiple browsers for page testing. We’re also going to toggle between these tools a lot so be prepared to switch programs by using alt + tab often. </p>
<p>To preview what we are going to build &#8211; <strong><a href="http://fearlessflyer.com/main/wp-content/uploads/demo/one-page-portfolio/">see the demo page</a></strong>. Just in case you missed the first tutorial, click <strong><a href="http://fearlessflyer.com/2009/11/create-a-single-page-portfolio-from-scratch-part-1-photoshop-mockup/">here</a></strong>. So are you ready to get started? Let’s begin: </p>
<p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/12/part2.jpg" alt="part2" title="This is Part 2 of a 3 part series" width="576" height="189" class="alignnone size-full wp-image-1122" /></p>
<h3>The Wrap, Header and Feature Divs</h3>
<p>First of all, you will notice that our layout doesn’t really have anything in the header. This is because I’m sure you will use your own logo for your design &#8211; so I left that out. Second, is there really is no need for a navigation bar because we’re only building a single page. Although we may include some anchors in this area so we can quickly jump from one section of the page to another. Also important to recognize that most modern websites now have a large “feature” section which packs the main message of the website. This effect is proven to be pretty effective &#8211; that’s why we’re applying the same concept to our portfolio site. </p>
<p>In Dreamweaver, create a new HTML page, name it “<strong>index.html</strong>” and save it. </p>
<p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/12/sp1.jpg" alt="sp1" title="New HTML document in Dreamweaver" width="576" height="478" class="alignnone size-full wp-image-1037" /></p>
<p>Create a CSS document &#8211; name it “<strong>styles.css</strong>” and save it in the same location as “index.html”. Link to the stylesheet from index.html by using a link tag:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">&lt;link type<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span>  href<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;styles.css&quot;</span> rel<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;stylesheet&quot;</span> /<span style="color: #00AA00;">&gt;</span></pre></div></div>

<p>Now, we create the main DIV &#8211; we’ll call this the “<strong>wrap</strong>”. In this DIV we’ll house almost all of our elements (all but one: the footer &#8211; which I’ll explain later). In index.html, enter the code:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">&lt;div id<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;wrap&quot;</span><span style="color: #00AA00;">&gt;</span>  &lt;/div<span style="color: #00AA00;">&gt;</span>&lt;!--wrap--<span style="color: #00AA00;">&gt;</span></pre></div></div>

<p>Next, we grab the body style of our page. Go to Photoshop and open our mockup. Flatten the image (“<strong>Layer</strong>” > “<strong>Flatten Image</strong>”) and grab a piece of background: </p>
<p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/12/sp2.jpg" alt="sp2" title="Grab a piece for the background" width="576" height="334" class="alignnone size-full wp-image-1038" /></p>
<p>Still in Photoshop, press Ctrl + C to copy the selected area, create a new document &#8211; and paste (this will be our HTML body background that will span horizontally). Save this file as “<strong>body-bg.gif</strong>” inside a folder called “<strong>images</strong>” in our root directory.</p>
<p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/12/sp3.jpg" alt="sp3" title="Save as body-bg.gif" width="576" height="478" class="alignnone size-full wp-image-1039" /></p>
<p>Next is we apply some fixin’s to our CSS:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #00AA00;">*</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">&#125;</span>
  body<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/body-bg.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">repeat-x</span> <span style="color: #cc00cc;">#f3f2ed</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>The above code tells everything to reset to 0 padding and 0 margin. It also applies the body background to the image we just created, repeat it horizontally and apply the color #f3f2ed everywhere else. View your file in the browser, you should have something like below: </p>
<p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/12/sp4.jpg" alt="sp4" title="This is how our HTML looks so far" width="576" height="454" class="alignnone size-full wp-image-1040" /></p>
<p>Now remember we created the main div? That is just sitting in somewhere in the page. Let’s apply some standard measurements to it and align it so it settles perfectly in the middle of our browser. </p>
<p>Note that in the beginning of this tutorial &#8211; I was going to use the <strong>960.gs</strong> framework, but feel as though I’m cheating because the tutorial calls for “<strong>from scratch</strong>”. So I decided, I’m not using the framework and code everything by hand, hence &#8211; “<strong>from scratch</strong>”. </p>
<p>Add this code to your style.css:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#wrap</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">960px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#CCCCCC</span><span style="color: #00AA00;">;</span>  <span style="color: #000000; font-weight: bold;">min-height</span><span style="color: #00AA00;">:</span><span style="color: #933;">500px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>This centers our wrap in the middle of the page, as well as set the default 960 pixels width. The background color and the minimum height properties are added temporarily so we can tell from the browser what we’re working with. Refresh your page and you should have something like below:</p>
<p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/12/sp5.jpg" alt="sp5" title="Our Wrap DIV in gray background" width="576" height="349" class="alignnone size-full wp-image-1041" /></p>
<p>Go back to index.html and add the <strong>header </strong>div inside the wrap div:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;div  id=&quot;header&quot;&gt;&lt;/div&gt;&lt;!--header--&gt;</pre></div></div>

<p>Back to our style.css &#8211; add this piece of code:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#header</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">32px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#333333</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Refresh your browser &#8211; and you can see where our header sits nicely on top. The background color again is temporary. </p>
<p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/12/sp6.jpg" alt="sp6" title="See the Header?" width="576" height="349" class="alignnone size-full wp-image-1042" /></p>
<p>Next is our feature div. Create a new div tag in your index.html with the id of “<strong>feature</strong>”, place in between the “feature” divs. Add two paragraph tags inside with your own text. In my case &#8211; I’m using the default Lorem latin filler text:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;div id=&quot;feature&quot;&gt;
&lt;p id=&quot;slogan&quot;&gt;&lt;!--your fantastic slogan goes here--&gt;&lt;/p&gt;
&lt;p&gt;&lt;!--followed by a smaller, but also fantastic slogan here--&gt;&lt;/p&gt;
&lt;/div&gt;&lt;!--feature--&gt;</pre></td></tr></table></div>

<p>Notice the first paragraph tag has an id of “<strong>slogan</strong>”. This is because this is the primary text that we are going to style with an image. We are treating it as regular text for SEO purposes. </p>
<p>Go back to your mock up in Photoshop and press “<strong>Step Backward</strong>” (ctrl + z + alt) several times until you get the fully layered version once again. Make sure the guides are showing &#8211; select the feature section like below: </p>
<p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/12/sp7.jpg" alt="sp7" title="Grab our Feature Area in Photohsop" width="576" height="454" class="alignnone size-full wp-image-1043" /></p>
<p>In your layers panel, make sure you hide all the layers that shouldn’t be shown. This includes all the background layers and text elements. The only layer that should remain is the large feature image and the borders and glow to the left. Select the feature area and hit crop (“image” > “crop”). Save this as “<strong>feature.png</strong>” inside our images folder. This will be our feature div background image:</p>
<p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/12/sp8.jpg" alt="sp8" title="Save as feature.png" width="576" height="413" class="alignnone size-full wp-image-1044" /></p>
<p>Now in our styles.css &#8211; add the following code:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#feature</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/feature.png</span><span style="color: #00AA00;">&#41;</span>  <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">394px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Go back to your mockup and click “<strong>Step Backward</strong>” (“Edit” > “Step Backward”) to uncrop. Unhide the slogan layer and select it according to the guides. Crop once again and save this as “<strong>slogan.png</strong>”. </p>
<p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/12/sp9.jpg" alt="sp9" title="Save as slogan.png" width="576" height="454" class="alignnone size-full wp-image-1045" /></p>
<p>Now add this code to your styles.css:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#feature</span> p<span style="color: #cc00cc;">#slogan</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/slogan.png</span><span style="color: #00AA00;">&#41;</span>  <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">390px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">192px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">text-indent</span><span style="color: #00AA00;">:</span><span style="color: #933;">-9999px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>  <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #933;">30px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#feature</span> p <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span>verdana<span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>  <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">320px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">48px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">28px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>The above code styles the two paragraph tags inside the feature div. The first one with a background image, and the next one as plain text. Now when search engines crawl our page &#8211; it still thinks both are plain text &#8211; which is a good thing. </p>
<p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/12/sp10.jpg" alt="sp10" title="Voila! Our HTML is coming along!" width="576" height="387" class="alignnone size-full wp-image-1046" /></p>
<p>I’ve also taken out the color property in our wrap div to see how our feature looks like. Another thing to remember is that since our feature sits in its own div &#8211; it will be easy to add a slideshow or something to that effect as replacement. </p>
<p>Now that our wrap, header and feature is in place, we’re ready to move to the next sections: <strong><a href="http://fearlessflyer.com/2009/12/create-a-single-page-portfolio-from-scratch-part-2-html-and-css/2/">Testimonials and Previous Work:</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://fearlessflyer.com/2009/12/create-a-single-page-portfolio-from-scratch-part-2-html-and-css/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Add a Style Switcher to your Wordpress Theme</title>
		<link>http://fearlessflyer.com/2009/12/add-a-style-switcher-to-your-wordpress-theme/</link>
		<comments>http://fearlessflyer.com/2009/12/add-a-style-switcher-to-your-wordpress-theme/#comments</comments>
		<pubDate>Sat, 05 Dec 2009 22:29:17 +0000</pubDate>
		<dc:creator>Michael Soriano</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WP Themes]]></category>
		<category><![CDATA[admin panel]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Options]]></category>
		<category><![CDATA[style switcher]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://fearlessflyer.com/?p=991</guid>
		<description><![CDATA[Whenever I download a Wordpress theme there’s hardly ever a time that I leave it as is. Almost for sure &#8211; I will have to change some things to customize according to the site’s identity. For instance, maybe I’d want to match the heading styles to a company logo, or change the background colors to [...]]]></description>
			<content:encoded><![CDATA[<p>Whenever I download a Wordpress theme there’s hardly ever a time that I leave it as is. Almost for sure &#8211; I will have to change some things to customize according to the site’s identity. For instance, maybe I’d want to match the heading styles to a company logo, or change the background colors to have the same schema or simply change the link styles to have a sharper look. Wouldn’t it be nice to have the ability to change all of this by switching style sheets from the theme options?</p>
<p>This tutorial will show you how to create a simple style switcher from your themes options panel. It will have a single drop down list with all the available styles to pick from. Once saved &#8211; your theme will switch to the selected style. Ready to get started &#8211; let’s begin:</p>
<h3>Part 1 – Set up functions.php</h3>
<p>First thing you need is a <strong>functions.php</strong> file. A functions file is an optional “plugin” type of file you can include in your theme directory folder.  One of its’ purpose is to setup administration options for your theme – which is exactly what we’re doing. Create a file and name it “<strong>functions.php</strong>” and paste the code below. Note that you need to change variables that define your theme name (<strong>$themename</strong>) and the short name (<strong>$shortname</strong>) to match your themes:</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
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> 
&nbsp;
<span style="color: #000088;">$themename</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;My Sweet Theme&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$shortname</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;mst&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$options</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span> <span style="color: #009900;">&#40;</span>
<span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;name&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Style Sheet&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;desc&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Enter the Style Sheet you would like to use for Sweet Ass Theme&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;id&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$shortname</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;_style_sheet&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;type&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;select&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;options&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;default&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;green&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;blue&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;yellow&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> 
	<span style="color: #0000ff;">&quot;std&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;default&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>The above code initializes your theme options structure. First it defines several variables, including a multi-dimensional array (which will become our drop down list containing the four selectable options that will dictate our style sheets). Next is to copy the code below. This code loops through each iteration of the array we declared previously. It assigns a type of form field, displays labels and applies the correct descriptions etc. It also includes several functions that saves the form data, resets information and displays status messages etc. It&#8217;s a wee bit technical &#8211; so its better if we simply copy and paste the code.</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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000000; font-weight: bold;">function</span> mytheme_add_admin<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$themename</span><span style="color: #339933;">,</span> <span style="color: #000088;">$shortname</span><span style="color: #339933;">,</span> <span style="color: #000088;">$options</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'page'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #990000;">basename</span><span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">__FILE__</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'save'</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'action'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$options</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
update_option<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$options</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$value</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;">isset</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</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> update_option<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#93;</span>  <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span> delete_option<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Location: themes.php?page=functions.php&amp;saved=true&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">die</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'reset'</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'action'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$options</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
delete_option<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Location: themes.php?page=functions.php&amp;reset=true&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">die</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
add_theme_page<span style="color: #009900;">&#40;</span><span style="color: #000088;">$themename</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot; Options&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$themename</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot; Options&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'edit_themes'</span><span style="color: #339933;">,</span> <span style="color: #990000;">basename</span><span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">__FILE__</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'mytheme_admin'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> mytheme_admin<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$themename</span><span style="color: #339933;">,</span> <span style="color: #000088;">$shortname</span><span style="color: #339933;">,</span> <span style="color: #000088;">$options</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'saved'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;div id=&quot;message&quot; class=&quot;updated fade&quot;&gt;&lt;p&gt;&lt;strong&gt;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$themename</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' settings saved.&lt;/strong&gt;&lt;/p&gt;&lt;/div&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'reset'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;div id=&quot;message&quot; class=&quot;updated fade&quot;&gt;&lt;p&gt;&lt;strong&gt;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$themename</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' settings reset.&lt;/strong&gt;&lt;/p&gt;&lt;/div&gt;'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;div class=&quot;wrap&quot;&gt;
&lt;h2&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$themename</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> Settings&lt;/h2&gt;
&nbsp;
&lt;form method=&quot;post&quot;&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$options</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #b1b100;">switch</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'type'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
<span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;open&quot;</span><span style="color: #339933;">:</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;table width=&quot;100%&quot; border=&quot;0&quot; style=&quot;background-color:#eef5fb; padding:10px;&quot;&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;close&quot;</span><span style="color: #339933;">:</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;/table&gt;&lt;br /&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;title&quot;</span><span style="color: #339933;">:</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;table width=&quot;100%&quot; border=&quot;0&quot; style=&quot;background-color:#dceefc; padding:5px 10px;&quot;&gt;&lt;tr&gt;
&lt;td valign=&quot;top&quot; colspan=&quot;2&quot;&gt;&lt;h3 style=&quot;font-family:Georgia,'Times New Roman',Times,serif;&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/h3&gt;&lt;/td&gt;
&lt;/tr&gt;
&nbsp;
&lt;!--custom--&gt;
&nbsp;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span> 
<span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;sub-title&quot;</span><span style="color: #339933;">:</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;h3 style=&quot;font-family:Georgia,'Times New Roman',Times,serif; padding-left:8px;&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/h3&gt; 
&lt;!--end-of-custom--&gt;
&nbsp;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'text'</span><span style="color: #339933;">:</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;tr&gt;
&lt;td valign=&quot;top&quot; width=&quot;20%&quot; rowspan=&quot;2&quot; valign=&quot;middle&quot;&gt;&lt;strong&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/strong&gt;&lt;/td&gt;
&lt;td width=&quot;80%&quot;&gt;&lt;input style=&quot;width:400px;&quot; name=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; id=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; type=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'type'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> get_settings<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">echo</span> get_settings<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'std'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; /&gt;&lt;/td&gt;
&lt;/tr&gt;
&nbsp;
&lt;tr&gt;
&lt;td&gt;&lt;small&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'desc'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/small&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;margin-bottom:5px;border-bottom:1px dotted #000000;&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'textarea'</span><span style="color: #339933;">:</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;tr&gt;
&lt;td valign=&quot;top&quot; width=&quot;20%&quot; rowspan=&quot;2&quot; valign=&quot;middle&quot;&gt;&lt;strong&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/strong&gt;&lt;/td&gt;
&lt;td width=&quot;80%&quot;&gt;&lt;textarea name=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; style=&quot;width:400px; height:200px;&quot; type=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'type'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; cols=&quot;&quot; rows=&quot;&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> get_settings<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">echo</span> get_settings<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'std'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/textarea&gt;&lt;/td&gt;
&nbsp;
&lt;/tr&gt;
&nbsp;
&lt;tr&gt;
&lt;td&gt;&lt;small&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'desc'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/small&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;margin-bottom:5px;border-bottom:1px dotted #000000;&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'select'</span><span style="color: #339933;">:</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;tr&gt;
&lt;td width=&quot;20%&quot; rowspan=&quot;2&quot; valign=&quot;middle&quot;&gt;&lt;strong&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/strong&gt;&lt;/td&gt;
&lt;td width=&quot;80%&quot;&gt;&lt;select style=&quot;width:240px;&quot; name=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; id=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'options'</span><span style="color: #009900;">&#93;</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$option</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;option<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> get_settings<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$option</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">' selected=&quot;selected&quot;'</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$option</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'std'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">' selected=&quot;selected&quot;'</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$option</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/option&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/select&gt;&lt;/td&gt;
&lt;/tr&gt;
&nbsp;
&lt;tr&gt;
&lt;td&gt;&lt;small&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'desc'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/small&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;margin-bottom:5px;border-bottom:1px dotted #000000;&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;checkbox&quot;</span><span style="color: #339933;">:</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;tr&gt;
&lt;td width=&quot;20%&quot; rowspan=&quot;2&quot; valign=&quot;middle&quot;&gt;&lt;strong&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/strong&gt;&lt;/td&gt;
&lt;td width=&quot;80%&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>get_option<span style="color: #009900;">&#40;</span><span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</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: #000088;">$checked</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;checked=<span style="color: #000099; font-weight: bold;">\&quot;</span>checked<span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span><span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span> <span style="color: #000088;">$checked</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;input type=&quot;checkbox&quot; name=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; id=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; value=&quot;true&quot; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$checked</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> /&gt;
&lt;/td&gt;
&lt;/tr&gt;
&nbsp;
&lt;tr&gt;
&lt;td&gt;&lt;small&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'desc'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/small&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;margin-bottom:5px;border-bottom:1px dotted #000000;&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;p class=&quot;submit&quot;&gt;
&lt;input name=&quot;save&quot; type=&quot;submit&quot; value=&quot;Save changes&quot; /&gt;
&lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;save&quot; /&gt;
&lt;/p&gt;
&lt;/form&gt;
&lt;form method=&quot;post&quot;&gt;
&lt;p class=&quot;submit&quot;&gt;
&lt;input name=&quot;reset&quot; type=&quot;submit&quot; value=&quot;Reset&quot; /&gt;
&lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;reset&quot; /&gt;
&lt;/p&gt;
&lt;/form&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #009900;">&#125;</span>
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'admin_menu'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'mytheme_add_admin'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Test out your theme options by going under the “<strong>Appearance</strong>” section &gt; “<strong>Your Theme Name Options</strong>” tab. You will see the drop down list with the selectors already in place. Once you hit “<strong>Save Changes</strong>” &#8211; it saves your data. While clicking “<strong>Reset</strong>” sets it back to the default selector. We also see nice status messages appear on top each time we update. </p>
<p><img class="alignnone size-full wp-image-998" title="Screenshot of the theme options page" src="http://fearlessflyer.com/main/wp-content/uploads/2009/12/style-sheet-switcher1.jpg" alt="style-sheet-switcher1" width="541" height="195" /></p>
<h3>Part 2 – Create the Style Sheets</h3>
<p>Create four .css files that correspond to the drop down list selections we defined in our functions.php. The names do not have to exactly match the selectors (but is wise to have some meaningful relation to the names). Save these four files in the root directory of your theme:</p>
<p><strong>style.css</strong> &#8211; this style sheet is for a black background page with white colored fonts.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* CSS Document */</span>
body <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#000000</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p><strong>green.css</strong> &#8211; this style sheet is for a green background page with white colored fonts.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* CSS Document */</span>
body <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#3bae09</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p><strong>blue.css</strong> &#8211; this style sheet is for a blue background page with white colored fonts.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* CSS Document */</span>
body <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#038aba</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p><strong>yellow.css</strong> &#8211; this style sheet is for… you get the picture.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* CSS Document */</span>
body <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#f6f658</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#333333</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<h3>Part 3 – The Switch Statement</h3>
<p>Now that we have our options working in the back end, and we have our four style sheets sitting in the root folder waiting to be called, all we need now is a way to flip the style sheets in our header file.  We achieve this by using a standard switch statement. A <strong>switch statement</strong> in php is an alternative to the the “if…else” statement. It uses the case keyword which we use to match our selectors to execute a statement that calls the appropriate style sheet. In the default header.php file &#8211; look for the line of code below and delete it:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">&lt;link rel=&quot;stylesheet&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'stylesheet_url'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; type=&quot;text/css&quot; media=&quot;screen&quot; /&gt;</pre></td></tr></table></div>

<p>This is the standard call for the default style.css file which we no longer need. Next, paste the code below inside your <strong>header.php</strong> file:</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
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
	<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$options</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$options</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$value</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>get_settings<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">===</span> <span style="color: #009900; font-weight: bold;">FALSE</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000088;">$$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'std'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span> <span style="color: #000088;">$$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> get_settings<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #000000; font-weight: bold;">?&gt;</span>			
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">switch</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$mst_style_sheet</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		 <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;default&quot;</span><span style="color: #339933;">:</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;link rel=&quot;stylesheet&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'stylesheet_url'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; type=&quot;text/css&quot; media=&quot;screen&quot; /&gt;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>	
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;green&quot;</span><span style="color: #339933;">:</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;link rel=&quot;stylesheet&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'template_directory'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/green.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot; /&gt;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;blue&quot;</span><span style="color: #339933;">:</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;link rel=&quot;stylesheet&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'template_directory'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/blue.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot; /&gt;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;yellow&quot;</span><span style="color: #339933;">:</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;link rel=&quot;stylesheet&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'template_directory'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/yellow.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot; /&gt;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>	
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>The above code is quite self explanatory. First it grabs whichever values we’ve stored in our theme options. Second &#8211; is the switch statement for our drop down list, followed by cases for each entry &#8211; with its unique statement calling the style sheets. </p>
<p>Now if you go back to your style switcher and select “<strong>blue</strong>” &#8211; your theme style should switch to blue &#8211; and so on and so forth. </p>
<p>You can have as many styles as you wish to integrate in your options. As well as the amount of customization in the actual .css files is completely up to you. You can download the source files from this <strong><a href="http://fearlessflyer.com/downloads/style-switcher.zip">link</a></strong> &#8211; simply add these files in your theme folder and change some values &#8211; and your theme will instantly have it’s own style switcher. </p>
]]></content:encoded>
			<wfw:commentRss>http://fearlessflyer.com/2009/12/add-a-style-switcher-to-your-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Look at What They’ve Done with Django! 20 Creative Websites Running Django:</title>
		<link>http://fearlessflyer.com/2009/11/look-at-what-theyve-done-with-django/</link>
		<comments>http://fearlessflyer.com/2009/11/look-at-what-theyve-done-with-django/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 19:54:32 +0000</pubDate>
		<dc:creator>Michael Soriano</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Inspiration]]></category>
		<category><![CDATA[creative]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[showcase]]></category>
		<category><![CDATA[Websites]]></category>

		<guid isPermaLink="false">http://fearlessflyer.com/?p=965</guid>
		<description><![CDATA[Out of the hundreds of web application frameworks and content management systems available, only a select few surface for the masses to see. The reason is &#8211; not everyone who use your framework have a creative eye for making good design. Of course the more people utilize your framework &#8211; the more creative your user [...]]]></description>
			<content:encoded><![CDATA[<p>Out of the hundreds of web application frameworks and content management systems available, only a select few surface for the masses to see. The reason is &#8211; not everyone who use your framework have a creative eye for making good design. Of course the more people utilize your framework &#8211; the more creative your user pool get. </p>
<p>Take Django for instance. “Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design”. Though I never tried implementing it &#8211; here’s a list of 20 beautiful websites powered by Django:</p>
<p><strong><a href="http://shoporbitbaby.com/">http://shoporbitbaby.com/</a></strong><br />
<a href="http://shoporbitbaby.com/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/11/shoporbitbaby.jpg" alt="shoporbitbaby" width="576" height="323" class="size-full wp-image-983" /></a></p>
<p><strong><a href="http://www.bedrijfscultureelabonnement.nl/">http://www.bedrijfscultureelabonnement.nl/</a></strong><br />
<a href="http://www.bedrijfscultureelabonnement.nl/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/11/bedrijfscultureelabonnement.jpg" alt="bedrijfscultureelabonnement" width="576" height="323" class="alignnone size-full wp-image-967" /></a></p>
<p><strong><a href="http://www.dobrota.in/">http://www.dobrota.in/</a></strong><br />
<a href="http://www.dobrota.in/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/11/dobrota.jpg" alt="dobrota" width="576" height="323" class="alignnone size-full wp-image-970" /></a></p>
<p><strong><a href="http://www.onyxelectronics.com/">http://www.onyxelectronics.com/</a></strong><br />
<a href="http://www.onyxelectronics.com/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/11/onyxelectronics.jpg" alt="onyxelectronics"  width="576" height="323" class="alignnone size-full wp-image-976" /></a></p>
<p><strong><a href="http://www.drguiloff.com/">http://www.drguiloff.com/</a></strong><br />
<a href="http://www.drguiloff.com/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/11/drguiloff.jpg" alt="drguiloff"  width="576" height="323" class="alignnone size-full wp-image-971" /></a></p>
<p><strong><a href="http://rblmon.com/">http://rblmon.com/</a></strong><br />
<a href="http://rblmon.com/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/11/rblmon.jpg" alt="rblmon"  width="576" height="323" class="alignnone size-full wp-image-980" /></a></p>
<p><strong><a href="http://www.fitness-class.com.ua/">http://www.fitness-class.com.ua/</a></strong><br />
<a href="http://www.fitness-class.com.ua/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/11/fitness-class.jpg" alt="fitness-class" width="576" height="323" class="alignnone size-full wp-image-972" /></a></p>
<p><strong><a href="http://www.pbs.org/teachers/">http://www.pbs.org/teachers/</a></strong><br />
<a href="http://www.pbs.org/teachers/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/11/pbs.jpg" alt="pbs" width="576" height="323" class="alignnone size-full wp-image-979" /></a></p>
<p><strong><a href="http://www.webmasterpro.de/">http://www.webmasterpro.de/</a></strong><br />
<a href="http://www.webmasterpro.de/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/11/webmasterpro.jpg" alt="webmasterpro"  width="576" height="323" class="alignnone size-full wp-image-985" /></a></p>
<p><strong><a href="http://www.pauldeleeuw.tv/">http://www.pauldeleeuw.tv/</a></strong><br />
<a href="http://www.pauldeleeuw.tv/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/11/pauldeleeuw.jpg" alt="pauldeleeuw"  width="576" height="323" class="alignnone size-full wp-image-978" /></a></p>
<p><strong><a href="http://run-up.fr/accueil/">http://run-up.fr/accueil/</a></strong><br />
<a href="http://run-up.fr/accueil/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/11/run-up.jpg" alt="run-up"  width="576" height="323" class="alignnone size-full wp-image-982" /></a></p>
<p><strong><a href="http://zyelabs.net/">http://zyelabs.net/</a></strong><br />
<a href="http://zyelabs.net/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/11/zyelabs.jpg" alt="zyelabs" width="576" height="323" class="alignnone size-full wp-image-986" /></a></p>
<p><strong><a href="http://www.bidsketch.com/">http://www.bidsketch.com/</a></strong><br />
<a href="http://www.bidsketch.com/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/11/bidsketch.jpg" alt="bidsketch"  width="576" height="323" class="alignnone size-full wp-image-969" /></a></p>
<p><strong><a href="http://journalism.berkeley.edu/">http://journalism.berkeley.edu/</a></strong><br />
<a href="http://journalism.berkeley.edu/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/11/berkeley.jpg" alt="berkeley"  width="576" height="323" class="alignnone size-full wp-image-968" /></a></p>
<p><strong><a href="http://www.inkboxprints.com/home.html">http://www.inkboxprints.com/home.html</a></strong><br />
<a href="http://www.inkboxprints.com/home.html"><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/11/inkboxprints.jpg" alt="inkboxprints" width="576" height="323" class="alignnone size-full wp-image-974" /></a></p>
<p><strong><a href="http://outings.ca/">http://outings.ca/</a></strong><br />
<a href="http://outings.ca/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/11/outings.jpg" alt="outings" width="576" height="323" class="alignnone size-full wp-image-977" /></a></p>
<p><strong><a href="http://linux.pt/">http://linux.pt/</a></strong><br />
<a href="http://linux.pt/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/11/linux.jpg" alt="linux" width="576" height="323" class="alignnone size-full wp-image-975" /></a></p>
<p><strong><a href="http://rottenetter.no/">http://rottenetter.no/</a></strong><br />
<a href="http://rottenetter.no/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/11/rottenetter.jpg" alt="rottenetter"  width="576" height="323" class="alignnone size-full wp-image-981" /></a></p>
<p><strong><a href="http://www.gramyfair.pl/">http://www.gramyfair.pl/</a></strong><br />
<a href="http://www.gramyfair.pl/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/11/gramyfair.jpg" alt="gramyfair"  width="576" height="323" class="alignnone size-full wp-image-973" /></a></p>
<p><strong><a href="http://www.sportsgirl.com.au/">http://www.sportsgirl.com.au/</a></strong><br />
<a href="http://www.sportsgirl.com.au/"><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/11/sportsgirl.jpg" alt="sportsgirl" width="576" height="323" class="alignnone size-full wp-image-984" /></a></p>
<p>If you would like to see more websites powered by Django &#8211; visit: <strong><a href="http://www.djangosites.org/">http://www.djangosites.org/</a></strong>.</p>
<p>You also might want to find out more about Django: </p>
<ul>
<li><a href="http://jeffcroft.com/blog/2006/may/02/django-non-programmers/">http://jeffcroft.com/blog/2006/may/02/django-non-programmers/</a></li>
<li><a href="http://patrickbeeson.com/blog/2008/jul/28/how-django-good-seo/">http://patrickbeeson.com/blog/2008/jul/28/how-django-good-seo/</a></li>
<li><a href="http://docs.djangoproject.com/en/dev/">http://docs.djangoproject.com/en/dev/</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://fearlessflyer.com/2009/11/look-at-what-theyve-done-with-django/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Create a Single Page Portfolio from Scratch &#8211; Part 1: Photoshop Mockup</title>
		<link>http://fearlessflyer.com/2009/11/create-a-single-page-portfolio-from-scratch-part-1-photoshop-mockup/</link>
		<comments>http://fearlessflyer.com/2009/11/create-a-single-page-portfolio-from-scratch-part-1-photoshop-mockup/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 07:20:47 +0000</pubDate>
		<dc:creator>Michael Soriano</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[portfolio]]></category>
		<category><![CDATA[shiny]]></category>
		<category><![CDATA[Single column]]></category>
		<category><![CDATA[Single page]]></category>
		<category><![CDATA[Sleek]]></category>
		<category><![CDATA[Static]]></category>
		<category><![CDATA[Web 2.0]]></category>

		<guid isPermaLink="false">http://fearlessflyer.com/?p=899</guid>
		<description><![CDATA[Ahhh &#8211; so many choices when it comes to what open source software to use: Joomla, Wordpress, Drupal&#8230;but aren’t they at times &#8211; a little overkill? For smaller web designers like myself, I still get the usual client who just wants a simple website to advertise their services. Most of the time they will have [...]]]></description>
			<content:encoded><![CDATA[<p>Ahhh &#8211; so many choices when it comes to what open source software to use: <a href="http://www.joomla.org/">Joomla</a>, <a href="http://wordpress.org">Wordpress</a>, <a href="http://drupal.org/">Drupal</a>&#8230;but aren’t they at times &#8211; a little overkill? For smaller web designers like myself, I still get the usual client who just wants a simple website to advertise their services. Most of the time they will have something existing &#8211; with cluttered content that isn’t even enough to fill a full page. This is where a single page portfolio comes handy. In this tutorial, we’re going to build a single page portfolio from scratch: a page with a feature section, testimonials, image gallery and a contact form. </p>
<p>This tutorial is the first of three parts: 1) the Photoshop Mock up, 2) <strong><a href="http://fearlessflyer.com/2009/12/create-a-single-page-portfolio-from-scratch-part-2-html-and-css/">Coding the HTML / CSS</a></strong> and finally 3) Adding PHP / jQuery. </p>
<p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/11/part1.jpg" alt="part1" title="This is the first part of a 3 part series" width="576" height="189" class="alignnone size-full wp-image-1119" /></p>
<h3>The Output</h3>
<p>Below is a preview of what we’re building. The aim is to have a mock up that is fully layered, so we can optimize for the purpose of SEO and page performance. Ready to get started &#8211; Let’s begin:  </p>
<p><a href="http://fearlessflyer.com/main/wp-content/uploads/2009/11/single-page-1-large.jpg"><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/11/single-page-1.jpg" alt="single-page-1" title="This is How the Page looks so far - Click to enlarge" width="576" height="923" class="alignnone size-full wp-image-902" /></a></p>
<h3>Part 1 &#8211; The Fold</h3>
<p>We’re going to design the page from the top to bottom. The fold is first part of a web page can see &#8211; without having to scroll downwards. In our case, this includes the header and the big red feature bar:</p>
<p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/11/single-page-0.jpg" alt="single-page-0" title="The fold is the first thing you see in a web page" width="576" height="248" class="alignnone size-full wp-image-901" /></p>
<p>If you aren’t familiar with 960.gs &#8211; it’s a CSS framework that follows the standard 960 pixels page width rule. Download the photoshop template and check out the guides &#8211; we are building the page following the 960 grid rules:</p>
<p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/11/single-page-2.jpg" alt="single-page-2" title="The 960 Photoshop Template showing the pink layers and guides to help you align elements" width="576" height="581" class="alignnone size-full wp-image-904" /></p>
<p>Create a new layer &#8211; this will be the fold layer. Select the full page width, with approximately 380 pixels in height. Fill it with a solid color &#8211; in my case I chose a bright red #730701: </p>
<p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/11/single-page-3.jpg" alt="single-page-3" title="The Fold Fill Layer" width="576" height="581" class="alignnone size-full wp-image-905" /></p>
<p>Create another layer for the header bar, select the full page width and 48 pixels in height. Fill this with another solid color &#8211; in my case, #bcbcbc for light grey. </p>
<p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/11/single-page-4.jpg" alt="single-page-4" title="The Header Fill Layer" width="576" height="581" class="alignnone size-full wp-image-906" /></p>
<p>Where the header bar and the fold meet, we want to add an “etched” effect. We achieve this by using 2 lines using the “line” tool. Create 2 horizontal lines at 1 pixel each (make sure you hold the “Shift” key) as you drag it across the page. Nudge one line so that they sit just on top of one another. The rule is to use a lighter shade for one line, and a darker for the other (it is important that you play with the colors, and zoom out and test if the etched look is achieved). Add a subtle gradient fill for the header bar as well. </p>
<p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/11/single-page-5.jpg" alt="single-page-5" title="Two Horizontal Lines create an Etched Effect" width="576" height="313" class="alignnone size-full wp-image-907" /></p>
<p>The next step is to add a large feature image. This sits on top of all the layers to give it that 3D effect. Place in at almost half the 960 pixel page width, overlapping some part of the header and pass below the fold. Include the effects as shown:</p>
<p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/11/single-page-6.jpg" alt="single-page-6" title="Large Overlapping Feature Images are So In!" width="576" height="308" class="alignnone size-full wp-image-908" /></p>
<p>Immediately to the left of the feature image, add your large slogan text. This is to be your attention grabbing statement, and is important to be the most prominent. I chose Rockwell at size 36 pixels, with -50 tracking. Also add the following text effects: </p>
<ul>
<li>Drop shadow &#8211; Normal blend mode &#8211; #000, 90 degrees angle, 1px distance, 0 spread and 1px in size</li>
<li>Inner Shadow  &#8211; Normal blend mode &#8211; #FFF, 90 degrees angle, 1px distance, 0 choke and 0px size</li>
<li>Gradient Overlay &#8211; use default settings, reduce opacity to 34% and 90 degrees in angle</li>
</ul>
<p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/11/single-page-7.jpg" alt="single-page-7" title="Large Slogan Text with my Favorite font - Rockwell" width="576" height="581" class="alignnone size-full wp-image-909" /></p>
<p>Add a gradient effect to the background layer named the fold. The rule is to use a slightly lighter color than the existing background as one color, and the same background color as the secondary color. Fill by pressing the shift key and releasing simultaneously.</p>
<p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/11/single-page-8.jpg" alt="single-page-8" title="Add some gradient effects Baby!" width="576" height="418" class="alignnone size-full wp-image-910" /></p>
<p>Add another 2 horizontal lines right underneath the slogan text. *Use the rule as described in the previous line tools used in the header and the fold separation. Add a smaller set of text &#8211; I used Arial with 14 pixels in size, #FFFFFF color.</p>
<p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/11/single-page-9.jpg" alt="single-page-9" title="Here goes that Etched Borders again" width="576" height="452" class="alignnone size-full wp-image-911" /></p>
<p>To complete the fold &#8211; we add a glow effect to the bottom area where the borders separate the large text and the small text. Select a small area (shown below), grab the brush tool, select white for the color, increase the brush radius (shown below) &#8211; reduce the opacity all the way to 12 percent and daub a quick light stroke. Next up: <strong><a href="http://fearlessflyer.com/2009/11/create-a-single-page-portfolio-from-scratch-part-1-photoshop-mockup/2/">Below the Fold</a></strong>.</p>
<p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/11/single-page-10.jpg" alt="single-page-10" title="Give it a little glow" width="576" height="425" class="alignnone size-full wp-image-912" /></p>
]]></content:encoded>
			<wfw:commentRss>http://fearlessflyer.com/2009/11/create-a-single-page-portfolio-from-scratch-part-1-photoshop-mockup/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
