<?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 &#187; WP Themes</title> <atom:link href="http://fearlessflyer.com/category/wp-themes/feed/" rel="self" type="application/rss+xml" /><link>http://fearlessflyer.com</link> <description>Fearless flyer is a blog that focuses on the latest topics of web design. This includes Wordpress, SEO, Photoshop, jQuery, PHP and CSS. Fearless flyer is owned and operated by Michael Soriano, a seasoned web developer living in Southern California.</description> <lastBuildDate>Tue, 07 Sep 2010 21:02:16 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>Free Kick Ass Theme built for WP 3: Rotary</title><link>http://fearlessflyer.com/2010/09/free-kick-ass-theme-built-for-wp-3-rotary/</link> <comments>http://fearlessflyer.com/2010/09/free-kick-ass-theme-built-for-wp-3-rotary/#comments</comments> <pubDate>Tue, 07 Sep 2010 20:59:50 +0000</pubDate> <dc:creator>michael soriano</dc:creator> <category><![CDATA[Freebies]]></category> <category><![CDATA[General]]></category> <category><![CDATA[WP Themes]]></category> <category><![CDATA[Wordpress Themes]]></category> <category><![CDATA[carousel]]></category> <category><![CDATA[CMS]]></category> <category><![CDATA[custom post type]]></category> <category><![CDATA[free]]></category> <category><![CDATA[free theme]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[roundabout]]></category> <category><![CDATA[Themes]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[wordpress 3.0]]></category> <category><![CDATA[WP]]></category><guid isPermaLink="false">http://fearlessflyer.com/?p=1833</guid> <description><![CDATA[Oh I spend too much time in front of my pc – my wife always say. This time around – I sat, designed and coded a straight how many hours and am glad to produce: Rotary. Rotary is a two column theme with tons of features including a kicker home page. It is built to [...]]]></description> <content:encoded><![CDATA[<p>Oh I spend too much time in front of my pc – my wife always say. This time around – I sat, designed and coded a straight how many hours and am glad to produce: Rotary. Rotary is a two column theme with tons of features including a kicker home page. It is built to be used with WordPress 3.0, and is centered around the idea of running your blog as a CMS. Let me explain:</p><div class="special">You can download the zip file from this <strong><a href="http://fearlessflyer.com/downloads/rotary.zip">location</a></strong>. If you like the theme &#8211; don&#8217;t forget to <strong><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&#038;hosted_button_id=10809689">donate</a></strong>!</div><div class="viewdemo"><a href="http://rotary.fearlessflyer.com/">View the Demo</a></div><h3>Custom Post Type</h3><p>You like that carousel / slider in the home page? Well that is due to the amazing code known as the <strong><a href="http://fredhq.com/projects/roundabout/">roundabout by Fred LeBlanc</a></strong>. You can easily change the contents of this carousel in two ways:</p><h6>1) Using a custom post type</h6><p>In the left hand side of the admin area you will notice a section called “<strong>Roundabouts</strong>”. Simply add a new roundabout and give it a title, some content and attach a “<em>feature image</em>”.</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/09/rotary2.jpg" alt="" title="rotary2" width="576" height="483" class="alignnone size-full wp-image-1837" /></p><p>The images are automatically resized to the right dimensions. Also &#8211; you’re only allowed up to 5 roundabouts.</p><h6>2) Change the static code</h6><p>If you decide you don’t want to use the custom post type feature – you can simply change the HTML. Inside home.php you will see  an unordered list with each item as follows:</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;li&gt;&lt;a href=&quot;#&quot;&gt;&lt;img src=&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>/images/586x360.jpg&quot; alt=&quot;Need Image Here&quot; /&gt;&lt;/a&gt;&lt;div class=&quot;hiddendesc&quot;&gt;Need to Enter Image&lt;/div&gt;&lt;/li&gt;</pre></td></tr></table></div><p>Simply replace the values of your images, title and link and you’re set to go.</p><h3>The Navigation Menu</h3><p>This by far is my favorite 3.0 feature – custom menus. It&#8217;s simply amazing. I’ve added the code to Rotary that lets you design the main navigation of the theme.</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/09/rotary3.jpg" alt="" title="rotary3" width="576" height="500" class="alignnone size-full wp-image-1838" /></p><p>Simply drag and drop items to the menu builder and save.</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/09/rotary4.jpg" alt="" title="rotary4" width="576" height="175" class="alignnone size-full wp-image-1839" /></p><h3>Feature Images</h3><p>Just like the roundabout items – all posts in this theme can have its own feature image. Simply use the “<em>Set feature Image</em>” option for each post:</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/09/rotary5.jpg" alt="" title="rotary5" width="576" height="550" class="alignnone size-full wp-image-1840" /></p><p>This image will show as thumbnails in the archive pages, and a medium photo inside the single page template:</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/09/rotary6.jpg" alt="" title="rotary6" width="576" height="350" class="alignnone size-full wp-image-1835" /></p><h3>Conclusion</h3><p>Truly by using the features above – you can utilize the power of WordPress 3.0 as well as turn your blog into a cool CMS.  Give Rotary a spin – it’s cool, it works and it’s free!</p><p><em>So, why do I give away my themes away? </em></p><p>Because I believe in you people. I believe that if you like my work so much – that you’ll <strong><a href="http://twitter.com/_fearlessflyer">follow</a></strong> me in Twitter,<strong> <a href="http://www.facebook.com/pages/Fearless-Flyer-Design/136158589732362">like</a></strong> me in Facebook or even <strong><a href="http://feeds.feedburner.com/Fearlessflyer">subscribe</a></strong> to my feed. I believe that you <strong>WILL NOT </strong>remove my credits in the bottom of the theme. I even believe that you will <strong><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&#038;hosted_button_id=10809689">make a small donation</a></strong> – so I can keep building other things that can be useful to you in the future.</p> ]]></content:encoded> <wfw:commentRss>http://fearlessflyer.com/2010/09/free-kick-ass-theme-built-for-wp-3-rotary/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>Automating the Guest Post Process</title><link>http://fearlessflyer.com/2010/04/automating-the-guest-post-process/</link> <comments>http://fearlessflyer.com/2010/04/automating-the-guest-post-process/#comments</comments> <pubDate>Sun, 11 Apr 2010 18:05:53 +0000</pubDate> <dc:creator>michael soriano</dc:creator> <category><![CDATA[General]]></category> <category><![CDATA[Tutorials]]></category> <category><![CDATA[WP Themes]]></category> <category><![CDATA[automate]]></category> <category><![CDATA[guest posts]]></category> <category><![CDATA[tdo mini forms]]></category> <category><![CDATA[Themes]]></category> <category><![CDATA[Wordpress]]></category><guid isPermaLink="false">http://fearlessflyer.com/?p=1346</guid> <description><![CDATA[Ever wonder how to convert your WordPress blog into a more automated posting process? One that can accept guest posts, job listings or even a forum-type of blog? Where users can submit a post, save it into your drafts section and all you have to do is approve or deny? The beauty of the open [...]]]></description> <content:encoded><![CDATA[<p>Ever wonder how to convert your WordPress blog into a more automated posting process? One that can accept guest posts, job listings or even a forum-type of blog? Where users can submit a post, save it into your drafts section and all you have to do is approve or deny? The beauty of the open source community is that someone, somewhere had already thought about doing this, and have already developed a solution. With a combination of several plugins and some custom styling, here is how I was able to automate the guest post submission process here in my blog:</p><p>First thing you have to do is check the “<strong>Anyone can Register</strong>” option under “Settings” > “<strong>General</strong>”. Don’t forget to leave the “<strong>New User Default Role</strong>” as “<strong>Subscriber</strong>”.</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/04/auto-1.jpg" alt="" title="Enabling the Anyone can Register Option" width="576" height="100" class="alignnone size-full wp-image-1347" /></p><h3>Lock Down the Registration Process</h3><p>Now that you have your site open for registration, it is best that you install these plugins first to enable tighter security:</p><div class="pros"><strong><a href="http://bueltge.de/wordpress-login-sicherheit-plugin/652/">Secure WP</a></strong> – as many options that this plugin comes with to enhance security, what I especially need it for is to disable the error messages at login (which this plugin does very well)</div><div class="pros"><strong><a href="http://didier.lorphelin.free.fr/blog/index.php/wordpress/sabre/">SABRE</a></strong> &#8211; stands for “Simple Anti Bot Registration Engine”. This produces that image during registration to block “autobots”</div><div class="pros"><strong><a href="http://devel.kostdoktorn.se/limit-login-attempts">Limit Login Attempts</a></strong> – the plugin title says it all. Activate this plugin and tweak depending how tight you want login attempts. Note that you’re not going to see any error messages due to the Secure WP plugin</div><h3>Hide the WP Admin Panel</h3><p>So registration is open, security is tight – you still don’t want users to see your WordPress admin area. Not that there’s anything wrong with that – but it just looks more sophisticated when all is done in the front end. Install the following plugins:</p><div class="pros"><strong><a href="http://www.jfarthing.com/wordpress-plugins/theme-my-login-plugin">Theme My Login</a></strong> &#8211; this plugin will generate a page called “<strong>Login</strong>” – this is where your new login forms (includes new registration and forgot password) will sit. Additional options also include custom emails, redirection and moderation. *Make sure you check “<strong>Enable Template Tag</strong>” under “<strong>Optimization</strong>” – You’ll need this in your theme later</div><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/04/theme-my-login.jpg" alt="" title="Theme My Login Settings" width="576" height="320" class="alignnone size-full wp-image-1352" /></p><div class="pros"><strong><a href="http://www.jfarthing.com/wordpress-plugins/theme-my-profile-plugin">Theme My Profile</a></strong> – plugin created by the same author, which ports the users “profile” page into the front end.  Make sure you theme and block admin area ONLY for roles you want.</div><p>The following screenshots show the login page, as well as the profile page generated by the plugins that I’ve mentioned:</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/04/registration.jpg" alt="" title="The New Registration Form" width="576" height="520" class="alignnone size-full wp-image-1353" /></p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/04/profile.jpg" alt="" title="The Themed User Profile Page" width="576" height="520" class="alignnone size-full wp-image-1350" /></p><h3>TDO Mini Forms</h3><p>We’ve come to the meat of the project.  This is the plugin that does all the magic. <a href="http://thedeadone.net/download/tdo-mini-forms-wordpress-plugin/">TDO Mini Forms</a> allows users (registered on not registered) to submit and edit posts to your blog. It comes with its form creator that lets you design the post submission form any way you want. Widgets that let you drag and drop components into your form, as well as a form “<strong>hacker</strong>” that allows even deeper code tweaking. What I especially liked is that it hooks up with your “<strong>Akismet</strong>” for spam protection.</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/04/tdo-mini-forms-1.jpg" alt="" title="TDO Mini Forms Configuration Page" width="576" height="520" class="alignnone size-full wp-image-1354" /></p><p>After specifying all the configuration settings with TDO, go ahead and create a form with “Form Creator”. The form creator is a somewhat decent drag and drop interface where you grab the widgets in the bottom and drag it to the form.  Widget settings are applied by clicking on the settings tab and it brings up the settings window as shown below:</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/04/tdo-mini-forms-2.jpg" alt="" title="Form Creator by TDO" width="576" height="520" class="alignnone size-full wp-image-1355" /></p><p>Once you’ve decided on the fields and the settings, you can now alter the code to change the verbiage, along with adding HTML elements in order to be able to style it in your stylesheet.  Below shows my contribute form:</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/04/contribute1.jpg" alt="" title="My newly styled Contribute Form" width="576" height="520" class="alignnone size-full wp-image-1356" /></p><h5>Maybe some Custom Code</h5><p>Depending on your pages – you might need to add some PHP conditional tags and functions to the theme manually. This is to link the new pages to each other.  Simply copy your theme’s page.php file and rename it to something.php – convert it into a template by adding the code on top of the page:</p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</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: #666666; font-style: italic;">/*
Template Name: something
*/</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div><p>Now below the call for the content, add the conditional tag with from the Theme My Login plugin:</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;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> is_user_logged_in<span style="color: #009900;">&#40;</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;div &gt;I bet you would like to submit a Guest Post. Click &lt;a href=&quot;yourwebsite.com/conribute&quot;&gt;here&lt;/a&gt; to access the contribute form. &lt;/div&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>The screenshot below shows the custom link to the contribute form that we just created:</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/04/login.jpg" alt="" title="Custom Link to Contribute" width="576" height="220" class="alignnone size-full wp-image-1349" /></p><p>All you have to do now is to wait for guest post submissions and depending on the content &#8211; simply approve, edit or deny. The submissions are saved as draft posts and are in the moderation view of TDO mini forms:</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/04/moderation2.jpg" alt="" title="The Final Process" width="576" height="813" class="alignnone size-full wp-image-1367" style="border:0;" /></p><h3>Conclusion</h3><p>Now that you have converted your blog into a more automated (and sophisticated) posting process – think of all the possible scenarios you can create.  Of course I’m completely aware that my guest posts will not land any successful submissions any time soon – it’s just good to know that it’s available. Not to mention, it was fun to make.</p><p>Let’s not forget to donate to the plugin authors!</p> ]]></content:encoded> <wfw:commentRss>http://fearlessflyer.com/2010/04/automating-the-guest-post-process/feed/</wfw:commentRss> <slash:comments>14</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[Wordpress 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 purely [...]]]></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><div class="viewdemo"><a href="http://aparatus.fearlessflyer.com">View the Demo</a></div><div class="special"><strong>UPDATE</strong>: For those who are having issues with plugins, as well as unexpected errors when upgrading to <strong>WP 3.0</strong>, try inserting the following code inside &#8220;<strong>footer.php</strong>&#8221; &#8211; just before the closing &#8220;body&#8221; tag:</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;div&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_footer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/div&gt;</pre></td></tr></table></div></div><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="showtip 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>Updated Twitter Badges!</h3><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2010/01/twitter-btn-update.png" alt="" style="border:none;" title="twitter-btn-update" width="576" height="139" class="alignnone size-full wp-image-1622" /></p><p>I received enough comments on the Twitter badge to say &#8220;<strong>Follow ON Twitter</strong>&#8221; as supposed to &#8220;<strong>Follow IN Twitter</strong>&#8220;. So here they are:</p><ul><li><a href="http://fearlessflyer.com/main/wp-content/uploads/2010/01/twitter-badge-maroon.png">Maroon Badge</a></li><li><a href="http://fearlessflyer.com/main/wp-content/uploads/2010/01/twitter-badge-blue.png">Blue Badge</a></li><li><a href="http://fearlessflyer.com/main/wp-content/uploads/2010/01/twitter-badge-green.png">Green Badge</a></li><li><a href="http://fearlessflyer.com/main/wp-content/uploads/2010/01/twitter-badge-black.png">Black Badge</a></li></ul><p>Simply replace the existing badge image in the Theme&#8217;s images folder.</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="showtip 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><div class="viewdemo"><a href="http://aparatus.fearlessflyer.com">View the Demo</a></div><div class="special"><strong>UPDATE</strong>: For those who are having issues with plugins, as well as unexpected errors when upgrading to <strong>WP 3.0</strong>, try inserting the following code inside &#8220;<strong>footer.php</strong>&#8221; &#8211; just before the closing &#8220;body&#8221; tag:</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;div&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_footer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/div&gt;</pre></td></tr></table></div></div> ]]></content:encoded> <wfw:commentRss>http://fearlessflyer.com/2010/01/get-some-aparatus-free-theme-for-wordpress/feed/</wfw:commentRss> <slash:comments>236</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>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>15</slash:comments> </item> <item><title>Taming the Grid – Align your WordPress posts perfectly using PHP and CSS</title><link>http://fearlessflyer.com/2009/10/taming-the-grid-align-your-wordpress-posts-perfectly-using-php-and-css/</link> <comments>http://fearlessflyer.com/2009/10/taming-the-grid-align-your-wordpress-posts-perfectly-using-php-and-css/#comments</comments> <pubDate>Sat, 03 Oct 2009 22:39:12 +0000</pubDate> <dc:creator>michael soriano</dc:creator> <category><![CDATA[General]]></category> <category><![CDATA[Tutorials]]></category> <category><![CDATA[WP Themes]]></category> <category><![CDATA[grid]]></category> <category><![CDATA[grid-based]]></category> <category><![CDATA[modulus]]></category> <category><![CDATA[php]]></category> <category><![CDATA[pixel-perfect]]></category> <category><![CDATA[the grid]]></category> <category><![CDATA[the loop]]></category> <category><![CDATA[Wordpress]]></category><guid isPermaLink="false">http://fearlessflyer.com/?p=750</guid> <description><![CDATA[Grid based web design is becoming an art that each web developer must master. News portals, magazine layouts as well as showcase websites all adhere to the intricacies of the grid – which when mastered, is definitely a good addition to your web skill arsenal. We all know that a typical grid design uses some [...]]]></description> <content:encoded><![CDATA[<p>Grid based web design is becoming an art that each web developer must master. News portals, magazine layouts as well as showcase websites all adhere to the intricacies of the grid – which when mastered, is definitely a good addition to your web skill arsenal.</p><p>We all know that a typical grid design uses some kind of block containers to house content. This block container may be DIV or list that span a couple, three or four times across inside a parent DIV. Now with CSS – we simply apply the proper left or right margins to all the containers except the last one in the pattern:</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/10/illustration1.png" alt="illustration1" title="children DIVs with different margin settings" width="576" height="222" class="alignnone size-full wp-image-751" style="border:0;" /></p><p>The result is the children containers line up perfectly inside the parent DIV. To achieve this effect we apply the same class to all the children DIVs, and append a unique class to the last one like below:</p><p><strong>HTML</strong></p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;div id=&quot;parent&quot;&gt;
&lt;div class=&quot;child&quot;&gt;
	//content goes here
