VK All in One Expansion Unit - Version 3.8.1

Version Description

  • [ bug fix ][ SNS Buttons ] ignore post id no work...
Download this release

Release Info

Developer kurudrive
Plugin Icon 128x128 VK All in One Expansion Unit
Version 3.8.1
Comparing to
See all releases

Code changes from version 3.8.0 to 3.8.1

plugins/sns/function_snsBtns.php CHANGED
@@ -26,23 +26,28 @@ function vkExUnit_add_snsBtns( $content ) {
26
  if ( ! $pageTitle ) {
27
  $pageTitle = urlencode( vkExUnit_get_wp_head_title() );
28
  }
29
- $socialSet = '<div class="veu_socialSet veu_contentAddSection"><script>window.twttr=(function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],t=window.twttr||{};if(d.getElementById(id))return t;js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);t._e=[];t.ready=function(f){t._e.push(f);};return t;}(document,"script","twitter-wjs"));</script><ul>';
30
- // facebook
31
- $socialSet .= '<li class="sb_facebook sb_icon"><a href="http://www.facebook.com/sharer.php?src=bm&u='.$linkUrl.'&amp;t='.$pageTitle.'" target="_blank" ><span class="vk_icon_w_r_sns_fb icon_sns"></span><span class="sns_txt">Facebook</span><span class="veu_count_sns_fb"></span></a></li>';
32
- // twitter
33
- $socialSet .= '<li class="sb_twitter sb_icon"><a href="http://twitter.com/intent/tweet?url='.$linkUrl.'&amp;text='.$pageTitle.'" target="_blank" onclick="javascript:" ><span class="vk_icon_w_r_sns_twitter icon_sns"></span><span class="sns_txt">twitter</span></a></li>';
34
- // hatena
35
- $socialSet .= '<li class="sb_hatena sb_icon"><a href="http://b.hatena.ne.jp/add?mode=confirm&url='.$linkUrl.'&amp;title='.$pageTitle.'" target="_blank" onclick="snsWindowOpen();"><span class="vk_icon_w_r_sns_hatena icon_sns"></span><span class="sns_txt">Hatena</span><span class="veu_count_sns_hb"></span></a></li>';
36
- // line
37
- if ( wp_is_mobile() ) :
38
- $socialSet .= '<li class="sb_line sb_icon">
39
- <a href="line://msg/text/'.$pageTitle.' '.$linkUrl.'"><span class="vk_icon_w_r_sns_line icon_sns"></span><span class="sns_txt">LINE</span></a></li>';
40
- endif;
41
- // pocket
42
- $socialSet .= '<li class="sb_pocket"><span></span><a data-pocket-label="pocket" data-pocket-count="horizontal" class="pocket-btn" data-save-url="'.$linkUrl.'" data-lang="en"></a><script type="text/javascript">!function(d,i){if(!d.getElementById(i)){var j=d.createElement("script");j.id=i;j.src="https://widgets.getpocket.com/v1/j/btn.js?v=1";var w=d.getElementById(i);d.body.appendChild(j);}}(document,"pocket-btn-js");</script></li>';
 
 
 
43
 
44
- $socialSet .= '</ul></div><!-- [ /.socialSet ] -->';
45
- $content .= $socialSet;
 
 
46
  endif;
47
  return $content;
48
  }
26
  if ( ! $pageTitle ) {
27
  $pageTitle = urlencode( vkExUnit_get_wp_head_title() );
28
  }
