Version Description
= *Fixed a small bug for left side floating facebook like. *Eliminated the use of javascript for facebook like as it was conflicting with other facebook plugins.
=
Download this release
Release Info
Developer | BeingMaverick |
Plugin | Add Twitter, Facebook Like, Google plus one Social share |
Version | 1.0.2 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 1.0.2
- readme.txt +5 -1
- tf_admin_page.php +21 -0
- tf_display.php +2 -8
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Plugin Site: http://www.searchtechword.com
|
|
4 |
Tags: Facebook like, twitter button, twitter share, Google +1 (plus one) button, Google plus one, Stumbleupon, social share, twitter facebook share, google +1 share
|
5 |
Requires at least: 2.8+
|
6 |
Tested up to: 3.1.3
|
7 |
-
Stable tag: 1.0.
|
8 |
|
9 |
== Description ==
|
10 |
<br />
|
@@ -46,6 +46,10 @@ You can Check Screen Shots on my website. I use the same plugin to display Socia
|
|
46 |
|
47 |
== Change log ==
|
48 |
|
|
|
|
|
|
|
|
|
49 |
== 1.0.1 ==
|
50 |
* Add the option in settings to enter your twitter id. This will be used in "via @yourtweetid" in the tweet text.
|
51 |
* Fixed a small CSS bug for facebook like (left floating).
|
4 |
Tags: Facebook like, twitter button, twitter share, Google +1 (plus one) button, Google plus one, Stumbleupon, social share, twitter facebook share, google +1 share
|
5 |
Requires at least: 2.8+
|
6 |
Tested up to: 3.1.3
|
7 |
+
Stable tag: 1.0.2
|
8 |
|
9 |
== Description ==
|
10 |
<br />
|
46 |
|
47 |
== Change log ==
|
48 |
|
49 |
+
== 1.0.2 ==
|
50 |
+
*Fixed a small bug for left side floating facebook like.
|
51 |
+
*Eliminated the use of javascript for facebook like as it was conflicting with other facebook plugins.
|
52 |
+
|
53 |
== 1.0.1 ==
|
54 |
* Add the option in settings to enter your twitter id. This will be used in "via @yourtweetid" in the tweet text.
|
55 |
* Fixed a small CSS bug for facebook like (left floating).
|
tf_admin_page.php
CHANGED
@@ -71,6 +71,7 @@ $active_buttons = array(
|
|
71 |
|
72 |
$out .= '
|
73 |
<div class="wrap">
|
|
|
74 |
<h2>'.__( 'Facebook and Twitter share buttons', 'menu-test' ).'</h2>
|
75 |
<form name="form1" method="post" action="">
|
76 |
|
@@ -173,6 +174,26 @@ $active_buttons = array(
|
|
173 |
|
174 |
</form>
|
175 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
176 |
';
|
177 |
echo $out;
|
178 |
}
|
71 |
|
72 |
$out .= '
|
73 |
<div class="wrap">
|
74 |
+
<div style="float:left; width:70%;">
|
75 |
<h2>'.__( 'Facebook and Twitter share buttons', 'menu-test' ).'</h2>
|
76 |
<form name="form1" method="post" action="">
|
77 |
|
174 |
|
175 |
</form>
|
176 |
</div>
|
177 |
+
<div style="float:left; margin-top:100px; width:30%;">
|
178 |
+
<table>
|
179 |
+
<tr><td align="justify" width="80px">
|
180 |
+
<h4>Support the Author</h4>
|
181 |
+
<p >If you liked the plugin and was useful to your site then please support to keep this project up and running. Maintenance and enhancement do cost. Show your appreciation and love.</p> </td></tr>
|
182 |
+
<tr>
|
183 |
+
<td align="centre">
|
184 |
+
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
|
185 |
+
<input type="hidden" name="cmd" value="_s-xclick">
|
186 |
+
<input type="hidden" name="hosted_button_id" value="86FHBFVUYN45J">
|
187 |
+
<input type="image" src="https://www.paypalobjects.com/en_US/GB/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">
|
188 |
+
<img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
|
189 |
+
</form>
|
190 |
+
</td>
|
191 |
+
</tr>
|
192 |
+
</table>
|
193 |
+
</div>
|
194 |
+
|
195 |
+
<div style="clear:both;"></div>
|
196 |
+
</div>
|
197 |
';
|
198 |
echo $out;
|
199 |
}
|
tf_display.php
CHANGED
@@ -13,9 +13,6 @@ function twitter_facebook_share_init() {
|
|
13 |
//GET ARRAY OF STORED VALUES
|
14 |
$option = twitter_facebook_share_get_options_stored();
|
15 |
|
16 |
-
if ($option['active_buttons']['facebook_like']==true) {
|
17 |
-
wp_enqueue_script('twitter_facebook_share_facebook', 'http://connect.facebook.net/en_US/all.js#xfbml=1','','',$option['jsload']);
|
18 |
-
}
|
19 |
if ($option['active_buttons']['twitter']==true) {
|
20 |
wp_enqueue_script('twitter_facebook_share_twitter', 'http://platform.twitter.com/widgets.js','','',$option['jsload']);
|
21 |
}
|
@@ -120,7 +117,8 @@ margin:4px 4px 4px 4px;
|
|
120 |
if ($option['active_buttons']['facebook_like']==true) {
|
121 |
$output .= '
|
122 |
<div class="buttons">
|
123 |
-
<
|
|
|
124 |
</div>';
|
125 |
}
|
126 |
|
@@ -166,7 +164,6 @@ margin:4px 4px 4px 4px;
|
|
166 |
if ($option['active_buttons']['Google_plusone']==true) {
|
167 |
$output .= '
|
168 |
<div class="buttons">
|
169 |
-
<script type="text/javascript" src="http://apis.google.com/js/plusone.js"></script>
|
170 |
<g:plusone size="medium"></g:plusone>
|
171 |
</div>';
|
172 |
}
|
@@ -193,9 +190,6 @@ margin:4px 4px 4px 4px;
|
|
193 |
</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>';
|
194 |
|
195 |
return $output;
|
196 |
-
|
197 |
}
|
198 |
-
|
199 |
-
|
200 |
}
|
201 |
?>
|
13 |
//GET ARRAY OF STORED VALUES
|
14 |
$option = twitter_facebook_share_get_options_stored();
|
15 |
|
|
|
|
|
|
|
16 |
if ($option['active_buttons']['twitter']==true) {
|
17 |
wp_enqueue_script('twitter_facebook_share_twitter', 'http://platform.twitter.com/widgets.js','','',$option['jsload']);
|
18 |
}
|
117 |
if ($option['active_buttons']['facebook_like']==true) {
|
118 |
$output .= '
|
119 |
<div class="buttons">
|
120 |
+
<iframe src="http://www.facebook.com/plugins/like.php?href=' . rawurlencode(get_permalink()) . '&layout=box_count&show_faces=false&action=like&font=verdana
|
121 |
+
&colorscheme=light" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px; height:60px;" allowTransparency="true"></iframe>
|
122 |
</div>';
|
123 |
}
|
124 |
|
164 |
if ($option['active_buttons']['Google_plusone']==true) {
|
165 |
$output .= '
|
166 |
<div class="buttons">
|
|
|
167 |
<g:plusone size="medium"></g:plusone>
|
168 |
</div>';
|
169 |
}
|
190 |
</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>';
|
191 |
|
192 |
return $output;
|
|
|
193 |
}
|
|
|
|
|
194 |
}
|
195 |
?>
|