&lt;/div&gt;
&lt;div class=&quot;child&quot;&gt;
	//content goes here
&lt;/div&gt;
&lt;div class=&quot;child last&quot;&gt;
	//content goes here
&lt;/div&gt;
&lt;/div&gt;</pre></td></tr></table></div><p><strong>CSS</strong></p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.parent</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">415</span> <span style="color: #993333;">px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.child</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">125px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.child</span><span style="color: #6666ff;">.last</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div><h3>The Challenge:</h3><p>Since content inside these containers are typically coded using a form of recursive technique such as “the Loop” in Wordress; how are we to designate that unique class to that second, third or fourth child DIV?</p><p>For instance, if we were to house our posts inside one of these children DIVs, the PHP would look something like below:</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;">&lt;div id=&quot;parent&quot;&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span><span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span>the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;div class=&quot;child&quot;&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/div&gt;&lt;!--child--&gt;
&lt;/div&gt;&lt;!--parent--&gt;</pre></td></tr></table></div><p>This block of code inside the parent DIV will just keep repeating for all posts with the same “child” class. We need to a way to select just the second, third or fourth child to not have that extra margin.</p><h3>The Trick</h3><p>A not so popular arithmetic operator known as the modulus &#8211; represented by a (%) symbol is what we’ll use to do the trick. The modulus operator is the same as division &#8211; but returns the remainder instead. Since we’re only targeting every “nth” div or child item, all we need to create is a pattern that has a multiple of some value in order to apply our special class. Take a look at the code below:</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
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">&lt;div id=&quot;parent&quot;&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$r_count</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</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;">if</span><span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span><span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span>the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$r_count</span><span style="color: #339933;">%</span><span style="color:#800080;">3</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$r_class</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'last'</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;">$r_class</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
 	<span style="color: #009900;">&#125;</span>
	<span style="color: #000088;">$r_count</span><span style="color: #339933;">++;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;div class=&quot;child <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$r_class</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> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/div&gt;&lt;!--child--&gt;
