<?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; button</title>
	<atom:link href="http://wpfunc.com/tag/button/feed" rel="self" type="application/rss+xml" />
	<link>http://wpfunc.com</link>
	<description>Awesome, Quick, Simple WordPress Functions!</description>
	<lastBuildDate>Thu, 01 Dec 2011 01:17:01 +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>Share, Like, Send and other social buttons&#8230;</title>
		<link>http://wpfunc.com/wordpress/share-like-send-and-other-social-buttons.html</link>
		<comments>http://wpfunc.com/wordpress/share-like-send-and-other-social-buttons.html#comments</comments>
		<pubDate>Fri, 20 May 2011 21:27:55 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[functions.php]]></category>
		<category><![CDATA[like]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[send]]></category>
		<category><![CDATA[share]]></category>
		<category><![CDATA[social]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=479</guid>
		<description><![CDATA[You can add social buttons with this litte function. Let&#8217;s begin&#8230;
Here is the code;
Add this code in your theme&#8217;s functions.php 
You have to change  areas for your theme &#38; site. Download this javascript files and upload into your theme.

Sample Image

]]></description>
			<content:encoded><![CDATA[<p>You can add social buttons with this litte function. Let&#8217;s begin&#8230;<span id="more-479"></span></p>
<h3>Here is the code;</h3>
<p>Add this code in your theme&#8217;s <strong>functions.php</strong> </p>
<pre class="brush: php; title: ; notranslate">//Like &amp; Share &amp; Send etc.
//Add After the_content
add_filter('the_content', cagirbeni);
function cagirbeni($content) {
$sayfalink = get_permalink();

//Importanat Area
$fappId = &quot;126927697318171&quot;; //Your Facebook AppID or same with this.
$twittervia = &quot;kaisercrazy&quot;; //Write your twitter username.
$temaklasoru =&quot;kaisercrazy/javascripts&quot;; //Path of your javascript files in your theme.
//Importanat Area

	if(is_single()) {
	$content .= $button = '&lt;div style=&quot;height:21px;margin-bottom:10px;&quot;&gt;&lt;div id=&quot;fb-root&quot;&gt;&lt;/div&gt;&lt;script src=&quot;http://connect.facebook.net/en_US/all.js#appId='.$fappId.'&amp;amp;xfbml=1&quot;&gt;&lt;/script&gt;&lt;fb:like href=&quot;'.$sayfalink.'&quot; send=&quot;true&quot; width=&quot;170&quot; show_faces=&quot;false&quot; layout=&quot;button_count&quot; font=&quot;segoe ui&quot;&gt;&lt;/fb:like&gt;&lt;div style=&quot;float:right;height:20px;margin-bottom:15px;&quot;&gt;&lt;a href=&quot;http://twitter.com/share&quot; class=&quot;twitter-share-button&quot; data-count=&quot;horizontal&quot; data-via=&quot;'.$twittervia.'&quot;&gt;Tweet&lt;/a&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;/wp-content/themes/'.$temaklasoru.'/twitter.js&quot;&gt;&lt;/script&gt;&lt;script type=&quot;text/javascript&quot; src =&quot;/wp-content/themes/'.$temaklasoru.'/buttons.js&quot;&gt;&lt;/script&gt;&lt;a class=&quot;DiggThisButton DiggCompact&quot; rev=&quot;news, technology&quot;&gt;&lt;/a&gt;&lt;div id=&quot;fb_share_1&quot; style=&quot;float:right;margin-left: 10px;&quot;&gt;&lt;a name=&quot;fb_share&quot; type=&quot;button_count&quot; share_url=&quot;'.$sayfalink.'&quot; href=&quot;http://www.facebook.com/sharer.php&quot;&gt;Paylaş&lt;/a&gt; &lt;/div&gt;&lt;script src=&quot;/wp-content/themes/'.$temaklasoru.'/FB.Share.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;&lt;/div&gt;&lt;/div&gt;';
}
	return $content ;
}
//Like &amp; Share &amp; Send etc.</pre>
<p>You have to change  areas for your theme &amp; site. Download this javascript files and upload into your theme.<br />
Note: There is a file embedded within this post, please visit this post to download the file.<br />
</p>
<h3>Sample Image</h3>
<p><a class="highslide img_2" href="http://www.wpfunc.com/wp-content/uploads/2011/05/social-area.png" onclick="return hs.expand(this)"><img src="http://www.wpfunc.com/wp-content/uploads/2011/05/social-area.png" alt="" title="social-area" width="655" height="32" class="alignnone size-full wp-image-480" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/share-like-send-and-other-social-buttons.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>
		<item>
		<title>Add a &#8216;Share on Facebook&#8217; button without any plugin</title>
		<link>http://wpfunc.com/wordpress/add-a-share-on-facebook-button-without-any-plugin.html</link>
		<comments>http://wpfunc.com/wordpress/add-a-share-on-facebook-button-without-any-plugin.html#comments</comments>
		<pubDate>Mon, 20 Jul 2009 11:00:29 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[Joomla]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=69</guid>
		<description><![CDATA[My friend asked to me &#8216;How i add a Facebook Button to My Joomla site?&#8217;. I gave him this code. I think this code appliable for WordPress  and change code for WordPress, because this is only link, i copied from Facebook :) You have to make a little change on single.php. Lets begin&#8230;
Just Copy this [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">My friend asked to me &#8216;How i add a Facebook Button to My Joomla site?&#8217;. I gave him this code. I think this code appliable for WordPress  and change code for WordPress, because this is only link, i copied from Facebook :) You have to make a little change on single.php. Lets begin&#8230;<span id="more-69"></span></p>
<h3>Just Copy this code in the WordPress Loop;</h3>
<pre class="brush: plain; title: ; notranslate">&lt;a href=&quot;http://www.facebook.com/sharer.php?u=&lt;?php the_permalink();?&gt;&quot;&amp;t=&quot;&lt;?php the_title(); ?&gt;&quot; target=&quot;blank&quot;&gt;Share on Facebook&lt;/a&gt;</pre>
<p>That&#8217;s All! Have a nice day!</p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/add-a-share-on-facebook-button-without-any-plugin.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

