Add Twitter, Facebook Like, Google plus one Social share - Version 2.2.1

Version Description

  • Fixed a minor bug for disable mobile device display.
Download this release

Release Info

Developer BeingMaverick
Plugin Icon wp plugin Add Twitter, Facebook Like, Google plus one Social share
Version 2.2.1
Comparing to
See all releases

Code changes from version 2.2.0 to 2.2.1

Files changed (3) hide show
  1. readme.txt +8 -1
  2. tf_display.php +22 -13
  3. twitter-facebook-share.php +1 -1
readme.txt CHANGED
@@ -4,7 +4,7 @@ Plugin Site: http://www.searchtechword.com
4
  Tags: Facebook like, twitter button, twitter share,LinkedIn, Google +1 button, Google plus one, Stumbleupon, social share, twitter facebook share,stumbleupon, LinkedIn share, floating sharebar, facebook, +1
5
  Requires at least: 2.8
6
  Tested up to: 3.3.1
7
- Stable tag: 2.2.0
8
 
9
  == Description ==
10
  <br />
@@ -59,6 +59,9 @@ You can Check Screen Shots on my website. I use the same plugin to display Socia
59
 
60
  == Changelog ==
61
 
 
 
 
62
  = 2.2.0 =
63
  * Added option to disable on Mobile device
64
 
@@ -93,6 +96,10 @@ You can Check Screen Shots on my website. I use the same plugin to display Socia
93
 
94
  == Upgrade Notice ==
95
 
 
 
 
 
96
  = 2.2.0 =
97
 
98
  Option to disable on Mobile devices.
4
  Tags: Facebook like, twitter button, twitter share,LinkedIn, Google +1 button, Google plus one, Stumbleupon, social share, twitter facebook share,stumbleupon, LinkedIn share, floating sharebar, facebook, +1
5
  Requires at least: 2.8
6
  Tested up to: 3.3.1
7
+ Stable tag: 2.2.1
8
 
9
  == Description ==
10
  <br />
59
 
60
  == Changelog ==
61
 
62
+ = 2.2.1 =
63
+ * Fixed a minor bug for disable mobile device display.
64
+
65
  = 2.2.0 =
66
  * Added option to disable on Mobile device
67
 
96
 
97
  == Upgrade Notice ==
98
 
99
+ = 2.2.1 =
100
+
101
+ Minor bug fixed for disable mobile device display.
102
+
103
  = 2.2.0 =
104
 
105
  Option to disable on Mobile devices.
tf_display.php CHANGED
@@ -12,8 +12,11 @@ function twitter_facebook_share_init() {
12
 
13
  //GET ARRAY OF STORED VALUES
14
  $option = twitter_facebook_share_get_options_stored();
15
- if ($option['mobdev']==true){
16
- if (!is_mobile_device()){
 
 
 
17
 
18
  if ($option['active_buttons']['twitter']==true) {
19
  wp_enqueue_script('twitter_facebook_share_twitter', 'http://platform.twitter.com/widgets.js','','',$option['jsload']);
@@ -27,7 +30,7 @@ function twitter_facebook_share_init() {
27
  }
28
 
29
  wp_enqueue_style('tfg_style', '/wp-content/plugins/twitter-facebook-google-plusone-share/tfg_style.css');
30
- }}
31
 
32
  }
33
 
@@ -47,8 +50,11 @@ function kc_twitter_facebook($content, $filter)
47
 
48
  $option = twitter_facebook_share_get_options_stored();
49
  $custom_disable = get_post_custom_values('disable_social_share');
50
- if ($option['mobdev']==true){
51
- if (!is_mobile_device()) {
 
 
 
52
  if (is_single() && ($option['show_in']['posts']) && ($custom_disable[0] != 'yes')) {
53
  $output = kc_social_share('auto');
54
  if ($option['position'] == 'above')
@@ -137,7 +143,7 @@ function kc_twitter_facebook($content, $filter)
137
  if ($option['position'] == 'both')
138
  return $output . $content . $output;
139
  }
140
- }}
141
  return $content;
142
  }