&lt;/div&gt;&lt;!--parent--&gt;</pre></td></tr></table></div><p>First we create a variable $r_count and initialize its value at 1 right before the loop starts. Right after the call for the posts, we add a conditional statement with the modulus operator for 3 is equal to 0 (since we want every 3rd element to have that unique “last” class), everything else returns empty. Lastly, we increment $r_count by one.</p><p>In our HTML, we call the regular “child” class, then we echo our special $r_class. The end result will be an alternating call of styles depending on what we define for our modulus operator:</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/10/illustration2.png" alt="illustration2" title="A view of the source code of our finished product. Notice the additional class for the DIVs" width="576" height="500" class="alignnone size-full wp-image-753" style="border:0;" /></p><p>Of course &#8211; depending on the number of columns you would like to display &#8211; all you have to do is change the modulus operand and you should get the same effect. Thanks to PHP master <a href="http://www.goliathdesigns.com/">David Young</a> &#8211; who showed me how to do this trick.</p> ]]></content:encoded> <wfw:commentRss>http://fearlessflyer.com/2009/10/taming-the-grid-align-your-wordpress-posts-perfectly-using-php-and-css/feed/</wfw:commentRss> <slash:comments>7</slash:comments> </item> <item><title>Meet Monte Cristo &#8211; Your Friendly WordPress Theme</title><link>http://fearlessflyer.com/2009/09/meet-monte-cristo-your-friendly-wordpress-theme/</link> <comments>http://fearlessflyer.com/2009/09/meet-monte-cristo-your-friendly-wordpress-theme/#comments</comments> <pubDate>Fri, 18 Sep 2009 18:39:48 +0000</pubDate> <dc:creator>michael soriano</dc:creator> <category><![CDATA[General]]></category> <category><![CDATA[WP Themes]]></category> <category><![CDATA[Content Slider]]></category> <category><![CDATA[Monte Cristo]]></category> <category><![CDATA[Options]]></category> <category><![CDATA[premium theme]]></category> <category><![CDATA[Professional]]></category> <category><![CDATA[Slider]]></category> <category><![CDATA[ThemeForest]]></category><guid isPermaLink="false">http://fearlessflyer.com/?p=730</guid> <description><![CDATA[It seems that every website you see has some form of a slide show in the home page. So it plagued me for a while whether or not I should put one&#8230;like my three year old son would say: &#8220;what the heck&#8221; &#8211; so I did anyway. This is my newest WordPress theme Monte Cristo. [...]]]></description> <content:encoded><![CDATA[<p>It seems that every website you see has some form of a slide show in the home page. So it plagued me for a while whether or not I should put one&#8230;like my three year old son would say: &#8220;<em>what the heck</em>&#8221; &#8211; so I did anyway. This is my newest WordPress theme Monte Cristo. He has a dynamic slider, a zooming effect for all pictures, different color styles and a theme options panel in his back end (that didn&#8217;t sound right).</p><h3>Features</h3><p>The slider in the home page templates are dynamic. Meaning &#8211; they are actual posts in your blog that you set in a specified category (i.e. feature) &#8211; so they show up in the slider. You can set it to run automatically and are allowed up to eight slides. The slider uses CSSGlobe&#8217;s &#8220;<a href="http://cssglobe.com/post/4004/easy-slider-15-the-easiest-jquery-plugin-for-sliding">easy slider</a>&#8220;. All images that link to other images automatically loads &#8220;<a href="http://www.cabel.name/2008/02/fancyzoom-10.html">FancyZoom</a>&#8221; &#8211; which  which is the amazing javascript zooming effect you see in many modern websites. Monte Cristo also comes with four different &#8220;characters&#8221; or color schemes: <strong>Jacopo</strong> is the gray and burgundy guy, <strong>Danglars</strong> swaggers in brown and taupe,<strong> Mondego</strong> likes it purple and green while <strong>Dantes</strong> is different shades of blue.</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/09/monte-cristo2.png" alt="monte-cristo2" title="The four characters of Monte Cristo - inspired by the movie" width="576" height="603" class="alignnone size-full wp-image-737" /></p><h3>Why Friendly?</h3><p>Monte Cristo has a built in options panel where you can set your preferences. Friendly because this way &#8211; you don&#8217;t have to know HTML, or Javascript to tweak the code. You can set which character you want from the options panel, set the slider categories, automatic or not, plugin your logo files &#8211; just about all that you need to customize Monte Cristo to fit your website.</p><h3>Why Buy?</h3><p>Monte Cristo is up on sale at <a href="http://themeforest.net/item/monte-cristo/59175?ref=mks6804">ThemeForest.net</a> for a measly $25.00. You can check out the live demo from this <a href="http://mc.fearlessflyer.com/">link</a>. Why buy if I have been giving away stuff for free? Oh I don&#8217;t know &#8211; maybe because since I spent a whole lot of time making this theme that I figured I might as well try to make money off of it. Maybe since I give away free support once you purchase is another reason. Or maybe if I make enough money from this that I can now spend more time with my son &#8211; teach him not to say bad words like &#8220;<em>what the heck</em>&#8220;. Of course, its completely up to you.</p><h3>Updated to Version 1.3 &#8211; Drop Down List Support for the Page Navigation!</h3><p>For those of you who have asked for a drop down list for sub pages &#8211; the update is here. I will be glad to send you the update files if you contact me. If you already have Monte Cristo running and have made some edits to the css files &#8211; contact me, and I will send you the code to paste in the css files.</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/09/mc-update1.jpg" alt="" title="added drop down capability for the page navigation" width="576" height="300" class="alignnone size-full wp-image-1151" /></p><h3>Get the Updated Files Here!</h3><div class="actual-links"><strong><a href="http://fearlessflyer.com/downloads/Monte-Cristo-Update.zip">Monte-Cristo-Update.zip</a></strong> &#8211; This download IS NOT the whole theme! It only contains the files needed to convert the page navigation to support child pages in a drop down style menu: Header.php and the css files.</div> ]]></content:encoded> <wfw:commentRss>http://fearlessflyer.com/2009/09/meet-monte-cristo-your-friendly-wordpress-theme/feed/</wfw:commentRss> <slash:comments>15</slash:comments> </item> <item><title>Get Kubrick On Crack!</title><link>http://fearlessflyer.com/2009/08/get-kubrick-on-crack/</link> <comments>http://fearlessflyer.com/2009/08/get-kubrick-on-crack/#comments</comments> <pubDate>Mon, 31 Aug 2009 02:55:55 +0000</pubDate> <dc:creator>michael soriano</dc:creator> <category><![CDATA[Freebies]]></category> <category><![CDATA[General]]></category> <category><![CDATA[WP Themes]]></category> <category><![CDATA[Wordpress Themes]]></category> <category><![CDATA[CSS]]></category> <category><![CDATA[free]]></category> <category><![CDATA[Kubrick]]></category> <category><![CDATA[Kubrick On Crack]]></category> <category><![CDATA[Single Column Blog]]></category> <category><![CDATA[Themes]]></category> <category><![CDATA[Web 2.0]]></category> <category><![CDATA[Wordpress Premium theme]]></category><guid isPermaLink="false">http://fearlessflyer.com/?p=713</guid> <description><![CDATA[Is my title catchy enough? My latest addition to my collection of free stuff &#8211; a WordPress theme that is built for the traditional blogger. It is a single column theme with splashes of bright colors that I hope will fancy your senses. I call it Kubrick on Crack! with the intent of designing around [...]]]></description> <content:encoded><![CDATA[<p>Is my title catchy enough? My latest addition to my collection of free stuff &#8211; a WordPress theme that is built for the traditional blogger. It is a single column theme with splashes of bright colors that I hope will fancy your senses. I call it <strong>Kubrick on Crack!</strong> with the intent of designing around the default Kubrick theme; but with enough tweaks that it would seem that it is on Crack! Well, this is the end result.</p><div class="viewdemo"><a href="http://koc.fearlessflyer.com">View the Demo</a></div><p>It looks like the only thing it has in common with Kubrick is the rounded corners and the slim page width of 728 pixels. Anywho, you can take Kubrick on Crack! and install it in your WordPress site for free.</p><h3>Home Page with a Feature Post</h3><p>Unlike the original Kubrick &#8211; this theme automatically takes your latest post and converts it to a Feature post. It sits atop of a dark fading background with a custom image field that looks like its on top of a stash of photographs. It uses the custom field key: &#8220;<strong>image</strong>&#8220;. To learn how to use custom fields (which I strongly recommend) &#8211; <a href="http://codex.wordpress.org/Using_Custom_Fields">read it from the codex</a>. No image resizing is required &#8211; they&#8217;re all automatically cropped, thanks to the <a href="http://www.darrenhoyt.com/2008/04/02/timthumb-php-script-released/">TimThumb script by Darren Hoyt</a>. But for best results &#8211; upload an image that is wider than 424 pixels and longer than 284 pixels in height.</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/08/koc2.jpg" alt="koc2" title="Full Preview of Kubrick on Crack" width="576" height="800" class="alignnone size-full wp-image-726" /></p><p>The search form magically appears in a fade in box. This script is &#8220;<a href="http://jquery.com/demo/thickbox/">Thickbox</a>&#8221; and provided by jQuery. The spectacular smoke art background is by <a href="http://applesactually.deviantart.com/">Applse Actually</a> of Deviantart.com.</p><h3>Theme Options</h3><p>Kubrick on Crack! comes with a control panel so you don&#8217;t have to touch the code in order to customize for your website. The options include the following:</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/08/koc3.jpg" alt="koc3" title="Experimented with Theme Options - a bonus feature" width="576" height="800" class="alignnone size-full wp-image-714" /></p><p>1 &#8211; <strong> Header Logo</strong>, once your logo is uploaded, enter the url here. I recommend using a transparent .png to preserve the look.</p><p>2 &#8211; <strong>Twitter account</strong>, this will save to the link that is behind the twitter icon in the header.</p><p>3 &#8211; <strong>Custom Feed</strong>, this will save to the RSS icon in the header. If no value is provided &#8211; the default blog rss will be used.</p><p>4 &#8211; <strong>Google Ad Sense</strong>, this will create an ad space right below the single post page. (use the the 728 leatherboard style). To learn more about Adsense, click <a href="https://www.google.com/adsense/login/en_US/">here</a></p><p>5 &#8211; <strong>Google Analytics</strong>, this saves your Analytics code below the footer &#8211; which of course is invisible. To learn more about Analytics &#8211; click <a href="http://www.google.com/analytics/">here</a></p><p>You can see Kubrick On Crack! in action at my <a href="http://koc.fearlessflyer.com/">Demo</a> site. <strong>Download the theme from this <a href="http://fearlessflyer.com/downloads/kubrick-on-crack.zip">link</a>.</strong></p><p><strong>Update: the original PSD files can be now be dowloaded from this <a href="http://fearlessflyer.com/downloads/kubrick-on-crack-psd.zip">link</a></strong>. *There are 3 photoshop files in the zip &#8211; one for the main layout which contains all of the elements except two buttons &#8211; which are in the other psd files.</p><p>All I ask is for you to leave me a comment, <a href="http://twitter.com/home?status=Awesome WordPress Theme: Get Kubrick On Crack! http://bit.ly/3iO11R">Retweet</a> or <a href="http://digg.com/design/Get_Kubrick_On_Crack">Digg</a> this article, or follow me in <a href="http://twitter.com/mks6804">Twitter</a>.</p> ]]></content:encoded> <wfw:commentRss>http://fearlessflyer.com/2009/08/get-kubrick-on-crack/feed/</wfw:commentRss> <slash:comments>92</slash:comments> </item> <item><title>Getting Rid of Unwanted Backslashes in WordPress Form Input</title><link>http://fearlessflyer.com/2009/08/getting-rid-of-unwanted-backslashes-in-wordpress-form-input/</link> <comments>http://fearlessflyer.com/2009/08/getting-rid-of-unwanted-backslashes-in-wordpress-form-input/#comments</comments> <pubDate>Sun, 16 Aug 2009 06:43:57 +0000</pubDate> <dc:creator>michael soriano</dc:creator> <category><![CDATA[General]]></category> <category><![CDATA[Tutorials]]></category> <category><![CDATA[WP Themes]]></category> <category><![CDATA[Custom Forms]]></category> <category><![CDATA[Magic Quotes]]></category> <category><![CDATA[Strips slashes]]></category> <category><![CDATA[Theme Options Form Problems]]></category> <category><![CDATA[Unwanted BackSlashes]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[Wordrpess]]></category> <category><![CDATA[WP]]></category><guid isPermaLink="false">http://fearlessflyer.com/?p=700</guid> <description><![CDATA[As I was following the tutorial on How To Create a Theme Options Page for Your WordPress Theme, from ForTheLose.org, I stumbled upon an irritating issue. I wanted to create an option where you can paste your Google Ad Sense code from the theme admin panel. The problem is, as soon as I drop stuff [...]]]></description> <content:encoded><![CDATA[<p>As I was following the tutorial on <a href="http://forthelose.org/how-to-create-a-theme-options-page-for-your-wordpress-theme">How To Create a Theme Options Page for Your WordPress Theme</a>, from ForTheLose.org, I stumbled upon an irritating issue. I wanted to create an option where you can paste your Google Ad Sense code from the theme admin panel. The problem is, as soon as I drop stuff like HTML code into the field, it automatically adds unwanted backslashes in front of double quotes. As I later figured out, this is actually a &#8220;feature&#8221; in PHP known as &#8220;Magic Quotes&#8221;.</p><h3>What the heck are &#8220;Magic Quotes&#8221;</h3><p>For those who know PHP, the language is designed to avoid conflicts in strings (mostly characters used in variables) through the use of escape sequences. Escape sequences are formed by providing a (&#8220;\&#8221;) backslash in front of characters such as double quotes, to convert them into a literal string. The people who wrote PHP wanted this to be an automated process, so they decided that all text passed through online forms are automatically escaped with a backslash. This is known as <strong>Magic Quotes</strong>. Although their intentions were good, it has caused more problems than fixes. According to the <a href="http://www.php.net/manual/en/security.magicquotes.disabling.php">PHP.net</a>: Magic Quotes are deprecated as of version 5.3 and will not be part of future versions.</p><h3>WordPress Fix</h3><p>Although you can disable Magic Quotes in your server php.ini file, it won&#8217;t do me any good since I&#8217;m developing a theme to be released for public use. This means that users of my theme will have various server configurations and telling them to turn this feature off is simply not an option. Luckily, WordPress has adapted PHP.net&#8217;s function &#8220;<a href="http://codex.wordpress.org/Function_Reference/stripslashes_deep">stripslashes deep</a>&#8221; &#8211; which disables Magic Quotes at runtime. All you need to do is paste the following code into your theme file and should take care of the issue:</p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</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> <span style="color: #990000;">get_magic_quotes_gpc</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$_POST</span>      <span style="color: #339933;">=</span> <span style="color: #990000;">array_map</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'stripslashes_deep'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_POST</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$_GET</span>       <span style="color: #339933;">=</span> <span style="color: #990000;">array_map</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'stripslashes_deep'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_GET</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$_COOKIE</span>    <span style="color: #339933;">=</span> <span style="color: #990000;">array_map</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'stripslashes_deep'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_COOKIE</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$_REQUEST</span>   <span style="color: #339933;">=</span> <span style="color: #990000;">array_map</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'stripslashes_deep'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_REQUEST</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</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 strips slashes when data arrives via $_POST, $_GET, $_COOKIE, and $_REQUEST methods. In my case, I&#8217;ve pasted this code inside my functions.php file which contain my theme options. This page alone will serve multiple textarea input fields which will allow special characters such as Google Analytics and AdSense code. Note that this can be used in any page with input fields such as a contact and RSVP forms.</p> ]]></content:encoded> <wfw:commentRss>http://fearlessflyer.com/2009/08/getting-rid-of-unwanted-backslashes-in-wordpress-form-input/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Free WP Theme &#8211; Pork and Beans!</title><link>http://fearlessflyer.com/2009/07/pork-and-beans-download-for-free/</link> <comments>http://fearlessflyer.com/2009/07/pork-and-beans-download-for-free/#comments</comments> <pubDate>Sun, 19 Jul 2009 23:57:38 +0000</pubDate> <dc:creator>michael soriano</dc:creator> <category><![CDATA[Freebies]]></category> <category><![CDATA[General]]></category> <category><![CDATA[WP Themes]]></category> <category><![CDATA[Wordpress Themes]]></category> <category><![CDATA[blog theme]]></category> <category><![CDATA[Free WP Theme]]></category> <category><![CDATA[javascript]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[premium]]></category> <category><![CDATA[Themes]]></category> <category><![CDATA[twin column]]></category> <category><![CDATA[wood]]></category> <category><![CDATA[Wordpress]]></category><guid isPermaLink="false">http://fearlessflyer.com/?p=680</guid> <description><![CDATA[Just finished another theme to add to my collection and I must say, I am just now getting the real hang of this theme production. This time around, I went a little unorthodox. That&#8217;s not true &#8211; It is a regular two column design; it does have the standard navigation; the sidebar is in the [...]]]></description> <content:encoded><![CDATA[<p>Just finished another theme to add to my collection and I must say, I am just now getting the real hang of this theme production. This time around, I went a little unorthodox. That&#8217;s not true &#8211; It is a regular two column design; it does have the standard navigation; the sidebar is in the right side; The archive, single and  other template are intact; but I did throw in a lot of Javascript, bolder color schema and a combination of rounded corners, etches and fades.</p><div class="viewdemo"><a href="http://pork.fearlessflyer.com">View the Demo</a></div><h3>Javascript / jQuery Goodness</h3><p>I&#8217;m a big fan of animation in web design. Especially ones that enhance your pages functionality, accessibility and of course &#8211; quality. This is the case in the tabbed containers that you get in Pork and Beans&#8217; top sidebar and comments form.</p><p><img src="http://fearlessflyer.com/main/wp-content/uploads/2009/07/pork-and-beans-2.jpg" alt="pork-and-beans-2" title="I went a little crazy with the jQuery Tabs" width="576" height="323" class="alignnone size-full wp-image-683" /></p><p>The code is from <a href="http://www.queness.com/post/106/jquery-tabbed-interfacetabbed-structure-menu-tutorial">Queness</a>, I was able to squeeze a lot of content into such constrained spaces. Content that are to be grouped logically in the first place. For instance, in the comments area, the form shows up as default, but you can also switch from a selection of subscription options, as well as a list of related posts.</p><p>Other Javascript features include the sliding captions on the images &#8211; courtesy of <a href="http://buildinternet.com/2009/03/sliding-boxes-and-captions-with-jquery/">Buildinternet.com</a>, and a Scroll to the top button found in the footer area.</p><h3>Colors Schema, Aesthetics and Auto Resizable Images,</h3><p>The original design didn&#8217;t include a wood background, nor was there a patch of grass in the footer &#8211; but I figured, it needed some identity. I know what you&#8217;re thinking: What does it have to do with &#8220;Pork and Beans&#8221;? Absolutely nothing. Who said the name had to relate anyway? Picked up the color scheme from the &#8220;Moboogie&#8221; Color template from Adobe&#8217;s <a href="http://kuler.adobe.com/">Kuler</a> website. Images are automatically resized using a custom field entry (image). For best results, use images wider than 562 pixels.</p><h3>Plugins Needed</h3><p>The sidebar has a Flickr Box included which will need you to download the <a href="http://eightface.com/wordpress/flickrrss/">flickrRSS plugin </a>by Eightface. The sidebar is also fully widgetized, styled to match the rest of the page&#8217;s elements. You will also need the <a href="http://rmarsh.com/plugins/similar-posts/">Similar Posts</a> plugin by Rob Marsh &#8211; which will pull related posts to the current article. This will show right below a single article, in the last tab in the comments form.</p><h3>Conclusion</h3><p>Pork and Beans is ideal for the traditional blogger. Although it may work best with people who have high quality and vivid photos to include with their articles. I do not suggest customizing it to match another look &#8211; since the colors and the background images will be difficult to mess with. Well, if you really must need to tweak, then by all means. I must also mention that I started to code to satisfy IE 6 quirks &#8211; but gave up. There is also a bug that the body background shifts to the right on scroll, but goes back to the original position. I don&#8217;t know what causes it, but if any of you experience the same thing &#8211; please leave a comment.</p><p>You can see Pork and Beans live in action from this <a href="http://pork.fearlessflyer.com/">link</a>, <strong>Download the theme from <a href="http://fearlessflyer.com/downloads/pork-and-beans.zip">here</a></strong>. All I ask is to spread the word, leave a comment or follow me in <a href="http://twitter.com/mks6804">Twitter</a>.</p><p><strong>Update &#8211; You can now download the <a href="http://fearlessflyer.com/downloads/pork-and-beans-psd.zip">PSD:</a>. Note that the PSD does not look exactly like the demo (changed my mind a couple of times during coding).</strong></p> ]]></content:encoded> <wfw:commentRss>http://fearlessflyer.com/2009/07/pork-and-beans-download-for-free/feed/</wfw:commentRss> <slash:comments>41</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)

Served from: fearlessflyer.com @ 2010-09-09 11:00:03 -->