<?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>WP Garage &#187; shadow</title>
	<atom:link href="http://wpgarage.com/tag/shadow/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpgarage.com</link>
	<description>wordpress tricks, hacks, and tips</description>
	<lastBuildDate>Wed, 16 Nov 2011 14:36:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Add SWFir to WordPress for nice rounded corners, shadows and other effects</title>
		<link>http://wpgarage.com/design/add-swfir-to-wordpress-for-nice-rounded-corners-shadows-and-other-effects/</link>
		<comments>http://wpgarage.com/design/add-swfir-to-wordpress-for-nice-rounded-corners-shadows-and-other-effects/#comments</comments>
		<pubDate>Sun, 14 Feb 2010 09:42:16 +0000</pubDate>
		<dc:creator>Rebecca Markowitz</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[image replacement]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[rounded corners]]></category>
		<category><![CDATA[shadow]]></category>
		<category><![CDATA[swfir]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">?p=623</guid>
		<description><![CDATA[<p>While collaborating with our colleagues at Red Door on a project, we came across SWFir,  an amazing way to add some nice subtle effects to WordPress site images. SWFir automatically adds a flash layer on top of images that can round the corners, add a shadow, rotate, or add a border.  I found the directions [...]</p><p>This post was originally published at <a href="http://wpgarage.com/design/add-swfir-to-wordpress-for-nice-rounded-corners-shadows-and-other-effects/">Add SWFir to WordPress for nice rounded corners, shadows and other effects</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p>]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content" style="float:right;"><div class="socialize-in-button socialize-in-button-right"><a href="http://twitter.com/share" class="twitter-share-button" data-counturl="http://wpgarage.com/design/add-swfir-to-wordpress-for-nice-rounded-corners-shadows-and-other-effects/" data-url="http://illum.in/oUssul" data-text="Add SWFir to WordPress for nice rounded corners, shadows and other effects" data-count="vertical" data-via="wpgarage" data-related="wpgarage"><!--Tweetter--></a></div><div class="socialize-in-button socialize-in-button-right"><iframe src="http://www.facebook.com/plugins/like.php?href=http://wpgarage.com/design/add-swfir-to-wordpress-for-nice-rounded-corners-shadows-and-other-effects/&amp;layout=box_count&amp;show_faces=true&amp;width=50&amp;action=like&amp;font=arial&amp;colorscheme=light&amp;height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px !important; height:65px;" allowTransparency="true"></iframe></div><div class="socialize-in-button socialize-in-button-right"><g:plusone size="tall" href="http://wpgarage.com/design/add-swfir-to-wordpress-for-nice-rounded-corners-shadows-and-other-effects/"></g:plusone></div></div><p>While collaborating with our colleagues at <a href="http://www.reddoor.biz/">Red Door</a> on a project, we came across <a href="http://www.swfir.com/">SWFir</a>,  an amazing way to add some nice subtle effects to WordPress site images. SWFir automatically adds a flash layer on top of images that can round the corners, add a shadow, rotate, or add a border.  I found the directions on their site a little skimpy for WordPress users so I thought I&#8217;d share how to integrate SWFir for WordPress users.</p>
<p>CSS3 is also great for rounded <a href="http://www.smashingmagazine.com/2009/01/08/push-your-web-design-into-the-future-with-css3/">corners and shadows</a>, but unfortunately we still need to keep in mind people using all different versions of Internet Explorer.</p>
<p><img title="swfir" src="http://wpgarage.com/wp-content/uploads/2010/02/swfir.png" alt="" width="400" height="370" /></p>
<ol>
<li>Download <a href="http://www.swfir.com/mint/pepper/tillkruess/downloads/download.php?uri=/files/swfir_v1.zip">SWFir</a></li>
<li>Upload <code>swfir.js</code> and <code>swfir.swf</code> into a folder called swfir into  your theme directory</li>
<li>Include the swfIR JavaScript file in the <code>&lt;head&gt;</code> of your document like this:<code><br />
</code><code>&lt;script type="text/javascript" src="swfir.js"&gt;&lt;/script&gt;</code></li>
<li>Add this to footer.php just before the closing body tag&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
// swfIR<br />
window.onload = function() {<br />
var sir = new swfir();<br />
sir.specify(&#8220;border-radius&#8221;, &#8220;15&#8243;);<br />
sir.specify(&#8220;src&#8221;, &#8220;&lt;?php bloginfo(&#8216;stylesheet_directory&#8217;); ?&gt;/swfir/swfir.swf&#8221;);<br />
sir.swap(&#8220;.latest-posts-center img&#8221;);<br />
sir.swap(&#8220;.latest-posts-center a img&#8221;);<br />
sir.swap(&#8220;img.rounded&#8221;);<br />
&lt;/script&gt;</p>
<p>You may choose from any of these parameters:</p>
<ul>
<li>border-radius</li>
<li>border-width</li>
<li>border-color</li>
<li>shadow-offset</li>
<li>shadow-angle</li>
<li>shadow-alpha</li>
<li>shadow-blur</li>
<li>shadow-blur-x</li>
<li>shadow-blur-y</li>
<li>shadow-strength</li>
<li>shadow-color</li>
<li>shadow-quality</li>
<li>shadow-inner</li>
<li>shadow-knockout</li>
<li>shadow-hide</li>
<li>rotate</li>
<li>overflow</li>
<li>link</li>
<li>elasticity</li>
</ul>
</li>
<li><strong>Add this in the loop somewhere </strong><strong> </strong>Note: this is assuming that your images are not organized by month and day under Settings &gt; Miscellaneous &#8211; the box is unchecked.<br />
Also, you can change the width to whatever you want and it will resize automatically</p>
<p>&lt;?php if ( get_post_meta($post-&gt;ID, &#8217;rounded_img&#8217;, true) ) {<br />
$postimg = get_post_meta($post-&gt;ID, &#8217;rounded_img&#8217;, $single = true);<br />
if((stristr($postimg,&#8217;http&#8217;)===FALSE) &amp;&amp; (stristr($postimg,&#8217;wp-content&#8217;)===FALSE)) {<br />
$postimg = get_bloginfo(&#8216;siteurl&#8217;).&#8221;/wp-content/uploads/&#8221;.$postimg;<br />
} ?&gt;<br />
&lt;div&gt;<br />
&lt;a href=&#8221;&lt;?php the_permalink(); ?&gt;&#8221; rel=&#8221;bookmark&#8221; title=&#8221;Permanent Link to &lt;?php the_title(); ?&gt;&#8221;&gt;<br />
&lt;img src=&#8221;&lt;?php echo $postimg; ?&gt;&#8221; alt=&#8221;" width=&#8221;140&#8243;  /&gt;&lt;/a&gt;<br />
&lt;/div&gt;<br />
&lt;?php } ?&gt;</li>
<li>When you create a post, upload an image and copy the Link URL. Create a custom fields key rounded_img and paste the Link URL in the Value Box.<strong><br />
</strong></li>
</ol>
<p>This post was originally published at <a href="http://wpgarage.com/design/add-swfir-to-wordpress-for-nice-rounded-corners-shadows-and-other-effects/">Add SWFir to WordPress for nice rounded corners, shadows and other effects</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://wpgarage.com/design/add-swfir-to-wordpress-for-nice-rounded-corners-shadows-and-other-effects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

