VK All in One Expansion Unit - Version 5.6.0

Version Description

Download this release

Release Info

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

Code changes from version 5.5.0 to 5.6.0

languages/vkExUnit-ja.mo CHANGED
Binary file
languages/vkExUnit-ja.po CHANGED
@@ -1,7 +1,7 @@
1
msgid ""
2
msgstr ""
3
"Project-Id-Version: \n"
4
- "POT-Creation-Date: 2017-09-24 23:11+0900\n"
5
"PO-Revision-Date: \n"
6
"Last-Translator: Kurudrive <kurudrive@gmail.com>\n"
7
"Language-Team: Vektor translate Team <info@vektor-inc.co.jp>\n"
@@ -9,7 +9,7 @@ msgstr ""
9
"MIME-Version: 1.0\n"
10
"Content-Type: text/plain; charset=UTF-8\n"
11
"Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 2.0.2\n"
13
"X-Poedit-Basepath: ..\n"
14
"X-Poedit-SourceCharset: UTF-8\n"
15
"X-Poedit-KeywordsList: __;_e;_x;_ex;_ex:1,2c;_x:1,2c;_n:1,2;esc_attr__\n"
@@ -151,6 +151,15 @@ msgstr ""
151
"ブラウザでページを表示した際にタブやウィンドウのタイトルに表示されるアイコン"
152
"(ファビコン)を設定します。"
153
154
#: packages.php:102
155
msgid "Rewrite the title tag"
156
msgstr "タイトルタグの書き換え"
@@ -464,13 +473,13 @@ msgid "CTA Contents"
464
msgstr "CTA Contents"
465
466
#: plugins/call_to_action/class.call_to_action.php:90
467
- #: plugins/call_to_action/class.call_to_action.php:508
468
#: plugins/call_to_action/widget.call_to_action.php:65
469
msgid "Random"
470
msgstr "ランダム表示"
471
472
#: plugins/call_to_action/class.call_to_action.php:91
473
- #: plugins/call_to_action/class.call_to_action.php:510
474
msgid "Disable display"
475
msgstr "表示しない"
476
@@ -832,15 +841,26 @@ msgstr "両タイプのコードを出力します。"
832
msgid "icon setting"
833
msgstr "アイコン設定"
834
835
- #: plugins/icons.php:73
836
msgid "Favicon Setting"
837
msgstr "ファビコン設定"
838
839
- #: plugins/icons.php:75
840
msgid "Choose icon"
841
msgstr "アイコンを選択"
842
843
- #: plugins/icons.php:76
844
msgid "Please upload your \".ico\" file"
845
msgstr "作成したicoファイルをアップロードしてください"
846
@@ -1553,7 +1573,7 @@ msgstr "階層"
1553
msgid "Make it a tag (do not hierarchize)"
1554
msgstr "タグにする(階層化しない)"
1555
1556
- #: plugins/post-type-manager/class.post-type-manager.php:202
1557
#, php-format
1558
msgid ""
1559
"Please save a <a href=\"%s\">permanent link configuration</a> After updating "
@@ -1625,7 +1645,7 @@ msgstr ""
1625
msgid "SNS"
1626
msgstr "SNS"
1627
1628
- #: plugins/sns/sns.php:97
1629
msgctxt "facebook language code"
1630
msgid "en_US"
1631
msgstr "ja_JP"
@@ -1757,6 +1777,36 @@ msgstr "Follow me ユニットを本文の下に表示する"
1757
msgid "Follow me box title"
1758
msgstr "Follow me box の見出しテキスト"
1759
1760
#: plugins/wp_title.php:47
1761
#, php-format
1762
msgid "Search Results for : %s"
@@ -1897,6 +1947,30 @@ msgstr "プラグイン設定オプション"
1897
msgid "Delete myOptions when deactivate me."
1898
msgstr "プラグインを無効化する際にDBに保存したオプション項目を削除します。"
1899
1900
#~ msgid "Current PHP Version is old."
1901
#~ msgstr "使用中のPHPのバージョンが古いです。"
1902
1
msgid ""
2
msgstr ""
3
"Project-Id-Version: \n"
4
+ "POT-Creation-Date: 2017-09-29 15:24+0900\n"
5
"PO-Revision-Date: \n"
6
"Last-Translator: Kurudrive <kurudrive@gmail.com>\n"
7
"Language-Team: Vektor translate Team <info@vektor-inc.co.jp>\n"
9
"MIME-Version: 1.0\n"
10
"Content-Type: text/plain; charset=UTF-8\n"
11
"Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 2.0.3\n"
13
"X-Poedit-Basepath: ..\n"
14
"X-Poedit-SourceCharset: UTF-8\n"
15
"X-Poedit-KeywordsList: __;_e;_x;_ex;_ex:1,2c;_x:1,2c;_n:1,2;esc_attr__\n"
151
"ブラウザでページを表示した際にタブやウィンドウのタイトルに表示されるアイコン"
152
"(ファビコン)を設定します。"
153
154
+ #: packages.php:92
155
+ msgid ""
156
+ "This feature will be discontinued shortly.<br>You can set the site icon from "
157
+ "\"Site Identity\" panel of \"Themes > Customize\"."
158
+ msgstr ""
159
+ "この機能は間もなく廃止されます。<br>\n"
160
+ "サイトアイコンは「外観 > カスタマイズ」の「サイト基本情報」パネルから設定でき"
161
+ "ます。"
162
+
163
#: packages.php:102
164
msgid "Rewrite the title tag"
165
msgstr "タイトルタグの書き換え"
473
msgstr "CTA Contents"
474
475
#: plugins/call_to_action/class.call_to_action.php:90
476
+ #: plugins/call_to_action/class.call_to_action.php:510
477
#: plugins/call_to_action/widget.call_to_action.php:65
478
msgid "Random"
479
msgstr "ランダム表示"
480
481
#: plugins/call_to_action/class.call_to_action.php:91
482
+ #: plugins/call_to_action/class.call_to_action.php:512
483
msgid "Disable display"
484
msgstr "表示しない"
485
841
msgid "icon setting"
842
msgstr "アイコン設定"
843
844
+ #: plugins/icons.php:74
845
+ #, php-format
846
+ msgid ""
847
+ "This feature will be discontinued shortly.<br>You can set the site icon from "
848
+ "\"Site Identity\" panel of [ <a href=%s>Themes > Customize</a> ] After "
849
+ "updating the setting."
850
+ msgstr ""
851
+ "この機能は間もなく廃止されます。<br>\n"
852
+ "サイトアイコンは「<a href=%s>外観 > カスタマイズ</a>」の「サイト基本情報」パ"
853
+ "ネルから設定できます。"
854
+
855
+ #: plugins/icons.php:81
856
msgid "Favicon Setting"
857
msgstr "ファビコン設定"
858
859
+ #: plugins/icons.php:83
860
msgid "Choose icon"
861
msgstr "アイコンを選択"
862
863
+ #: plugins/icons.php:84
864
msgid "Please upload your \".ico\" file"
865
msgstr "作成したicoファイルをアップロードしてください"
866
1573
msgid "Make it a tag (do not hierarchize)"
1574
msgstr "タグにする(階層化しない)"
1575
1576
+ #: plugins/post-type-manager/class.post-type-manager.php:200
1577
#, php-format
1578
msgid ""
1579
"Please save a <a href=\"%s\">permanent link configuration</a> After updating "
1645
msgid "SNS"
1646
msgstr "SNS"
1647
1648
+ #: plugins/sns/sns.php:107
1649
msgctxt "facebook language code"
1650
msgid "en_US"
1651
msgstr "ja_JP"
1777
msgid "Follow me box title"
1778
msgstr "Follow me box の見出しテキスト"
1779
1780
+ #: plugins/sns/sns_admin.php:108
1781
+ #, fuzzy
1782
+ #| msgid "Label to display"
1783
+ msgid "Share button for display"
1784
+ msgstr "表示するラベル"
1785
+
1786
+ #: plugins/sns/sns_admin.php:111
1787
+ #, fuzzy
1788
+ #| msgid "Facebook URL:"
1789
+ msgid "Facebook"
1790
+ msgstr "Facebook リンク先ページのURL"
1791
+
1792
+ #: plugins/sns/sns_admin.php:112
1793
+ #, fuzzy
1794
+ #| msgid "Twitter URL:"
1795
+ msgid "Twitter"
1796
+ msgstr "twitterリンク先ページのURL"
1797
+
1798
+ #: plugins/sns/sns_admin.php:113
1799
+ msgid "HatenaBlog"
1800
+ msgstr ""
1801
+
1802
+ #: plugins/sns/sns_admin.php:114
1803
+ msgid "Pocket"
1804
+ msgstr ""
1805
+
1806
+ #: plugins/sns/sns_admin.php:115
1807
+ msgid "Line (mobile only)"
1808
+ msgstr ""
1809
+
1810
#: plugins/wp_title.php:47
1811
#, php-format
1812
msgid "Search Results for : %s"
1947
msgid "Delete myOptions when deactivate me."
1948
msgstr "プラグインを無効化する際にDBに保存したオプション項目を削除します。"
1949
1950
+ #~ msgid ""
1951
+ #~ "This feature will be discontinued shortly.<br>You can set the site icon "
1952
+ #~ "from \"Site Identity\" panel of [ <a href=\""
1953
+ #~ msgstr ""
1954
+ #~ "この機能は間もなく廃止されます。<br>\n"
1955
+ #~ "サイトアイコンは「外観 > カスタマイズ」の「サイト基本情報」パネルから設定"
1956
+ #~ "できます。"
1957
+
1958
+ #, fuzzy
1959
+ #~| msgid ""
1960
+ #~| "About favicon.<br>This feature will be discontinued shortly.You can set "
1961
+ #~| "the site icon from \"Site Identity\" panel of \"Themes > Customize\"."
1962
+ #~ msgid ""
1963
+ #~ "About favicon.<br><p class=\"text-warning\">* * * * * * * * * * * * * * * "
1964
+ #~ "* * * * * * * * * <br>This feature will be discontinued shortly.<br>You "
1965
+ #~ "can set the site icon from \"Site Identity\" panel of \"Themes > Customize"
1966
+ #~ "\".<br>* * * * * * * * * * * * * * * * * * * * * * * * </p>"
1967
+ #~ msgstr ""
1968
+ #~ "ブラウザでページを表示した際にタブやウィンドウのタイトルに表示されるアイコ"
1969
+ #~ "ン(ファビコン)を設定します。<br>\n"
1970
+ #~ "この機能は間もなく廃止されます。<br>\n"
1971
+ #~ "サイトアイコンは「外観 > カスタマイズ」の「サイト基本情報」パネルから設定"
1972
+ #~ "できます。"
1973
+
1974
#~ msgid "Current PHP Version is old."
1975
#~ msgstr "使用中のPHPのバージョンが古いです。"
1976
packages.php CHANGED
@@ -89,7 +89,7 @@ $required_packages[] = array(
89
$required_packages[] = array(
90
'name' => 'icon',
91
'title' => __( 'Favicon setting', 'vkExUnit' ),
92
- 'description' => __( 'About favicon.', 'vkExUnit' ),
93
'default' => true,
94
'include' => 'icons.php',
95
);
@@ -104,7 +104,7 @@ $required_packages[] = array(
104
'attr' => array(
105
array(
106
'name' => __( 'Setting','vkExUnit' ),
107
- 'url' => admin_url().'admin.php?page=vkExUnit_main_setting#vkExUnit_wp_title',
108
'enable_only' => 1,
109
),
110
),
@@ -419,4 +419,4 @@ $required_packages[] = array(
419
420
foreach ( $required_packages as $package ) {
421
vkExUnit_package_register( $package );
422
- }
89
$required_packages[] = array(
90
'name' => 'icon',
91
'title' => __( 'Favicon setting', 'vkExUnit' ),
92
+ 'description' => __( 'About favicon.', 'vkExUnit') .'<br><br>* * * * * * * * * * * * * * * * * * * * * * * * <br>'.__( 'This feature will be discontinued shortly.<br>You can set the site icon from "Site Identity" panel of "Themes > Customize".', 'vkExUnit' ).'<br>* * * * * * * * * * * * * * * * * * * * * * * * ',
93
'default' => true,
94
'include' => 'icons.php',
95
);
104
'attr' => array(
105
array(
106
'name' => __( 'Setting','vkExUnit' ),
107
+ 'url' => admin_url('admin.php?page=vkExUnit_main_setting#vkExUnit_wp_title'),
108
'enable_only' => 1,
109
),
110
),
419
420
foreach ( $required_packages as $package ) {
421
vkExUnit_package_register( $package );
422
+ }
plugins/call_to_action/class.call_to_action.php CHANGED
@@ -353,7 +353,9 @@ if ( $target_blank == "window_self") {
353
'orderby' => 'rand', // 表示順をランダムで取得
354
);
355
$cta_post = get_posts( $args );
356
- return $cta_post[0]->ID;
357
}
358
359
public static function is_cta_id( $id = null )
353
'orderby' => 'rand', // 表示順をランダムで取得
354
);
355
$cta_post = get_posts( $args );
356
+ if ( $cta_post && isset ( $cta_post[0] ) ) {
357
+ return $cta_post[0]->ID;
358
+ }
359
}
360
361
public static function is_cta_id( $id = null )
plugins/icons.php CHANGED
@@ -66,12 +66,20 @@ class vExUnit_icons {
66
$options = self::get_option();
67
?>
68
<h3><?php _e( 'icon setting', 'vkExUnit' ); ?></h3>
69
<div id="on_setting" class="sectionBox">
70
<table class="form-table">
71
<!-- Favicon -->
72
<tr>
73
<th><?php _e( 'Favicon Setting', 'vkExUnit' ); ?></th>
74
- <td><input type="text" name="vkExUnit_icon_settings" id="favicon" value="<?php echo $options ?>" style="width:60%;" />
75
<button id="media_src_favicon" class="media_btn button button-default"><?php _e( 'Choose icon', 'vkExUnit' ); ?></button>
76
<p><?php _e( 'Please upload your ".ico" file','vkExUnit' ); ?></p>
77
</td>
@@ -91,4 +99,21 @@ class vExUnit_icons {
91
}
92
}
93
94
vExUnit_icons::instance();
66
$options = self::get_option();
67
?>
68
<h3><?php _e( 'icon setting', 'vkExUnit' ); ?></h3>
69
+
70
<div id="on_setting" class="sectionBox">
71
+ <p class="text-warning">
72
+ <?php
73
+ $href = '"'.admin_url('customize.php').'"';
74
+ printf( __( 'This feature will be discontinued shortly.<br>You can set the site icon from "Site Identity" panel of [ <a href=%s>Themes > Customize</a> ] After updating the setting.', 'vkExUnit' ), $href );
75
+ ?>
76
+ </p>
77
+
78
<table class="form-table">
79
<!-- Favicon -->
80
<tr>
81
<th><?php _e( 'Favicon Setting', 'vkExUnit' ); ?></th>
82
+ <td><input type="text" name="vkExUnit_icon_settings" id="favicon" value="<?php echo $options ?>" style="width:60%;" />
83
<button id="media_src_favicon" class="media_btn button button-default"><?php _e( 'Choose icon', 'vkExUnit' ); ?></button>
84
<p><?php _e( 'Please upload your ".ico" file','vkExUnit' ); ?></p>
85
</td>
99
}
100
}
101
102
+ function vkExUnit_icons_discontinue() {
103
+ global $pagenow;
104
+ if ( $pagenow != 'icons.php' ) {
105
+ return;
106
+ }
107
+
108
+ $html = '<div class="error notice is-dismissible">';
109
+ $html .= ' <p>「抜粋」は必ず入力してください!</p>';
110
+ $html .= ' <button type="button" class="notice-dismiss">';
111
+ $html .= ' <span class="screen-reader-text">この通知を非表示にする</span>';
112
+ $html .= ' </button>';
113
+ $html .= '</div>';
114
+
115
+ echo $html;
116
+ }
117
+ add_action( 'admin_notices', 'vkExUnit_icons_discontinue' );
118
+
119
vExUnit_icons::instance();
plugins/sns/function_snsBtns.php CHANGED
@@ -42,6 +42,8 @@ function vkExUnit_add_snsBtns( $content ) {
42
if ( $is_pagewidget ) { return $content; }
43
if ( is_archive() ) { return $content; }
44
45
$linkUrl = get_permalink();
46
47
$pageTitle = '';
@@ -55,19 +57,24 @@ function vkExUnit_add_snsBtns( $content ) {
55
if ( vkExUnit_is_snsBtns_display() ) {
56
$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>';
57
// facebook
58
- $socialSet .= '<li class="sb_facebook sb_icon"><a href="//www.facebook.com/sharer.php?src=bm&u='.$linkUrl.'&amp;t='.$pageTitle.'" target="_blank" onclick="window.open(this.href,\'FBwindow\',\'width=650,height=450,menubar=no,toolbar=no,scrollbars=yes\');return false;"><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>';
59
// twitter
60
- $socialSet .= '<li class="sb_twitter sb_icon"><a href="//twitter.com/intent/tweet?url='.$linkUrl.'&amp;text='.$pageTitle.'" target="_blank" onclick="window.open(this.href,\'Twitterwindow\',\'width=650,height=450,menubar=no,toolbar=no,scrollbars=yes\');return false;" ><span class="vk_icon_w_r_sns_twitter icon_sns"></span><span class="sns_txt">twitter</span></a></li>';
61
// hatena
62
- $socialSet .= '<li class="sb_hatena sb_icon"><a href="//b.hatena.ne.jp/add?mode=confirm&url='.$linkUrl.'&amp;title='.$pageTitle.'" target="_blank" onclick="window.open(this.href,\'Hatenawindow\',\'width=650,height=450,menubar=no,toolbar=no,scrollbars=yes\');return false;"><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>';
63
// line
64
- if ( wp_is_mobile() ) :
65
$socialSet .= '<li class="sb_line sb_icon">
66
<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>';
67
endif;
68
// pocket
69
70
- $socialSet .= '<li class="sb_pocket sb_icon"><a href="//getpocket.com/edit?url='. $linkUrl .'&title=' . $pageTitle . '" target="_blank" onclick="window.open(this.href,\'Pokcetwindow\',\'width=650,height=450,menubar=no,toolbar=no,scrollbars=yes\');return false;"><i class="fa fa-get-pocket" aria-hidden="true"></i><span class="sns_txt">Pocket</span><span class="veu_count_sns_pocket"></span></a></li>';
71
72
73
$socialSet .= '</ul></div><!-- [ /.socialSet ] -->';
42
if ( $is_pagewidget ) { return $content; }
43
if ( is_archive() ) { return $content; }
44
45
+ $options = vkExUnit_get_sns_options();
46
+
47
$linkUrl = get_permalink();
48
49
$pageTitle = '';
57
if ( vkExUnit_is_snsBtns_display() ) {
58
$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>';
59
// facebook
60
+ if ($options['useFacebook'])
61
+ $socialSet .= '<li class="sb_facebook sb_icon"><a href="//www.facebook.com/sharer.php?src=bm&u='.$linkUrl.'&amp;t='.$pageTitle.'" target="_blank" onclick="window.open(this.href,\'FBwindow\',\'width=650,height=450,menubar=no,toolbar=no,scrollbars=yes\');return false;"><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>';
62
// twitter
63
+ if ($options['useTwitter'])
64
+ $socialSet .= '<li class="sb_twitter sb_icon"><a href="//twitter.com/intent/tweet?url='.$linkUrl.'&amp;text='.$pageTitle.'" target="_blank" onclick="window.open(this.href,\'Twitterwindow\',\'width=650,height=450,menubar=no,toolbar=no,scrollbars=yes\');return false;" ><span class="vk_icon_w_r_sns_twitter icon_sns"></span><span class="sns_txt">twitter</span></a></li>';
65
+
66
+ if ($options['useHatena'])
67
// hatena
68
+ $socialSet .= '<li class="sb_hatena sb_icon"><a href="//b.hatena.ne.jp/add?mode=confirm&url='.$linkUrl.'&amp;title='.$pageTitle.'" target="_blank" onclick="window.open(this.href,\'Hatenawindow\',\'width=650,height=450,menubar=no,toolbar=no,scrollbars=yes\');return false;"><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>';
69
// line
70
+ if ( wp_is_mobile() && $options['useLine'] ) :
71
$socialSet .= '<li class="sb_line sb_icon">
72
<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>';
73
endif;
74
// pocket
75
76
+ if ($options['usePocket'])
77
+ $socialSet .= '<li class="sb_pocket sb_icon"><a href="//getpocket.com/edit?url='. $linkUrl .'&title=' . $pageTitle . '" target="_blank" onclick="window.open(this.href,\'Pokcetwindow\',\'width=650,height=450,menubar=no,toolbar=no,scrollbars=yes\');return false;"><i class="fa fa-get-pocket" aria-hidden="true"></i><span class="sns_txt">Pocket</span><span class="veu_count_sns_pocket"></span></a></li>';
78
79
80
$socialSet .= '</ul></div><!-- [ /.socialSet ] -->';
plugins/sns/sns.php CHANGED
@@ -44,6 +44,11 @@ function vkExUnit_get_sns_options_default() {
44
'snsBtn_ignorePosts' => '',
45
'enableFollowMe' => true,
46
'followMe_title' => 'Follow me!',
47
);
48
return apply_filters( 'vkExUnit_sns_options_default', $default_options );
49
}
@@ -66,6 +71,11 @@ function vkExUnit_sns_options_validate( $input ) {
66
$output['snsBtn_exclude_post_types'] = ( isset( $input['snsBtn_exclude_post_types'] ) ) ? $input['snsBtn_exclude_post_types'] : '';
67
$output['enableFollowMe'] = ( isset( $input['enableFollowMe'] ) && isset( $input['enableFollowMe'] ) == 'true' )? true: false;
68
$output['followMe_title'] = $input['followMe_title'];
69
70
return apply_filters( 'vkExUnit_sns_options_validate', $output, $input, $defaults );
71
}
44
'snsBtn_ignorePosts' => '',
45
'enableFollowMe' => true,
46
'followMe_title' => 'Follow me!',
47
+ 'useFacebook' => true,
48
+ 'useTwitter' => true,
49
+ 'useHatena' => true,
50
+ 'usePocket' => true,
51
+ 'useLine' => true,
52
);
53
return apply_filters( 'vkExUnit_sns_options_default', $default_options );
54
}
71
$output['snsBtn_exclude_post_types'] = ( isset( $input['snsBtn_exclude_post_types'] ) ) ? $input['snsBtn_exclude_post_types'] : '';
72
$output['enableFollowMe'] = ( isset( $input['enableFollowMe'] ) && isset( $input['enableFollowMe'] ) == 'true' )? true: false;
73
$output['followMe_title'] = $input['followMe_title'];
74
+ $output['useFacebook'] = ( isset( $input['useFacebook'] ) && $input['useFacebook'] == 'true' );
75
+ $output['useTwitter'] = ( isset( $input['useTwitter'] ) && $input['useTwitter'] == 'true' );
76
+ $output['useHatena'] = ( isset( $input['useHatena'] ) && $input['useHatena'] == 'true' );
77
+ $output['usePocket'] = ( isset( $input['usePocket'] ) && $input['usePocket'] == 'true' );
78
+ $output['useLine'] = ( isset( $input['useLine'] ) && $input['useLine'] == 'true' );
79
80
return apply_filters( 'vkExUnit_sns_options_validate', $output, $input, $defaults );
81
}
plugins/sns/sns_admin.php CHANGED
@@ -104,6 +104,20 @@ _e( 'example', 'vkExUnit'); ?>
104
</td>
105
</tr>
106
107
</table>
108
109
<?php submit_button(); ?>
104
</td>
105
</tr>
106
107
+ <tr>
108
+ <th><label><?php _e('Share button for display', 'vkExUnit'); ?></label></th>
109
+ <td><label></label>
110
+ <ul>
111
+ <li><label><input type="checkbox" name="vkExUnit_sns_options[useFacebook]" value="true" <?php if($options['useFacebook']) echo 'checked' ?> /> <?php _e('Facebook', 'vkExUnit'); ?></label></li>
112
+ <li><label><input type="checkbox" name="vkExUnit_sns_options[useTwitter]" value="true" <?php if($options['useTwitter']) echo 'checked' ?> /> <?php _e('Twitter', 'vkExUnit'); ?></label></li>
113
+ <li><label><input type="checkbox" name="vkExUnit_sns_options[useHatena]" value="true" <?php if($options['useHatena']) echo 'checked' ?> /> <?php _e('HatenaBlog', 'vkExUnit'); ?></label></li>
114
+ <li><label><input type="checkbox" name="vkExUnit_sns_options[usePocket]" value="true" <?php if($options['usePocket']) echo 'checked' ?> /> <?php _e('Pocket', 'vkExUnit'); ?></label></li>
115
+ <li><label><input type="checkbox" name="vkExUnit_sns_options[useLine]" value="true" <?php if($options['useLine']) echo 'checked' ?> /> <?php _e('Line (mobile only)', 'vkExUnit'); ?></label></li>
116
+ </ul>
117
+ </td>
118
+ </tr>
119
+
120
+
121
</table>
122
123
<?php submit_button(); ?>
plugins_admin/vk-admin/_scss/vk_admin.scss CHANGED
@@ -4,6 +4,8 @@
4
.text-left { text-align: left; }
5
.text-center { text-align: center; }
6
.text-right { text-align: right; }
7
8
.wp-core-ui .button-block { display:block;width:100%; text-align: center; }
9
@@ -58,7 +60,7 @@
58
img{ max-width: 100%;height: auto; display: block;
59
&:hover{ opacity: 0.7; }
60
}
61
- .vektor_logo {
62
margin-top:1em;
63
img { width:150px;float:right;}
64
}
4
.text-left { text-align: left; }
5
.text-center { text-align: center; }
6
.text-right { text-align: right; }
7
+ .text-warning { color: #a94442;}
8
+
9
10
.wp-core-ui .button-block { display:block;width:100%; text-align: center; }
11
60
img{ max-width: 100%;height: auto; display: block;
61
&:hover{ opacity: 0.7; }
62
}
63
+ .vektor_logo {
64
margin-top:1em;
65
img { width:150px;float:right;}
66
}
plugins_admin/vk-admin/class.vk-admin.php CHANGED
@@ -12,7 +12,7 @@ https://github.com/vektor-inc/vektor-wp-libraries
12
class Vk_Admin {
13
14
public static $version = '1.2.1';
15
-
16
static function init(){
17
add_action( 'admin_enqueue_scripts', array( __CLASS__, 'admin_common_css' ) );
18
}
@@ -48,7 +48,7 @@ class Vk_Admin {
48
$lang = ( get_locale() == 'ja' ) ? 'ja' : 'en' ;
49
50
if ( !is_plugin_active('vk-post-author-display/post-author-display.php') ){
51
- $banner .= '<a href="//wordpress.org/plugins/vk-post-author-display/" target="_blank" class="admin_banner"><img src="'.$dir_url.'images/post_author_display_bnr_'.$lang .'.jpg" alt="VK Post Author
52
Display" /></a>';
53
}
54
@@ -174,7 +174,7 @@ class Vk_Admin {
174
<?php echo Vk_Admin::admin_sub();?>
175
176
</div><!-- [ /.vkExUnit_admin_page ] -->
177
- <?php
178
}
179
180
public function __construct(){
@@ -183,4 +183,4 @@ class Vk_Admin {
183
}
184
185
Vk_Admin::init();
186
- $Vk_Admin = new Vk_Admin();
12
class Vk_Admin {
13
14
public static $version = '1.2.1';
15
+
16
static function init(){
17
add_action( 'admin_enqueue_scripts', array( __CLASS__, 'admin_common_css' ) );
18
}
48
$lang = ( get_locale() == 'ja' ) ? 'ja' : 'en' ;
49
50
if ( !is_plugin_active('vk-post-author-display/post-author-display.php') ){
51
+ $banner .= '<a href="//wordpress.org/plugins/vk-post-author-display/" target="_blank" class="admin_banner"><img src="'.$dir_url.'images/post_author_display_bnr_'.$lang .'.jpg" alt="VK Post Author
52
Display" /></a>';
53
}
54
174
<?php echo Vk_Admin::admin_sub();?>
175
176
</div><!-- [ /.vkExUnit_admin_page ] -->
177
+ <?php
178
}
179
180
public function __construct(){
183
}
184
185
Vk_Admin::init();
186
+ $Vk_Admin = new Vk_Admin();
plugins_admin/vk-admin/css/vk_admin.css CHANGED
@@ -1 +1 @@
1
- .text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.wp-core-ui .button-block{display:block;width:100%;text-align:center}.logo_exUnit{display:block;overflow:hidden;text-align:center;margin-bottom:10px;border-bottom:1px solid #ccc}.logo_exUnit img{width:150px;max-width:100%}.vk_option_nav{display:block !important;overflow:hidden}.vk_option_nav ul{display:block;overflow:hidden;margin:0;padding:0}.vk_option_nav ul li{display:block;border:1px solid #ccc;margin-bottom:0;border-bottom:none;background-color:#fff}.vk_option_nav ul li:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.vk_option_nav ul li:last-child{border-bottom-left-radius:3px;border-bottom-right-radius:3px;border-bottom:1px solid #ccc}.vk_option_nav ul li:hover{background-color:#666}.vk_option_nav ul li a{display:block;overflow:hidden;padding:0.5em;text-decoration:none;color:#666;font-size:12px}.vk_option_nav ul li:hover a{color:#fff;border:none}.vk_option_nav ul li.current{background-color:#333;color:#fff}.vk_option_nav ul li.current a{color:#fff}.vk_admin_page{padding-top:1em}.vk_admin_page h2.page_title{font-size:16px;text-align:center;line-height:140%;margin:10px 0 20px}.vk_admin_page h3{background-color:#333;color:#fff;padding:10px 15px;font-size:150%;margin-top:0;border-left:5px solid #e50000}.vk_admin_page input[type=text]{width:50%}.vk_admin_page select{width:50%}.vk_admin_page dl dt{font-weight:bold;margin-bottom:5px}.vk_admin_page dl dd{margin-left:0}.vk_admin_page tr.dev_object{display:none}.vk_admin_page .pageLogo{text-align:center}.vk_admin_page .pageLogo img{max-width:150px;margin:0 auto}.vk_admin_page .adminMain{display:block;overflow:hidden;width:74%;float:left}.vk_admin_page .adminMain #adminContent_sub{display:block;overflow:hidden;width:23%;float:left;padding-bottom:10px}.vk_admin_page .adminMain #adminContent_main{display:block;overflow:hidden;width:74%;float:right}.vk_admin_page .adminMain #adminContent_main .form_horizontal_item{margin-right:1em}.vk_admin_page .adminMain.column_2 #adminContent_main{width:100%}.vk_admin_page .adminSub{display:block;overflow:hidden;width:24%;float:right;padding-bottom:10px}.vk_admin_page .adminSub .infoBox{display:block;overflow:hidden;padding:1em;margin-right:1em;background-color:#fff}.vk_admin_page .adminSub .adminBnr_section{display:block;overflow:hidden;margin-right:1em;margin-top:1em}.vk_admin_page .adminSub .adminBnr_section a{display:block}.vk_admin_page .adminSub .adminBnr_section a.admin_banner{margin-bottom:1em;border:1px solid #ccc;box-shadow:inset 0px 0px 0px 1px #fff}.vk_admin_page .adminSub .adminBnr_section img{max-width:100%;height:auto;display:block}.vk_admin_page .adminSub .adminBnr_section img:hover{opacity:0.7}.vk_admin_page .adminSub .adminBnr_section .vektor_logo{margin-top:1em}.vk_admin_page .adminSub .adminBnr_section .vektor_logo img{width:150px;float:right}.vk_admin_page .adminSub .adminSub_title{background-color:#ccc;width:auto;padding:5px 10px;border-radius:3px;margin-top:0;margin-bottom:15px}@media (max-width: 991px){.vk_admin_page .adminSub .adminMain table.form-table th,.vk_admin_page .adminSub .adminMain table.form-table td{display:block}.vk_admin_page .adminSub .adminMain table.form-table th{background-color:#ccc;width:auto;padding:10px;border-radius:3px}}
1
+ .text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-warning{color:#a94442}.wp-core-ui .button-block{display:block;width:100%;text-align:center}.logo_exUnit{display:block;overflow:hidden;text-align:center;margin-bottom:10px;border-bottom:1px solid #ccc}.logo_exUnit img{width:150px;max-width:100%}.vk_option_nav{display:block !important;overflow:hidden}.vk_option_nav ul{display:block;overflow:hidden;margin:0;padding:0}.vk_option_nav ul li{display:block;border:1px solid #ccc;margin-bottom:0;border-bottom:none;background-color:#fff}.vk_option_nav ul li:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.vk_option_nav ul li:last-child{border-bottom-left-radius:3px;border-bottom-right-radius:3px;border-bottom:1px solid #ccc}.vk_option_nav ul li:hover{background-color:#666}.vk_option_nav ul li a{display:block;overflow:hidden;padding:0.5em;text-decoration:none;color:#666;font-size:12px}.vk_option_nav ul li:hover a{color:#fff;border:none}.vk_option_nav ul li.current{background-color:#333;color:#fff}.vk_option_nav ul li.current a{color:#fff}.vk_admin_page{padding-top:1em}.vk_admin_page h2.page_title{font-size:16px;text-align:center;line-height:140%;margin:10px 0 20px}.vk_admin_page h3{background-color:#333;color:#fff;padding:10px 15px;font-size:150%;margin-top:0;border-left:5px solid #e50000}.vk_admin_page input[type=text]{width:50%}.vk_admin_page select{width:50%}.vk_admin_page dl dt{font-weight:bold;margin-bottom:5px}.vk_admin_page dl dd{margin-left:0}.vk_admin_page tr.dev_object{display:none}.vk_admin_page .pageLogo{text-align:center}.vk_admin_page .pageLogo img{max-width:150px;margin:0 auto}.vk_admin_page .adminMain{display:block;overflow:hidden;width:74%;float:left}.vk_admin_page .adminMain #adminContent_sub{display:block;overflow:hidden;width:23%;float:left;padding-bottom:10px}.vk_admin_page .adminMain #adminContent_main{display:block;overflow:hidden;width:74%;float:right}.vk_admin_page .adminMain #adminContent_main .form_horizontal_item{margin-right:1em}.vk_admin_page .adminMain.column_2 #adminContent_main{width:100%}.vk_admin_page .adminSub{display:block;overflow:hidden;width:24%;float:right;padding-bottom:10px}.vk_admin_page .adminSub .infoBox{display:block;overflow:hidden;padding:1em;margin-right:1em;background-color:#fff}.vk_admin_page .adminSub .adminBnr_section{display:block;overflow:hidden;margin-right:1em;margin-top:1em}.vk_admin_page .adminSub .adminBnr_section a{display:block}.vk_admin_page .adminSub .adminBnr_section a.admin_banner{margin-bottom:1em;border:1px solid #ccc;box-shadow:inset 0px 0px 0px 1px #fff}.vk_admin_page .adminSub .adminBnr_section img{max-width:100%;height:auto;display:block}.vk_admin_page .adminSub .adminBnr_section img:hover{opacity:0.7}.vk_admin_page .adminSub .adminBnr_section .vektor_logo{margin-top:1em}.vk_admin_page .adminSub .adminBnr_section .vektor_logo img{width:150px;float:right}.vk_admin_page .adminSub .adminSub_title{background-color:#ccc;width:auto;padding:5px 10px;border-radius:3px;margin-top:0;margin-bottom:15px}@media (max-width: 991px){.vk_admin_page .adminSub .adminMain table.form-table th,.vk_admin_page .adminSub .adminMain table.form-table td{display:block}.vk_admin_page .adminSub .adminMain table.form-table th{background-color:#ccc;width:auto;padding:10px;border-radius:3px}}
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: vektor-inc,kurudrive,nc30,SaoriMiyazaki,catherine8007
3
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.8.1
7
- Stable tag: 5.4.7
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
@@ -74,8 +74,11 @@ e.g.
74
75
== Changelog ==
76
77
= 5.4.6 =
78
- * [ CTA Widget ][ add function ] Random display
79
80
= 5.4.5 =
81
* [ 3PR Widget ][ add filter ] read more text
@@ -165,7 +168,7 @@ e.g.
165
166
= 4.1.0 =
167
* [ Add Function ][ Add Widget ] Child Page list
168
- * [ Other ][ SNS Button ] Redesign
169
170
= 4.0.0 =
171
3
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.8.2
7
+ Stable tag: 5.6.0
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
74
75
== Changelog ==
76
77
+ = 5.5.0 =
78
+ * [ Custom Post Type Manager ][ add Function ] Add taxonomy tag setting.
79
+
80
= 5.4.6 =
81
+ * [ CTA Widget ][ add function ] Random display
82
83
= 5.4.5 =
84
* [ 3PR Widget ][ add filter ] read more text
168
169
= 4.1.0 =
170
* [ Add Function ][ Add Widget ] Child Page list
171
+ * [ Other ][ SNS Button ] Redesign
172
173
= 4.0.0 =
174
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: 5.5.0
7
* Author: Vektor,Inc.
8
* Text Domain: vkExUnit
9
* Domain Path: /languages
@@ -70,11 +70,11 @@ function vkExUnit_phpversion_error($val){
70
if (!current_user_can('activate_plugins')) return $val;
71
?>
72
<div class="notice notice-error error is-dismissible"><p>
73
- <?php
74
/*
75
本来システム名は vkExUnit_get_little_short_name() で引っ張るが、PHPのバージョンが低くて vkExUnit_get_little_short_name() 関数が読み込まれていないので"VK ExUnit"直書き
76
*/
77
- printf( __("The current PHP version(%s) is too old, so VK ExUnit will not work.", 'vkExUnit'), phpversion()
78
); ?>
79
<?php _e("VK ExUnit supports PHP5.6 or later.", 'vkExUnit'); ?>
80
</p></div>
@@ -94,4 +94,3 @@ function vkExUnit_phpversion_warning_notice($val){
94
<?php
95
return $val;
96
}
97
-
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: 5.6.0
7
* Author: Vektor,Inc.
8
* Text Domain: vkExUnit
9
* Domain Path: /languages
70
if (!current_user_can('activate_plugins')) return $val;
71
?>
72
<div class="notice notice-error error is-dismissible"><p>
73
+ <?php
74
/*
75
本来システム名は vkExUnit_get_little_short_name() で引っ張るが、PHPのバージョンが低くて vkExUnit_get_little_short_name() 関数が読み込まれていないので"VK ExUnit"直書き
76
*/
77
+ printf( __("The current PHP version(%s) is too old, so VK ExUnit will not work.", 'vkExUnit'), phpversion()
78
); ?>
79
<?php _e("VK ExUnit supports PHP5.6 or later.", 'vkExUnit'); ?>
80
</p></div>
94
<?php
95
return $val;
96
}