29
+ global $post;
30
+ $options = vkExUnit_get_sns_options();
31
+ if ( !isset( $options['SnsBtn_ignorePost'] ) || $options['SnsBtn_ignorePost'] != $post->ID ) {
32
+ $socialSet = '<div class="veu_socialSet veu_contentAddSection"><script>window.twttr=(function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],t=window.twttr||{};if(d.getElementById(id))return t;js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);t._e=[];t.ready=function(f){t._e.push(f);};return t;}(document,"script","twitter-wjs"));</script><ul>';
33
+ // facebook
34
+ $socialSet .= '<li class="sb_facebook sb_icon"><a href="http://www.facebook.com/sharer.php?src=bm&u='.$linkUrl.'&amp;t='.$pageTitle.'" target="_blank" ><span class="vk_icon_w_r_sns_fb icon_sns"></span><span class="sns_txt">Facebook</span><span class="veu_count_sns_fb"></span></a></li>';
35
+ // twitter
36
+ $socialSet .= '<li class="sb_twitter sb_icon"><a href="http://twitter.com/intent/tweet?url='.$linkUrl.'&amp;text='.$pageTitle.'" target="_blank" onclick="javascript:" ><span class="vk_icon_w_r_sns_twitter icon_sns"></span><span class="sns_txt">twitter</span></a></li>';
37
+ // hatena
38
+ $socialSet .= '<li class="sb_hatena sb_icon"><a href="http://b.hatena.ne.jp/add?mode=confirm&url='.$linkUrl.'&amp;title='.$pageTitle.'" target="_blank" onclick="snsWindowOpen();"><span class="vk_icon_w_r_sns_hatena icon_sns"></span><span class="sns_txt">Hatena</span><span class="veu_count_sns_hb"></span></a></li>';
39
+ // line
40
+ if ( wp_is_mobile() ) :
41
+ $socialSet .= '<li class="sb_line sb_icon">
42
+ <a href="line://msg/text/'.$pageTitle.' '.$linkUrl.'"><span class="vk_icon_w_r_sns_line icon_sns"></span><span class="sns_txt">LINE</span></a></li>';
43
+ endif;
44
+ // pocket
45
+ $socialSet .= '<li class="sb_pocket"><span></span><a data-pocket-label="pocket" data-pocket-count="horizontal" class="pocket-btn" data-save-url="'.$linkUrl.'" data-lang="en"></a><script type="text/javascript">!function(d,i){if(!d.getElementById(i)){var j=d.createElement("script");j.id=i;j.src="https://widgets.getpocket.com/v1/j/btn.js?v=1";var w=d.getElementById(i);d.body.appendChild(j);}}(document,"pocket-btn-js");</script></li>';
46
 
47
+ $socialSet .= '</ul></div><!-- [ /.socialSet ] -->';
48
+ $content .= $socialSet;
49
+ } // if ( !isset( $options['SnsBtn_ignorePost'] ) || $options['SnsBtn_ignorePost'] != $post->ID ) {
50
+
51
  endif;
52
  return $content;
53
  }
