VK All in One Expansion Unit - Version 6.0.1

Version Description

Download this release

Release Info

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

Code changes from version 6.0.0 to 6.0.1

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: 2018-03-13 09:15+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"
@@ -570,7 +570,7 @@ msgstr "選択してください"
570
msgid "Read more"
571
msgstr "詳しくはこちら"
572
573
- #: plugins/child_page_index.php:139 plugins/other_widget/widget-page.php:165
574
msgid "Display a child page index"
575
msgstr "子ページ一覧の表示"
576
@@ -792,7 +792,7 @@ msgstr "CSSカスタマイズ"
792
msgid "You can add custom CSS here."
793
msgstr "デザインをカスタマイズする場合は下のテキストエリアにCSSを入力します"
794
795
- #: plugins/css_customize/css_customize-edit.php:10
796
msgid "Save CSS"
797
msgstr "CSSを保存する"
798
@@ -1292,11 +1292,11 @@ msgstr "固定ページのタイトルを表示する"
1292
msgid "Do not display titles"
1293
msgstr "タイトルを表示しない"
1294
1295
- #: plugins/other_widget/widget-page.php:174 plugins/pageList_ancestor.php:96
1296
msgid "Display a page list from ancestor"
1297
msgstr "現在のページの先祖階層からの子ページリストを表示"
1298
1299
- #: plugins/other_widget/widget-page.php:242
1300
msgid "Edit"
1301
msgstr "編集"
1302
@@ -1833,7 +1833,7 @@ msgstr "表示するボタン"
1833
msgid "Facebook"
1834
msgstr ""
1835
1836
- #: plugins/sns/sns_admin.php:112
1837
msgid "Twitter"
1838
msgstr ""
1839
@@ -1869,10 +1869,6 @@ msgstr "カバー画像を表示しない"
1869
msgid "Show Page Posts"
1870
msgstr "タイムラインを表示"
1871
1872
- #: plugins/sns/widget-twitter.php:9
1873
- msgid "Twitter widget"
1874
- msgstr "Twitter ウィジェット"
1875
-
1876
#: plugins/sns/widget-twitter.php:13
1877
msgid "Display Twitter timeline."
1878
msgstr "Twitter のタイムラインを表示します。"
@@ -1891,7 +1887,7 @@ msgstr "高さ:<br>任意の数値を入力してください(例:300)"
1891
1892
#: plugins/sns/widget-twitter.php:99
1893
msgid "Background color:"
1894
- msgstr "アイコンの色:"
1895
1896
#: plugins/sns/widget-twitter.php:122
1897
msgid "Link color:"
@@ -2100,6 +2096,16 @@ msgstr "使用中のPHPのバージョン(%s) が古いです。"
2100
msgid "%s supports PHP5.6 or later."
2101
msgstr "%s がサポートしているPHPのバージョンは5.6以降です。"
2102
2103
#~ msgid "millisecond"
2104
#~ msgstr "ミリ秒"
2105
1
msgid ""
2
msgstr ""
3
"Project-Id-Version: \n"
4
+ "POT-Creation-Date: 2018-03-15 09:53+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"
570
msgid "Read more"
571
msgstr "詳しくはこちら"
572
573
+ #: plugins/child_page_index.php:139 plugins/other_widget/widget-page.php:166
574
msgid "Display a child page index"
575
msgstr "子ページ一覧の表示"
576
792
msgid "You can add custom CSS here."
793
msgstr "デザインをカスタマイズする場合は下のテキストエリアにCSSを入力します"
794
795
+ #: plugins/css_customize/css_customize-edit.php:17
796
msgid "Save CSS"
797
msgstr "CSSを保存する"
798
1292
msgid "Do not display titles"
1293
msgstr "タイトルを表示しない"
1294
1295
+ #: plugins/other_widget/widget-page.php:175 plugins/pageList_ancestor.php:96
1296
msgid "Display a page list from ancestor"
1297
msgstr "現在のページの先祖階層からの子ページリストを表示"
1298
1299
+ #: plugins/other_widget/widget-page.php:243
1300
msgid "Edit"
1301
msgstr "編集"
1302
1833
msgid "Facebook"
1834
msgstr ""
1835
1836
+ #: plugins/sns/sns_admin.php:112 plugins/sns/widget-twitter.php:9
1837
msgid "Twitter"
1838
msgstr ""
1839
1869
msgid "Show Page Posts"
1870
msgstr "タイムラインを表示"
1871
1872
#: plugins/sns/widget-twitter.php:13
1873
msgid "Display Twitter timeline."
1874
msgstr "Twitter のタイムラインを表示します。"
1887
1888
#: plugins/sns/widget-twitter.php:99
1889
msgid "Background color:"
1890
+ msgstr "背景の色:"
1891
1892
#: plugins/sns/widget-twitter.php:122
1893
msgid "Link color:"
2096
msgid "%s supports PHP5.6 or later."
2097
msgstr "%s がサポートしているPHPのバージョンは5.6以降です。"
2098
2099
+ #~ msgid ""
2100
+ #~ "For details on CSS customization, please refer to <a href=\"https://www."
2101
+ #~ "vektor-inc.co.jp/post/css_customize/\" target=\"_blank\">this page</a>."
2102
+ #~ msgstr ""
2103
+ #~ "CSSのカスタマイズについては、<a href=“https://www.vektor-inc.co.jp/post/"
2104
+ #~ "css_customize/“ target=“_blank”>こちらのページ</a>を参照してください。"
2105
+
2106
+ #~ msgid "Twitter widget"
2107
+ #~ msgstr "Twitter ウィジェット"
2108
+
2109
#~ msgid "millisecond"
2110
#~ msgstr "ミリ秒"
2111
plugins/css_customize/css_customize-edit.php CHANGED
@@ -3,6 +3,9 @@
3
<div class="fileedit-sub"></div>
4
<?php echo $data['mess']; ?>
5
<p><?php _e( 'You can add custom CSS here.', 'vkExUnit' );?></p>
6
<form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post" id="template">
7
<textarea name="bv-css-css" cols="70" rows="10" id="newcontent"><?php echo esc_attr($data['customCss']); ?></textarea>
8
<?php wp_nonce_field( 'biz-vektor-css-submit', 'biz-vektor-css-nonce'); ?>
@@ -11,4 +14,4 @@
11
</p>
12
</form>
13
14
- </div>
3
<div class="fileedit-sub"></div>
4
<?php echo $data['mess']; ?>
5
<p><?php _e( 'You can add custom CSS here.', 'vkExUnit' );?></p>
6
+ <?php if ( get_locale() == 'ja' ) { ?>
7
+ <p>CSSのカスタマイズについては、<a href="https://www.vektor-inc.co.jp/post/css_customize/" target="_blank">こちらのページ</a>を参照してください。</p>
8
+ <?php } ?>
9
<form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post" id="template">
10
<textarea name="bv-css-css" cols="70" rows="10" id="newcontent"><?php echo esc_attr($data['customCss']); ?></textarea>
11
<?php wp_nonce_field( 'biz-vektor-css-submit', 'biz-vektor-css-nonce'); ?>
14
</p>
15
</form>
16
17
+ </div>
plugins/css_customize/css_customize.php CHANGED
@@ -4,7 +4,7 @@ $wp_theme = wp_get_theme();
4
$customize = new biz_vektor_css_customize();
5
6
7
- class biz_vektor_css_customize{
8
9
public function __construct() {
10
$this->set_hook();
@@ -12,9 +12,9 @@ class biz_vektor_css_customize{
12
13
14
public function set_hook() {
15
- add_action( 'admin_footer', array( $this, 'css_customize_page_js_and_css' ) );
16
- add_action( 'wp_head', array( $this, 'biz_vektor_css_customize_push_css' ), 200 );
17
- add_action( 'admin_menu', array( $this, 'biz_vektor_css_customize_menu' ) );
18
add_action( 'vkExUnit_action_adminbar', array( $this, 'admin_bar' ) );
19
}
20
@@ -69,16 +69,16 @@ class biz_vektor_css_customize{
69
$hook_suffix == 'appearance_page_bv_grid_unit_options'
70
) {
71
?>
72
- <script type="text/javascript">
73
- jQuery(document).ready(function($){
74
- jQuery("#tipsBody dl").each(function(){
75
- var targetId = jQuery(this).attr("id");
76
- var targetTxt = jQuery(this).find("dt").text();
77
- var listItem = '<li><a href="#'+ targetId +'">'+ targetTxt +'</a></li>'
78
- jQuery('#tipsList ul').append(listItem);
79
- });
80
- });
81
- </script>
82
83
84
<?php
@@ -89,7 +89,7 @@ class biz_vektor_css_customize{
89
public function biz_vektor_css_customize_valid_form() {
90
91
$data = array(
92
- 'mess' => '',
93
'customCss' => '',
94
);
95
@@ -122,11 +122,16 @@ class biz_vektor_css_customize{
122
public function biz_vektor_css_customize_push_css() {
123
124
if ( get_option( 'vkExUnit_css_customize' ) ) {
125
?>
126
- <style type="text/css">
127
- <?php echo get_option( 'vkExUnit_css_customize' ) ?>
128
- </style>
129
- <?php
130
- }
131
- }
132
}
4
$customize = new biz_vektor_css_customize();
5
6
7
+ class biz_vektor_css_customize {
8
9
public function __construct() {
10
$this->set_hook();
12
13
14
public function set_hook() {
15
+ add_action( 'admin_footer', array( $this, 'css_customize_page_js_and_css' ) );
16
+ add_action( 'wp_head', array( $this, 'biz_vektor_css_customize_push_css' ), 200 );
17
+ add_action( 'admin_menu', array( $this, 'biz_vektor_css_customize_menu' ) );
18
add_action( 'vkExUnit_action_adminbar', array( $this, 'admin_bar' ) );
19
}
20
69
$hook_suffix == 'appearance_page_bv_grid_unit_options'
70
) {
71
?>
72
+ <script type="text/javascript">
73
+ jQuery(document).ready(function($){
74
+ jQuery("#tipsBody dl").each(function(){
75
+ var targetId = jQuery(this).attr("id");
76
+ var targetTxt = jQuery(this).find("dt").text();
77
+ var listItem = '<li><a href="#'+ targetId +'">'+ targetTxt +'</a></li>'
78
+ jQuery('#tipsList ul').append(listItem);
79
+ });
80
+ });
81
+ </script>
82
83
84
<?php
89
public function biz_vektor_css_customize_valid_form() {
90
91
$data = array(
92
+ 'mess' => '',
93
'customCss' => '',
94
);
95
122
public function biz_vektor_css_customize_push_css() {
123
124
if ( get_option( 'vkExUnit_css_customize' ) ) {
125
+ $css_customize = get_option( 'vkExUnit_css_customize' );
126
+ // delete br
127
+ $css_customize = str_replace( PHP_EOL, '', $css_customize );
128
+ // delete tab
129
+ $css_customize = preg_replace( '/[\n\r\t]/', '', $css_customize );
130
+ // multi space convert to single space
131
+ $css_customize = preg_replace( '/\s(?=\s)/', '', $css_customize );
132
?>
133
+ <style type="text/css">/* <?php echo vkExUnit_get_short_name(); ?> CSS Customize */<?php echo $css_customize; ?>/* End <?php echo vkExUnit_get_short_name(); ?> CSS Customize */</style>
134
+ <?php
135
+ } // if ( get_option( 'vkExUnit_css_customize' ) ) {
136
+ } // public function biz_vektor_css_customize_push_css() {
137
}
plugins/other_widget/widget-page.php CHANGED
@@ -149,6 +149,7 @@ class WP_Widget_vkExUnit_widget_page extends WP_Widget {
149
$args = array(
150
'name' => $this->get_field_name( 'page_id' ),
151
'selected' => $selected, // 該当する ID のページを「selected」にし、そのページが選択された状態にする
152
'sort_order' => 'ASC',
153
'post_status' => 'publish,private', // 公開と非公開の記事を取得
154
);
149
$args = array(
150
'name' => $this->get_field_name( 'page_id' ),
151
'selected' => $selected, // 該当する ID のページを「selected」にし、そのページが選択された状態にする
152
+ 'sort_column' => 'menu_order', // 固定ページの順序でソート
153
'sort_order' => 'ASC',
154
'post_status' => 'publish,private', // 公開と非公開の記事を取得
155
);
plugins/sns/widget-twitter.php CHANGED
@@ -6,7 +6,7 @@ class VK_Twitter_Widget extends WP_Widget {
6
* ウィジェット名などを設定
7
*/
8
public function __construct() {
9
- $widget_name = vkExUnit_get_short_name() . '_' . __( 'Twitter widget', 'vkExUnit' );
10
parent::__construct(
11
'vk_twitter_widget', // Base ID
12
$widget_name, // Name
6
* ウィジェット名などを設定
7
*/
8
public function __construct() {
9
+ $widget_name = vkExUnit_get_short_name() . '_' . __( 'Twitter', 'vkExUnit' );
10
parent::__construct(
11
'vk_twitter_widget', // Base ID
12
$widget_name, // Name
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.4
6
Tested up to: 4.9.2
7
- Stable tag: 6.0.0
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
4
Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Facebook Page Plugin, OG tags,
5
Requires at least: 4.4
6
Tested up to: 4.9.2
7
+ Stable tag: 6.0.1
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
vkExUnit.php CHANGED
@@ -3,7 +3,7 @@
3
* Plugin Name: VK All in One Expansion Unit
4
* Plugin URI: https://ex-unit.nagoya
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: 6.0.0
7
* Author: Vektor,Inc.
8
* Text Domain: vkExUnit
9
* Domain Path: /languages
3
* Plugin Name: VK All in One Expansion Unit
4
* Plugin URI: https://ex-unit.nagoya
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: 6.0.1
7
* Author: Vektor,Inc.
8
* Text Domain: vkExUnit
9
* Domain Path: /languages