<?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>WpFunc &#187; PDF</title>
	<atom:link href="http://wpfunc.com/tag/pdf/feed" rel="self" type="application/rss+xml" />
	<link>http://wpfunc.com</link>
	<description>Awesome, Quick, Simple WordPress Functions!</description>
	<lastBuildDate>Sun, 06 May 2012 02:21:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Create PDF Button</title>
		<link>http://wpfunc.com/wordpress/create-pdf-button.html</link>
		<comments>http://wpfunc.com/wordpress/create-pdf-button.html#comments</comments>
		<pubDate>Tue, 02 Mar 2010 18:00:50 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[functions.php]]></category>
		<category><![CDATA[google docs]]></category>
		<category><![CDATA[PDF]]></category>
		<category><![CDATA[shortcode]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=408</guid>
		<description><![CDATA[This is a simple button for display PDF&#8217;s with Google Docs. You can easily apply this code into your theme&#8217;s functions.php. And this useful thing has 4 lines code. Let&#8217;s Begin&#8230; Here is the code; Add this line into your theme&#8217;s functions.php; That&#8217;s All. Now use your shortcode; This tip orginally posted in WpRecipes.]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">This is a simple button for display PDF&#8217;s with Google Docs. You can easily apply this code into your theme&#8217;s <strong>functions.php</strong>. And this useful thing has 4 lines code. Let&#8217;s Begin&#8230;<span id="more-408"></span></p>
<h3>Here is the code;</h3>
<p>Add this line into your theme&#8217;s <strong><span style="color: #ff0000;">functions.php</span></strong>;</p>
<pre class="brush: php; title: ; notranslate">function pdflink($attr, $content) {
	return '&lt;a class=&quot;pdf&quot; href=&quot;http://docs.google.com/viewer?url=' . $attr['href'] . '&quot;&gt;'.$content.'&lt;/a&gt;';
}
add_shortcode('pdf', 'pdflink');
</pre>
<p>That&#8217;s All. Now use your shortcode;</p>
<pre class="brush: php; title: ; notranslate">[pdf href=&quot;http://yoursite.com/linktoyour/file.pdf&quot;]View PDF[/pdf]</pre>
<p>This tip orginally posted in <a href="http://www.wprecipes.com/wordpress-tip-create-a-pdf-viewer-shortcode">WpRecipes</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/create-pdf-button.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