plugins/sns/function_twitterCard.php CHANGED
@@ -8,7 +8,7 @@ function vkExUnit_add_twitterCard() {
8
  global $vkExUnit_sns_options;
9
 
10
  $options = vkExUnit_get_sns_options();
11
- $ignores = explode( ",", $options["SnsBtn_igronePost"] );
12
 
13
  if( in_array( get_the_id(), $ignores ) ) return false;
14
 
8
  global $vkExUnit_sns_options;
9
 
10
  $options = vkExUnit_get_sns_options();
11
+ $ignores = explode( ",", $options["SnsBtn_ignorePost"] );
12
 
13
  if( in_array( get_the_id(), $ignores ) ) return false;
14
 
plugins/sns/sns.php CHANGED
@@ -41,7 +41,7 @@ function vkExUnit_get_sns_options_default() {
41
  'enableTwitterCardTags' => true,
42
  'enableSnsBtns' => true,
43
  'enableFollowMe' => true,
44
- 'SnsBtn_igronePost' => '',
45
  'followMe_title' => 'Follow me!',
46
  );
47
  return apply_filters( 'vkExUnit_sns_options_default', $default_options );
@@ -58,7 +58,7 @@ function vkExUnit_sns_options_validate( $input ) {
58
  $output['fbPageUrl'] = $input['fbPageUrl'];
59
  $output['ogImage'] = $input['ogImage'];
60
  $output['twitterId'] = $input['twitterId'];
61
- $output['SnsBtn_igronePost'] = preg_replace('/[^0-9,]/', '', $input['SnsBtn_igronePost']);
62
  $output['enableOGTags'] = ( isset( $input['enableOGTags'] ) && isset( $input['enableOGTags'] ) == 'true' )? true: false;
63
  $output['enableTwitterCardTags'] = ( isset( $input['enableTwitterCardTags'] ) && isset( $input['enableTwitterCardTags'] ) == 'true' )? true: false;
64
  $output['enableSnsBtns'] = ( isset( $input['enableSnsBtns'] ) && isset( $input['enableSnsBtns'] ) == 'true' )? true: false;
41
  'enableTwitterCardTags' => true,
42
  'enableSnsBtns' => true,
43
  'enableFollowMe' => true,
44
+ 'SnsBtn_ignorePost' => '',
45
  'followMe_title' => 'Follow me!',
46
  );
47
  return apply_filters( 'vkExUnit_sns_options_default', $default_options );
58
  $output['fbPageUrl'] = $input['fbPageUrl'];
59
  $output['ogImage'] = $input['ogImage'];
60
  $output['twitterId'] = $input['twitterId'];
61
+ $output['SnsBtn_ignorePost'] = preg_replace('/[^0-9,]/', '', $input['SnsBtn_ignorePost']);
62
  $output['enableOGTags'] = ( isset( $input['enableOGTags'] ) && isset( $input['enableOGTags'] ) == 'true' )? true: false;
63
  $output['enableTwitterCardTags'] = ( isset( $input['enableTwitterCardTags'] ) && isset( $input['enableTwitterCardTags'] ) == 'true' )? true: false;
64
  $output['enableSnsBtns'] = ( isset( $input['enableSnsBtns'] ) && isset( $input['enableSnsBtns'] ) == 'true' )? true: false;
plugins/sns/sns_admin.php CHANGED
@@ -58,8 +58,8 @@
58
  </tr>
59
 
60
  <tr>
61
- <th><label for="SnsBtn_igronePost"><?php _e( 'ignore postID for SNS buttons' ,'vkExUnit'); ?></label></th>
62
- <td><input type="text" id="SnsBtn_igronePost" name="vkExUnit_sns_options[SnsBtn_igronePost]" value="<?php if( isset( $options['SnsBtn_igronePost'] ) ) echo $options['SnsBtn_igronePost'] ?>" />
63
  <br/>
64
  <?php _e( 'if you need filtering by post_ID, add the ignore post_ID separate by ",".', 'vkExUnit' );
65
  echo '<br/>';
58
  </tr>
59
 
60
  <tr>
61
+ <th><label for="SnsBtn_ignorePost"><?php _e( 'ignore postID for SNS buttons' ,'vkExUnit'); ?></label></th>
62
+ <td><input type="text" id="SnsBtn_ignorePost" name="vkExUnit_sns_options[SnsBtn_ignorePost]" value="<?php if( isset( $options['SnsBtn_ignorePost'] ) ) echo $options['SnsBtn_ignorePost'] ?>" />
63
  <br/>
64
  <?php _e( 'if you need filtering by post_ID, add the ignore post_ID separate by ",".', 'vkExUnit' );
65
  echo '<br/>';
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:
4
  Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Facebook Page Plugin, OG tags,
5
  Requires at least: 4.2
6
  Tested up to: 4.5.1
7
- Stable tag: 3.8.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -71,6 +71,9 @@ e.g.
71
 
72
  == Changelog ==
73
 
 
 
 
74
  = 3.8.0 =
75
  * [ Add Function ] Add TinyMCE Style Tags ( bootstrap buttons )
76
  * [ Specification change ][ New post Widget ] add filter & action hooks.
4
  Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Facebook Page Plugin, OG tags,
5
  Requires at least: 4.2
6
  Tested up to: 4.5.1
7
+ Stable tag: 3.8.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
71
 
72
  == Changelog ==
73
 
74
+ = 3.8.1 =
75
+ * [ bug fix ][ SNS Buttons ] ignore post id no work...
76
+
77
  = 3.8.0 =
78
  * [ Add Function ] Add TinyMCE Style Tags ( bootstrap buttons )
79
  * [ Specification change ][ New post Widget ] add filter & action hooks.
vkExUnit.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: VK All in One Expansion Unit
4
  Plugin URI: http://ex-unit.vektor-inc.co.jp
5
  Description: This plug-in is an integrated plug-in with a variety of features that make it powerful your web site. Many features can be stopped individually. Example Facebook Page Plugin,Social Bookmarks,Print OG Tags,Print Twitter Card Tags,Print Google Analytics tag,New post widget,Insert Related Posts and more!
6
- Version: 3.8.0
7
  Author: Vektor,Inc.
8
  Author URI: http://vektor-inc.co.jp
9
  License: GPL2
3
  Plugin Name: VK All in One Expansion Unit
4
  Plugin URI: http://ex-unit.vektor-inc.co.jp
5
  Description: This plug-in is an integrated plug-in with a variety of features that make it powerful your web site. Many features can be stopped individually. Example Facebook Page Plugin,Social Bookmarks,Print OG Tags,Print Twitter Card Tags,Print Google Analytics tag,New post widget,Insert Related Posts and more!
6
+ Version: 3.8.1
7
  Author: Vektor,Inc.
8
  Author URI: http://vektor-inc.co.jp
9
  License: GPL2