<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Phrappe</title>
	
	<link>http://phrappe.com</link>
	<description>ice-chilled, instant web tips</description>
	<lastBuildDate>Fri, 11 May 2012 07:20:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/phrappe_com" /><feedburner:info uri="phrappe_com" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>HTML5 video and mobile browsers</title>
		<link>http://feedproxy.google.com/~r/phrappe_com/~3/UUoXmQeWNOE/</link>
		<comments>http://phrappe.com/markup/html5-video-and-mobile-browsers/#comments</comments>
		<pubDate>Mon, 30 Apr 2012 07:37:03 +0000</pubDate>
		<dc:creator>John Tsevdos</dc:creator>
				<category><![CDATA[markup]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[element]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[media queries]]></category>
		<category><![CDATA[mobile-friendly]]></category>
		<category><![CDATA[mp4]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[webm]]></category>

		<guid isPermaLink="false">http://phrappe.com/?p=329</guid>
		<description><![CDATA[The brand new HTML5 video element is surely very impressive. You&#8217;ve encoded your videos in multiple formats (well, at least .mp4 and .webm to support all browsers), you might&#8217;ve also provided Flash drawbacks and you are very proud of your good work. But what happens with the mobile users? The majority of mobile browsers will [...]]]></description>
			<content:encoded><![CDATA[<p>The brand new <strong><a title="The video element" href="http://html5doctor.com/the-video-element/">HTML5 video element</a></strong> is surely very impressive. You&#8217;ve encoded your videos in multiple formats (well, at least <strong>.mp4</strong> and <strong>.webm</strong> to support all browsers), you might&#8217;ve also provided <strong><a title="HTML5 Video Player Comparison" href="http://praegnanz.de/html5video/">Flash drawbacks</a></strong> and you are very proud of your good work. But what happens with the mobile users?</p>
<p>The majority of mobile browsers will recognize/play the HTML5 video, but the problem is not the browser support, nor the file format. The problem is the <strong>bandwidth</strong>. Your brand new HD video might take ages to download through 3G! Wouldn&#8217;t it be great if you could provide a mobile-friendly version of your video source (with smaller resolution, less fps, and much smaller file size)?</p>
<p>Well, you can very easily do that, with the use of some very basic <strong><a title="W3C : Media Queries" href="http://www.w3.org/TR/css3-mediaqueries/">media queries</a></strong>. The below code will serve two <strong>mobile-only</strong> video sources (again an .mp4 and a .webm file) in order to support as many mobile devices as we can. Of course keep the specific video files small and optimized (otherwise there is no point in implementing this)!</p>
<p><script src="https://gist.github.com/2511970.js?file=mobile-video.html"></script></p>
<p>Don&#8217;t waste your mobile visitors bandwidth and time. Provide smaller, mobile-friendly alternatives!</p>
<img src="http://feeds.feedburner.com/~r/phrappe_com/~4/UUoXmQeWNOE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://phrappe.com/markup/html5-video-and-mobile-browsers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://phrappe.com/markup/html5-video-and-mobile-browsers/</feedburner:origLink></item>
		<item>
		<title>Mobile Webkit form tips</title>
		<link>http://feedproxy.google.com/~r/phrappe_com/~3/HyTVMVcUaOo/</link>
		<comments>http://phrappe.com/markup/mobile-webkit-form-tips/#comments</comments>
		<pubDate>Thu, 19 Apr 2012 07:57:33 +0000</pubDate>
		<dc:creator>John Tsevdos</dc:creator>
				<category><![CDATA[markup]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[attributes]]></category>
		<category><![CDATA[autocapitalization]]></category>
		<category><![CDATA[autocorrect]]></category>
		<category><![CDATA[forms]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[keyboard]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[webforms]]></category>
		<category><![CDATA[webkit]]></category>

		<guid isPermaLink="false">http://phrappe.com/?p=320</guid>
		<description><![CDATA[One of the things I really hate when I surf from a tablet/phone browser (usually my iPad/iPhone) is filling in forms. I know, the lack of a physical keyboard sucks big time, but it&#8217;s not just that. Most web developers out there don&#8217;t give the appropriate attention when they develop web forms, and the combination [...]]]></description>
			<content:encoded><![CDATA[<p>One of the things I really hate when I surf from a tablet/phone browser (usually my iPad/iPhone) is filling in forms. I know, the lack of a physical keyboard sucks big time, but it&#8217;s not just that. Most web developers out there don&#8217;t give the appropriate attention when they develop web forms, and the combination of both these things can literally destroy the good will of a user who&#8217;s trying to fill in the form. The use of some very basic attributes can change the above situation dramatically. You don&#8217;t believe me? Well have a look&#8230;</p>
<h2>Keyboard Layout</h2>
<p>One of the most important and easy fixes is to provide the correct keyboard layout. Well that&#8217;s super easy, just use the appropriate <a title="MAKING FORMS FABULOUS WITH HTML5" href="http://www.html5rocks.com/en/tutorials/forms/html5forms/#toc-inputs-attributes-types">HTML5 input type</a>. You&#8217;ll make many tablet/mobile users happier!</p>
<p><script src="https://gist.github.com/2408100.js?file=keyboard.html"></script></p>
<h2>Autocorrect and AutoCapitalize</h2>
<p>OK, let&#8217;s admit it, <strong>autocorrect</strong> is a cool feature when writing an e-mail, but it&#8217;s probably the worst one when you try to write your username (and iOS is correcting it over and over again). The exact same issue is caused with the <strong>autocapitalization</strong>. Well, nothing to worry about. Just use the below attributes to turn on and off the features from the elements you want. Now you&#8217;re in control of things <img src='http://phrappe.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p><script src="https://gist.github.com/2408100.js?file=autocorrect.html"></script></p>
<p>Please try not to be lazy when you build forms, you might save a tablet/phone user&#8217;s time and sanity!</p>
<p>The above markup works fine on <strong>Android devices</strong> as well (and probably on <strong>Windows Phones</strong>), although I only test them on <strong>iOS iPhone/iPad</strong> devices&#8230;</p>
<img src="http://feeds.feedburner.com/~r/phrappe_com/~4/HyTVMVcUaOo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://phrappe.com/markup/mobile-webkit-form-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://phrappe.com/markup/mobile-webkit-form-tips/</feedburner:origLink></item>
		<item>
		<title>The get() method is not working! Well try eq()…</title>
		<link>http://feedproxy.google.com/~r/phrappe_com/~3/KIXGjjOCvzc/</link>
		<comments>http://phrappe.com/javascript/the-get-method-is-not-working-well-try-eq/#comments</comments>
		<pubDate>Mon, 02 Apr 2012 07:21:39 +0000</pubDate>
		<dc:creator>John Tsevdos</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[DOM]]></category>
		<category><![CDATA[eq()]]></category>
		<category><![CDATA[get()]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[object]]></category>

		<guid isPermaLink="false">http://phrappe.com/?p=306</guid>
		<description><![CDATA[Every now and then, I come across the very same issue, so I decided to write a post about it. Many new JS developers are struggling to find out why the below code is not working when applying jQuery’s get() method : &#160; The selector is correct, and if we remove the get() method, it [...]]]></description>
			<content:encoded><![CDATA[<p>Every now and then, I come across the very same issue, so I decided to write a post about it. Many new JS developers are struggling to find out why the below code is not working when applying jQuery’s <code><a title=".get()" href="http://api.jquery.com/get/">get()</a></code> method :</p>
<p>&nbsp;</p>
<p>The selector is correct, and if we remove the <code>get()</code> method, it magically works!</p>
<p>The answer is pretty obvious if you check <code><a title=".get()" href="http://api.jquery.com/get/">get()</a></code>&#8216;s documentation. The <code>get()</code> method returns a <strong>DOM object</strong>, not a <strong>jQuery</strong> one! This means that you don’t have access to jQuery’s fun methods&#8230; If you want a similar method (that returns a jQuery object) try <code><a title=".eq()" href="http://api.jquery.com/eq/">eq()</a></code>, it works the exact same way.</p>
<img src="http://feeds.feedburner.com/~r/phrappe_com/~4/KIXGjjOCvzc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://phrappe.com/javascript/the-get-method-is-not-working-well-try-eq/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://phrappe.com/javascript/the-get-method-is-not-working-well-try-eq/</feedburner:origLink></item>
		<item>
		<title>All Phrappe code/snippets are available on Gist</title>
		<link>http://feedproxy.google.com/~r/phrappe_com/~3/qyHT8Pc5xPk/</link>
		<comments>http://phrappe.com/misc/all-phrappe-code-snippers-are-available-on-gist/#comments</comments>
		<pubDate>Fri, 30 Mar 2012 06:54:39 +0000</pubDate>
		<dc:creator>John Tsevdos</dc:creator>
				<category><![CDATA[misc]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[gist]]></category>
		<category><![CDATA[snippets]]></category>

		<guid isPermaLink="false">http://phrappe.com/?p=255</guid>
		<description><![CDATA[For easier development and collaboration, all the scripts &#38; snippets are now available on github:Gist! Feel free to download/clone/play around. It just feels right to start keeping everything there. Farewell Google Syntax Highlighter&#8230;]]></description>
			<content:encoded><![CDATA[<p>For easier development and collaboration, all the scripts &amp; snippets are now available on <a title="Gist github" href="https://gist.github.com/">github:Gist</a>! Feel free to download/clone/play around. It just feels right to start keeping everything there. Farewell <a title="Google Syntax Highlighter" href="http://code.google.com/p/syntaxhighlighter/">Google Syntax Highlighter</a>&#8230;</p>
<img src="http://feeds.feedburner.com/~r/phrappe_com/~4/qyHT8Pc5xPk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://phrappe.com/misc/all-phrappe-code-snippers-are-available-on-gist/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://phrappe.com/misc/all-phrappe-code-snippers-are-available-on-gist/</feedburner:origLink></item>
		<item>
		<title>Ambrosia is one of the fifty free, great WordPress themes of 2011!</title>
		<link>http://feedproxy.google.com/~r/phrappe_com/~3/ScNkiP5WSBM/</link>
		<comments>http://phrappe.com/wordpress/ambrosia-is-one-of-the-fifty-free-great-wordpress-themes-of-2011/#comments</comments>
		<pubDate>Tue, 01 Nov 2011 14:54:00 +0000</pubDate>
		<dc:creator>John Tsevdos</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[ambrosia]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://phrappe.com/?p=251</guid>
		<description><![CDATA[noupe.com, member of the well-known Smashing Magazine Network, posted the &#8220;50 Great Free WordPress Themes From 2011&#8220;. Ambrosia appears on the list at 41! Once again I&#8217;d like to thank Kostis Vasiliadis for the amazing graphics and support]]></description>
			<content:encoded><![CDATA[<p><a title="noupe.com" href="http://www.noupe.com/">noupe.com</a>, member of the well-known <a title="The Smashing Network" href="http://www.smashingmagazine.com/the-smashing-network/">Smashing Magazine Network</a>, posted the &#8220;<strong><a title="50 Great Free WordPress Themes From 2011" href="http://www.noupe.com/wordpress/50-great-free-wordpress-themes-from-2011.html">50 Great Free WordPress Themes From 2011</a></strong>&#8220;. <strong><a title="Ambrosia theme" href="http://phrappe.com/ambrosia-theme/">Ambrosia</a></strong> appears on the list at 41!</p>
<p>Once again I&#8217;d like to thank <a title="Speak.gr - Kostis Vasiliadis" href="http://www.speak.gr/">Kostis Vasiliadis</a> for the amazing graphics and support <img src='http://phrappe.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<img src="http://feeds.feedburner.com/~r/phrappe_com/~4/ScNkiP5WSBM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://phrappe.com/wordpress/ambrosia-is-one-of-the-fifty-free-great-wordpress-themes-of-2011/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://phrappe.com/wordpress/ambrosia-is-one-of-the-fifty-free-great-wordpress-themes-of-2011/</feedburner:origLink></item>
		<item>
		<title>jQuery lights off effect</title>
		<link>http://feedproxy.google.com/~r/phrappe_com/~3/Sp1sn0dUdYE/</link>
		<comments>http://phrappe.com/javascript/jquery-lights-off-effect/#comments</comments>
		<pubDate>Mon, 12 Sep 2011 12:52:13 +0000</pubDate>
		<dc:creator>John Tsevdos</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[lights_off]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://phrappe.com/?p=243</guid>
		<description><![CDATA[I&#8217;ve been working on a &#8220;lights off&#8221; effect for videos the other day. Here&#8217;s a demo page (with the appropriate code) that I might turn into a proper plugin if there is enough interest. Enjoy&#8230;]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been working on a &#8220;lights off&#8221; effect for videos the other day. Here&#8217;s a <a title="Phrappe.com - Lights Off demo" href="http://phrappe.com/demos/lightsoff/lights_off.html" target="_blank">demo page</a> (with the appropriate code) that I might turn into a proper plugin if there is enough interest. Enjoy&#8230;</p>
<p><script src="https://gist.github.com/2000991.js?file=jQuery-lightsoff-effect.js"></script></p>
<img src="http://feeds.feedburner.com/~r/phrappe_com/~4/Sp1sn0dUdYE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://phrappe.com/javascript/jquery-lights-off-effect/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		<feedburner:origLink>http://phrappe.com/javascript/jquery-lights-off-effect/</feedburner:origLink></item>
		<item>
		<title>jQuery window.onload equivalent</title>
		<link>http://feedproxy.google.com/~r/phrappe_com/~3/DL7GF8hNXVM/</link>
		<comments>http://phrappe.com/javascript/jquery-window-onload-equivalent/#comments</comments>
		<pubDate>Mon, 01 Aug 2011 07:20:11 +0000</pubDate>
		<dc:creator>John Tsevdos</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[load()]]></category>
		<category><![CDATA[window.onload]]></category>

		<guid isPermaLink="false">http://phrappe.com/?p=231</guid>
		<description><![CDATA[Last week a reader contact me noting that my equal heights script is not working. When I took a closer look at his code, I find out that the reason of not working correctly wasn’t my script but the way jQuery works! The normal jQuery behaviour is to run the code when the DOM is ready [...]]]></description>
			<content:encoded><![CDATA[<p>Last week a reader contact me noting that my <a title="A really simple “equal heights” method for jQuery!" href="http://phrappe.com/javascript/a-really-simple-equal-heights-method-for-jquery/">equal heights script</a> is not working. When I took a closer look at his code, I find out that the reason of not working correctly wasn’t my script but the way <strong>jQuery</strong> works! The normal jQuery behaviour is to run the code when the DOM is ready and won&#8217;t wait for images/graphics etc. to load. There are some cases though, that someone needs to run a piece of code after the entire page is fully loaded. You can achieve that with the code bellow :<br />
<script src="https://gist.github.com/2000980.js?file=jQuery-window.onload-equivalent.js"></script><br />
The elements that needed equal heights contain images, so the script was miscalculating the max-height value because it wasn&#8217;t getting the correct height of the images (since they were still loading). The above code will fix that, since it will load the script when the entire window is fully loaded (including images).</p>
<p>Keep in mind that this is an <a title="jQuery - .load() event" href="http://api.jquery.com/load-event/">event handler method</a> (a shortcut for <code>.bind('load', handler)</code> ) and has nothing to do with the <a title="jQuery - Ajax .load() method" href="http://api.jquery.com/load/">ajax load() method</a>.</p>
<img src="http://feeds.feedburner.com/~r/phrappe_com/~4/DL7GF8hNXVM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://phrappe.com/javascript/jquery-window-onload-equivalent/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://phrappe.com/javascript/jquery-window-onload-equivalent/</feedburner:origLink></item>
		<item>
		<title>Thanks for the support!</title>
		<link>http://feedproxy.google.com/~r/phrappe_com/~3/NMLVsMa6H6s/</link>
		<comments>http://phrappe.com/wordpress/thanks-for-the-support/#comments</comments>
		<pubDate>Mon, 25 Jul 2011 07:10:30 +0000</pubDate>
		<dc:creator>John Tsevdos</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[ambrosia]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://phrappe.com/?p=228</guid>
		<description><![CDATA[I’d like to thanks the below sites for promoting/mentioning my theme. Thank you all! wpMail (theme releases) WordPress.org.cn forum Bloggingexperiment WP Themes XL Simple Themes Connect www.com Wopus Web Resources (entry no.10) Updated : noupe.com sacima.com 7maximes.com &#8230;and of course all the people who choose Ambrosia for their theme!]]></description>
			<content:encoded><![CDATA[<p>I’d like to thanks the below sites for promoting/mentioning my <a title="Ambrosia WordPress theme" href="http://wordpress.org/extend/themes/ambrosia" target="_blank">theme</a>. Thank you all!</p>
<ul>
<li><a title="WpMail" href="http://wpmail.me/newsletter/7/" target="_blank">wpMail</a> (theme releases)</li>
<li><a title="Wordpress.org.cn forum" href="http://wordpress.org.cn/thread-89958-1-1.html" target="_blank">WordPress.org.cn forum</a></li>
<li><a title="Bloggingexperiment" href="http://bloggingexperiment.com/free-wordpress-themes/ambrosia-theme/" target="_blank">Bloggingexperiment</a></li>
<li><a title="WP Themes XL" href="http://www.wpthemesxl.com/2011/06/ambrosia-wordpress-theme/" target="_blank">WP Themes XL</a></li>
<li><a title="Simple Themes" href="http://free.simplethemes.org/ambrosia.php" target="_blank">Simple Themes</a></li>
<li><a title="Connect www.com" href="http://connectwww.com/7-best-free-wordpress-themes-from-wordpress-themes-directory-27-june-2011/1058/" target="_blank">Connect www.com</a></li>
<li><a title="Wopus" href="http://themes.wopus.org/wpthemes/two-column/4599.html" target="_blank">Wopus</a></li>
<li><a title="Web Resources" href="http://www.web-resources.eu/archives/38-%CE%B4%CF%89%CF%81%CE%B5%CE%AC%CE%BD-wordpress-themes" target="_blank">Web Resources</a> (entry no.10)</li>
</ul>
<div><strong>Updated</strong> :</div>
<div>
<ul>
<li><a title="50 Great Free WordPress Themes From 2011" href="http://www.noupe.com/wordpress/50-great-free-wordpress-themes-from-2011.html" target="_blank">noupe.com</a></li>
<li><a title="50 Great Free WordPress Themes From 2011" href="http://sacima.com/iphone-ipad-apps/50-great-free-wordpress-themes-from-2011/" target="_blank">sacima.com</a></li>
<li><a title="50 Great Free WordPress Themes From 2011" href="http://www.7maximes.com/50-great-free-wordpress-themes-from-2011/" target="_blank">7maximes.com</a></li>
</ul>
</div>
<div>&#8230;and of course all the people who choose Ambrosia for their theme! <img src='http://phrappe.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </div>
<img src="http://feeds.feedburner.com/~r/phrappe_com/~4/NMLVsMa6H6s" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://phrappe.com/wordpress/thanks-for-the-support/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://phrappe.com/wordpress/thanks-for-the-support/</feedburner:origLink></item>
		<item>
		<title>How to load styles and scripts on a WordPress theme</title>
		<link>http://feedproxy.google.com/~r/phrappe_com/~3/xymS4zF2gkQ/</link>
		<comments>http://phrappe.com/wordpress/how-to-load-styles-and-scripts-on-a-wordpress-theme/#comments</comments>
		<pubDate>Thu, 21 Jul 2011 07:11:07 +0000</pubDate>
		<dc:creator>John Tsevdos</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[ambrosia]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[functions.php]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[styles]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://phrappe.com/?p=211</guid>
		<description><![CDATA[WordPress provides two useful functions to help you keep the head section on your header.php template file clean. The wp_enqueue_style will help you load your styles and the wp_enqueue_script will help you load your scripts. Both take the same parameters (name, source, dependencies, version, media &#8211; only for wp_enqueue_style &#8211; and in_footer &#8211; only for [...]]]></description>
			<content:encoded><![CDATA[<p>WordPress provides two useful functions to help you keep the head section on your <strong>header.php</strong> template file clean. The <strong><a title="wp_enqueue_style on Codex" href="http://codex.wordpress.org/Function_Reference/wp_enqueue_style">wp_enqueue_style</a></strong> will help you load your styles and the <strong><a title="wp_enqueue_script on Codex" href="http://codex.wordpress.org/Function_Reference/wp_enqueue_script">wp_enqueue_script</a></strong> will help you load your scripts. Both take the same parameters (name, source, dependencies, version, media &#8211; only for wp_enqueue_style &#8211; and in_footer &#8211; only for wp_enqueue_script) and the official WordPress documentation explains everything in great detail. Below I&#8217;ll demonstrate a simple way to use them, the same way it works on my latest free WordPress theme, <strong><a title="Ambrosia free wordpress theme" href="http://wordpress.org/extend/themes/ambrosia">Ambrosia</a></strong>.</p>
<p>These two functions &#8220;live&#8221; into the <strong>functions.php</strong> file. So let’s load the styles first. We only have to create an include function (for example <strong>ambrosia_load_styles()</strong>) that will load all the files using one or multiple <strong>wp_enqueue_style</strong> functions. To be more  specific, we’ll only load styles in our wordpress theme and not at the admin area (<strong>!is_admin()</strong>). Then an <a title="Action hooks" href="http://codex.wordpress.org/Plugin_API/Action_Reference">action hook</a> will run the include function (<strong>ambrosia_load_styles()</strong>), just before the <strong>header.php</strong> template file is loaded. It’s simpler than it sounds, have a look at the below code.</p>
<p><script src="https://gist.github.com/2000955.js?file=load-styles.php"></script></p>
<p>It&#8217;s much more simple to load script files. We only include our scripts using the <strong>wp_enqueue_script</strong> function (again excluding the admin area).</p>
<p><script src="https://gist.github.com/2000955.js?file=load-scripts.php"></script></p>
<p>Don’t forget that you can create dependencies on both CSS and javascript files, and of course load your javascript files on your footer area (after the page content is fully loaded).</p>
<p>Unfortunately, wp_enqueue_style and wp_enqueue_script functions don’t support any <strong>conditional comment</strong> mechanism, so if you have Internet Explorer (IE) only styles and scripts, you have to include them manually to your <strong>header.php</strong> file.</p>
<p><script src="https://gist.github.com/2000955.js?file=conditional-comments.html"></script></p>
<p>That’s all you need to know, so next time you’re building a theme, keep your <strong>header.php</strong> file clean by doing all the dirty work into the <strong>functions.php</strong> file!</p>
<img src="http://feeds.feedburner.com/~r/phrappe_com/~4/xymS4zF2gkQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://phrappe.com/wordpress/how-to-load-styles-and-scripts-on-a-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://phrappe.com/wordpress/how-to-load-styles-and-scripts-on-a-wordpress-theme/</feedburner:origLink></item>
		<item>
		<title>Safari’s HTML5 search input</title>
		<link>http://feedproxy.google.com/~r/phrappe_com/~3/mfu2BR8sOJs/</link>
		<comments>http://phrappe.com/markup/safaris-html5-search-input/#comments</comments>
		<pubDate>Fri, 08 Jul 2011 07:13:54 +0000</pubDate>
		<dc:creator>John Tsevdos</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[markup]]></category>
		<category><![CDATA[ambrosia]]></category>
		<category><![CDATA[field]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[input]]></category>
		<category><![CDATA[safari]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://phrappe.com/?p=200</guid>
		<description><![CDATA[The safest and easiest way to upgrade your markup to HTML5 is to use the new form input types. They will appear as ordinary text inputs on older browsers, and at the same time they&#8217;ll save you tons of work on form validation, and as a bonus they&#8217;ll assist your users in filling them (by [...]]]></description>
			<content:encoded><![CDATA[<p>The safest and easiest way to upgrade your markup to <strong>HTML5</strong> is to use the <a title="Dive into HTML5 - web forms" href="http://diveintohtml5.org/forms.html">new form input types</a>. They will appear as ordinary text inputs on older browsers, and at the same time they&#8217;ll save you tons of work on form validation, and as a bonus they&#8217;ll assist your users in filling them (by providing more in-browser features, alternate keyboard layouts and more). This blog theme uses a search input to search the site.<br />
<script src="https://gist.github.com/2000933.js?file=safaris-html5-search-input.html"></script><br />
It works great, but unfortunately, Safari’s default search input generates a close button (x) into the input field (while you type). Supposedly this will help the users to view recent search keywords, but if they they decide that they don&#8217;t need help, they can just click it and remove everything from list and the input field. I didn&#8217;t need this in-browser style for my search input, so after <a title="Dive into HTML5 - Web forms" href="http://diveintohtml5.org/forms.html">an investigation</a>, I discovered the below solution.<br />
<script src="https://gist.github.com/2000933.js?file=safaris-html5-search-input.css"></script><br />
This rule will transform your search input (with the strange close button) into  a typical text field input that you can style properly.</p>
<img src="http://feeds.feedburner.com/~r/phrappe_com/~4/mfu2BR8sOJs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://phrappe.com/markup/safaris-html5-search-input/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://phrappe.com/markup/safaris-html5-search-input/</feedburner:origLink></item>
	</channel>
</rss>