143
 
@@ -145,11 +151,13 @@ function kc_twitter_facebook($content, $filter)
145
  function kc_add_social_share()
146
  {
147
  $option = twitter_facebook_share_get_options_stored();
148
- if ($option['mobdev']==true){
149
- if (!is_mobile_device()) {
 
 
 
150
  $output = kc_social_share('manual');
151
  echo $output;
152
- }}
153
  }
154
 
155
 
@@ -268,12 +276,13 @@ function kc_social_share($source)
268
 
269
  function tfg_social_share_shortcode () {
270
  $option = twitter_facebook_share_get_options_stored();
271
- if ($option['mobdev']==true){
272
- if (!is_mobile_device())
273
- {
 
 
274
  $output = kc_social_share('shortcode');
275
  echo $output;
276
- }}
277
  }
278
 
279
  function fb_like_thumbnails()
12
 
13
  //GET ARRAY OF STORED VALUES
14
  $option = twitter_facebook_share_get_options_stored();
15
+
16
+ if (is_mobile_device() && ($option['mobdev']==true)){
17
+ // disable for mobile device
18
+ return;
19
+ }
20
 
21
  if ($option['active_buttons']['twitter']==true) {
22
  wp_enqueue_script('twitter_facebook_share_twitter', 'http://platform.twitter.com/widgets.js','','',$option['jsload']);
30
  }
31
 
32
  wp_enqueue_style('tfg_style', '/wp-content/plugins/twitter-facebook-google-plusone-share/tfg_style.css');
33
+
34
 
35
  }
36
 
50
 
51
  $option = twitter_facebook_share_get_options_stored();
52
  $custom_disable = get_post_custom_values('disable_social_share');
53
+
54
+ if (is_mobile_device() && ($option['mobdev']==true)){
55
+ // disable for mobile device
56
+ return $content;
57
+ }
58
  if (is_single() && ($option['show_in']['posts']) && ($custom_disable[0] != 'yes')) {
59
  $output = kc_social_share('auto');
60
  if ($option['position'] == 'above')
143
  if ($option['position'] == 'both')
144
  return $output . $content . $output;
145
  }
146
+
147
  return $content;
148
  }
149
 
151
  function kc_add_social_share()
152
  {
153
  $option = twitter_facebook_share_get_options_stored();
154
+
155
+ if ((is_mobile_device()) && ($option['mobdev']==true)){
156
+ // disable for mobile device
157
+ return;
158
+ }
159
  $output = kc_social_share('manual');
160
  echo $output;
 
161
  }
162
 
163
 
276
 
277
  function tfg_social_share_shortcode () {
278
  $option = twitter_facebook_share_get_options_stored();
279
+
280
+ if (is_mobile_device() && ($option['mobdev']==true)){
281
+ // disable for mobile device
282
+ return;
283
+ }
284
  $output = kc_social_share('shortcode');
285
  echo $output;
 
286
  }
287
 
288
  function fb_like_thumbnails()
twitter-facebook-share.php CHANGED
@@ -5,7 +5,7 @@ Description: WordPress plugin for twitter, facebook, Google +1 (plus one) and ot
5
  Author: Kunal Chichkar
6
  Author URI: http://www.searchtechword.com
7
  Plugin URI: http://www.searchtechword.com/2011/06/wordpress-plugin-add-twitter-facebook-google-plus-one-share
8
- Version: 2.2.0
9
  License: GPL
10
  */
11
  /*
5
  Author: Kunal Chichkar
6
  Author URI: http://www.searchtechword.com
7
  Plugin URI: http://www.searchtechword.com/2011/06/wordpress-plugin-add-twitter-facebook-google-plus-one-share
8
+ Version: 2.2.1
9
  License: GPL
10
  */
11
  /*