VK All in One Expansion Unit - Version 5.7.8

Version Description

Download this release

Release Info

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

Code changes from version 5.7.7 to 5.7.8

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-10-29 23:01+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"
@@ -283,7 +283,7 @@ msgstr "広告の挿入"
283
  msgid "Insert ads to content."
284
  msgstr "記事に広告を挿入します"
285
 
286
- #: packages.php:343 plugins/related_posts/related_posts.php:96
287
  msgid "Related posts"
288
  msgstr "関連記事を表示"
289
 
@@ -534,7 +534,7 @@ msgstr "選択してください"
534
  msgid "Read more"
535
  msgstr "詳しくはこちら"
536
 
537
- #: plugins/child_page_index.php:133 plugins/other_widget/widget-page.php:90
538
  msgid "Display a child page index"
539
  msgstr "子ページ一覧の表示"
540
 
@@ -947,9 +947,10 @@ msgstr "3PR エリア設定"
947
 
948
  #: plugins/other_widget/widget-3pr-area.php:58
949
  #: plugins/other_widget/widget-new-posts.php:204
950
- #: plugins/other_widget/widget-page.php:39
951
  #: plugins/other_widget/widget-pr-blocks.php:89
952
  #: plugins/other_widget/widget-profile.php:48
 
953
  #: plugins/sns/function_fbPagePlugin.php:79
954
  msgid "Title:"
955
  msgstr "タイトル"
@@ -1199,28 +1200,28 @@ msgstr "固定ページ本文"
1199
  msgid "Displays a page contents to widget."
1200
  msgstr "選択したページの内容を表示します。"
1201
 
1202
- #: plugins/other_widget/widget-page.php:48
1203
  msgid "Display the entered title"
1204
  msgstr "入力したタイトルを表示する"
1205
 
1206
- #: plugins/other_widget/widget-page.php:52
1207
  msgid "Display the title of page"
1208
  msgstr "固定ページのタイトルを表示する"
1209
 
1210
- #: plugins/other_widget/widget-page.php:56
1211
  msgid "Do not display titles"
1212
  msgstr "タイトルを表示しない"
1213
 
1214
- #: plugins/other_widget/widget-page.php:70
1215
  #: plugins/other_widget/widget-taxonomies.php:74
1216
  msgid "Display page"
1217
  msgstr "ページを表示"
1218
 
1219
- #: plugins/other_widget/widget-page.php:102 plugins/pageList_ancestor.php:96
1220
  msgid "Display a page list from ancestor"
1221
  msgstr "現在のページの先祖階層からの子ページリストを表示"
1222
 
1223
- #: plugins/other_widget/widget-page.php:224
1224
  msgid "Edit"
1225
  msgstr "編集"
1226
 
@@ -1483,23 +1484,45 @@ msgstr "数字を入力してください。数字が小さいほど上に表示
1483
  msgid "Custom taxonomies(optional)"
1484
  msgstr "カスタム分類(任意)"
1485
 
1486
- #: plugins/post-type-manager/class.post-type-manager.php:134
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1487
  msgid "Custon taxonomy name(slug)"
1488
  msgstr "カスタム分類名(スラッグ)"
1489
 
1490
- #: plugins/post-type-manager/class.post-type-manager.php:138
 
 
 
 
1491
  msgid "Custon taxonomy label"
1492
  msgstr "カスタム分類名(表示名)"
1493
 
1494
- #: plugins/post-type-manager/class.post-type-manager.php:144
1495
  msgid "Hierarchy"
1496
  msgstr "階層"
1497
 
1498
- #: plugins/post-type-manager/class.post-type-manager.php:145
1499
  msgid "Make it a tag (do not hierarchize)"
1500
  msgstr "タグにする(階層化しない)"
1501
 
1502
- #: plugins/post-type-manager/class.post-type-manager.php:200
1503
  #, php-format
1504
  msgid ""
1505
  "Please save a <a href=\"%s\">permanent link configuration</a> After updating "
@@ -1507,6 +1530,10 @@ msgid ""
1507
  msgstr ""
1508
  "設定を更新したら<a href=\"%s\">パーマリンク設定</a>を保存してください。"
1509
 
 
 
 
 
1510
  #: plugins/sitemap_page/sitemap_admin.php:9
1511
  msgid "HTML Sitemap Settings"
1512
  msgstr "HTMLサイトマップ設定"
@@ -1909,10 +1936,8 @@ msgid "Setting of insert items"
1909
  msgstr "挿入アイテムの設定"
1910
 
1911
  #: plugins_admin/customize-panel.php:28
1912
- #, fuzzy
1913
- #| msgid "Extension Setting"
1914
  msgid "ExUnit Settings"
1915
- msgstr "拡張設定"
1916
 
1917
  #: plugins_admin/dashboard_info_widget.php:18
1918
  msgid "News from VK All in One Expansion Unit"
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
+ "POT-Creation-Date: 2017-11-14 11: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"
283
  msgid "Insert ads to content."
284
  msgstr "記事に広告を挿入します"
285
 
286
+ #: packages.php:343 plugins/related_posts/related_posts.php:102
287
  msgid "Related posts"
288
  msgstr "関連記事を表示"
289
 
534
  msgid "Read more"
535
  msgstr "詳しくはこちら"
536
 
537
+ #: plugins/child_page_index.php:139 plugins/other_widget/widget-page.php:174
538
  msgid "Display a child page index"
539
  msgstr "子ページ一覧の表示"
540
 
947
 
948
  #: plugins/other_widget/widget-3pr-area.php:58
949
  #: plugins/other_widget/widget-new-posts.php:204
950
+ #: plugins/other_widget/widget-page.php:126
951
  #: plugins/other_widget/widget-pr-blocks.php:89
952
  #: plugins/other_widget/widget-profile.php:48
953
+ #: plugins/related_posts/related_posts.php:160
954
  #: plugins/sns/function_fbPagePlugin.php:79
955
  msgid "Title:"
956
  msgstr "タイトル"
1200
  msgid "Displays a page contents to widget."
1201
  msgstr "選択したページの内容を表示します。"
1202
 
1203
+ #: plugins/other_widget/widget-page.php:135
1204
  msgid "Display the entered title"
1205
  msgstr "入力したタイトルを表示する"
1206
 
1207
+ #: plugins/other_widget/widget-page.php:139
1208
  msgid "Display the title of page"
1209
  msgstr "固定ページのタイトルを表示する"
1210
 
1211
+ #: plugins/other_widget/widget-page.php:143
1212
  msgid "Do not display titles"
1213
  msgstr "タイトルを表示しない"
1214
 
1215
+ #: plugins/other_widget/widget-page.php:157
1216
  #: plugins/other_widget/widget-taxonomies.php:74
1217
  msgid "Display page"
1218
  msgstr "ページを表示"
1219
 
1220
+ #: plugins/other_widget/widget-page.php:183 plugins/pageList_ancestor.php:96
1221
  msgid "Display a page list from ancestor"
1222
  msgstr "現在のページの先祖階層からの子ページリストを表示"
1223
 
1224
+ #: plugins/other_widget/widget-page.php:253
1225
  msgid "Edit"
1226
  msgstr "編集"
1227
 
1484
  msgid "Custom taxonomies(optional)"
1485
  msgstr "カスタム分類(任意)"
1486
 
1487
+ #: plugins/post-type-manager/class.post-type-manager.php:124
1488
+ msgid "Custom taxonomy is like a category in post."
1489
+ msgstr "カスタム分類とは投稿で言うカテゴリーです。"
1490
+
1491
+ #: plugins/post-type-manager/class.post-type-manager.php:125
1492
+ msgid ""
1493
+ "However, it refers to the \"category\" itself, not to the “item” of the "
1494
+ "category."
1495
+ msgstr "しかし、カテゴリーの”項目”ではなく、”カテゴリー”そのものを指します。"
1496
+
1497
+ #: plugins/post-type-manager/class.post-type-manager.php:126
1498
+ msgid ""
1499
+ "For example, if you create a post type \"construction result\", Custom "
1500
+ "taxonomy will be \"construction type\", \"construction area\", etc."
1501
+ msgstr ""
1502
+ "例えば「施工実績」という投稿タイプを作成した場合、カスタム分類は「施工タイ"
1503
+ "プ」「施工地域」等になります。"
1504
+
1505
+ #: plugins/post-type-manager/class.post-type-manager.php:141
1506
  msgid "Custon taxonomy name(slug)"
1507
  msgstr "カスタム分類名(スラッグ)"
1508
 
1509
+ #: plugins/post-type-manager/class.post-type-manager.php:145
1510
+ msgid "* Please be sure to enter it with one-byte alphanumeric characters"
1511
+ msgstr "※ 必ず半角英数字にて入力してください"
1512
+
1513
+ #: plugins/post-type-manager/class.post-type-manager.php:150
1514
  msgid "Custon taxonomy label"
1515
  msgstr "カスタム分類名(表示名)"
1516
 
1517
+ #: plugins/post-type-manager/class.post-type-manager.php:156
1518
  msgid "Hierarchy"
1519
  msgstr "階層"
1520
 
1521
+ #: plugins/post-type-manager/class.post-type-manager.php:157
1522
  msgid "Make it a tag (do not hierarchize)"
1523
  msgstr "タグにする(階層化しない)"
1524
 
1525
+ #: plugins/post-type-manager/class.post-type-manager.php:212
1526
  #, php-format
1527
  msgid ""
1528
  "Please save a <a href=\"%s\">permanent link configuration</a> After updating "
1530
  msgstr ""
1531
  "設定を更新したら<a href=\"%s\">パーマリンク設定</a>を保存してください。"
1532
 
1533
+ #: plugins/related_posts/related_posts.php:147
1534
+ msgid "Related Settings"
1535
+ msgstr "関連記事設定"
1536
+
1537
  #: plugins/sitemap_page/sitemap_admin.php:9
1538
  msgid "HTML Sitemap Settings"
1539
  msgstr "HTMLサイトマップ設定"
1936
  msgstr "挿入アイテムの設定"
1937
 
1938
  #: plugins_admin/customize-panel.php:28
 
 
1939
  msgid "ExUnit Settings"
1940
+ msgstr "ExUnit 設定"
1941
 
1942
  #: plugins_admin/dashboard_info_widget.php:18
1943
  msgid "News from VK All in One Expansion Unit"
plugins/call-to-action/view-actionbox.php CHANGED
@@ -39,7 +39,7 @@ if ( $imgid ) {
39
  $content .= '</div>';
40
  }
41
  $content .= '<div class="cta_body_txt '.(($imgid)? 'image_exist' : 'image_no').'">';
42
- $content .= $text;
43
  $content .= '</div>';
44
  if ( $url && $btn_text ) {
45
  $content .= '<div class="cta_body_link">';
39
  $content .= '</div>';
40
  }
41
  $content .= '<div class="cta_body_txt '.(($imgid)? 'image_exist' : 'image_no').'">';
42
+ $content .= do_shortcode($text);
43
  $content .= '</div>';
44
  if ( $url && $btn_text ) {
45
  $content .= '<div class="cta_body_link">';
plugins/post-type-manager/class.post-type-manager.php CHANGED
@@ -119,6 +119,13 @@ if ( ! class_exists( 'Vk_post_type_manager' ) ) {
119
 
120
  // Custom taxonomies
121
  echo '<h4>'.__('Custom taxonomies(optional)', $vk_post_type_manager_textdomain).'</h4>';
 
 
 
 
 
 
 
122
  $taxonomies = array( 'taxonomy_id', 'taxonomy_lavel');
123
  echo '<table class="table table-border">';
124
 
@@ -132,7 +139,12 @@ if ( ! class_exists( 'Vk_post_type_manager' ) ) {
132
  echo '<tr>';
133
  echo '<th rowspan="3">'.$i.'</th>';
134
  echo '<td>'.__('Custon taxonomy name(slug)', $vk_post_type_manager_textdomain ).'</td>';
135
- echo '<td><input type="text" id="veu_taxonomy['.$i.'][slug]" name="veu_taxonomy['.$i.'][slug]" value="'.esc_attr($slug).'" size="20"></td>';
 
 
 
 
 
136
 
137
  echo '<tr>';
138
  echo '<td>'.__('Custon taxonomy label', $vk_post_type_manager_textdomain ).'</td>';
119
 
120
  // Custom taxonomies
121
  echo '<h4>'.__('Custom taxonomies(optional)', $vk_post_type_manager_textdomain).'</h4>';
122
+
123
+ echo '<p>';
124
+ echo __('Custom taxonomy is like a category in post.',$vk_post_type_manager_textdomain ).'<br />';
125
+ echo __('However, it refers to the "category" itself, not to the “item” of the category.',$vk_post_type_manager_textdomain ).'<br />';
126
+ echo __('For example, if you create a post type "construction result", Custom taxonomy will be "construction type", "construction area", etc.',$vk_post_type_manager_textdomain );
127
+ echo '</p>';
128
+
129
  $taxonomies = array( 'taxonomy_id', 'taxonomy_lavel');
130
  echo '<table class="table table-border">';
131
 
139
  echo '<tr>';
140
  echo '<th rowspan="3">'.$i.'</th>';
141
  echo '<td>'.__('Custon taxonomy name(slug)', $vk_post_type_manager_textdomain ).'</td>';
142
+ echo '<td><input type="text" id="veu_taxonomy['.$i.'][slug]" name="veu_taxonomy['.$i.'][slug]" value="'.esc_attr($slug).'" size="20">';
143
+ $locale = get_locale();
144
+ if ( ! in_array( $locale, array( 'en_US', 'en_CA', 'en_NZ', 'en_AU', 'en_ZA', 'en_GB' ) ) ){
145
+ echo '<div>'.__( '* Please be sure to enter it with one-byte alphanumeric characters',$vk_post_type_manager_textdomain).'</div>';
146
+ }
147
+ echo '</td>';
148
 
149
  echo '<tr>';
150
  echo '<td>'.__('Custon taxonomy label', $vk_post_type_manager_textdomain ).'</td>';
plugins/related_posts/related_posts.php CHANGED
@@ -14,7 +14,7 @@ function vkExUnit_get_relatedPosts( $post_type = 'post', $taxonomy = 'post_tag',
14
  $post_id = get_the_id();
15
 
16
  $terms = get_the_terms( $post_id, $taxonomy );
17
-
18
  if ( ! $terms || ! is_array( $terms ) ) { return $posts_array; }
19
  $tags = array();
20
  foreach ( $terms as $t ) { $tags[] = $t->term_id; }
@@ -48,7 +48,7 @@ function vkExUnit_get_relatedPosts( $post_type = 'post', $taxonomy = 'post_tag',
48
  if ( $post_shortage > 0 ) {
49
  $args = $args_base;
50
  $args['posts_per_page'] = $post_shortage;
51
- foreach ( $posts_array as $post ) {
52
  $args['post__not_in'][] = $post->ID;
53
  }
54
  $args['tax_query'] = array( array(
@@ -89,12 +89,22 @@ function vkExUnit_add_relatedPosts_html( $content ) {
89
  if ( !$related_posts ) { return $content; }
90
 
91
  // $posts_count = mb_convert_kana($relatedPostCount, "a", "UTF-8");
92
-
93
  if ( $related_posts ) {
94
  $relatedPostsHtml = '<!-- [ .relatedPosts ] -->';
95
  $relatedPostsHtml .= '<aside class="veu_relatedPosts veu_contentAddSection">';
96
- $relatedPostTitle = apply_filters( 'veu_related_post_title', __( 'Related posts','vkExUnit' ) );
 
 
 
 
 
 
 
 
 
 
97
  $relatedPostsHtml .= '<h1 class="mainSection-title">'.$relatedPostTitle.'</h1>';
 
98
  $i = 1;
99
  $relatedPostsHtml .= '<div class="row">';
100
  foreach ( $related_posts as $key => $post ) {
@@ -125,6 +135,43 @@ function vkExUnit_add_relatedPosts_html( $content ) {
125
  return $content;
126
  }
127
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
128
  /*
129
 
130
  hook sample
@@ -147,4 +194,4 @@ function veu_related_post_args_custom( $related_post_args ){
147
  return $related_post_args;
148
  }
149
 
150
- */
14
  $post_id = get_the_id();
15
 
16
  $terms = get_the_terms( $post_id, $taxonomy );
17
+
18
  if ( ! $terms || ! is_array( $terms ) ) { return $posts_array; }
19
  $tags = array();
20
  foreach ( $terms as $t ) { $tags[] = $t->term_id; }
48
  if ( $post_shortage > 0 ) {
49
  $args = $args_base;
50
  $args['posts_per_page'] = $post_shortage;
51
+ foreach ( $posts_array as $post ) {
52
  $args['post__not_in'][] = $post->ID;
53
  }
54
  $args['tax_query'] = array( array(
89
  if ( !$related_posts ) { return $content; }
90
 
91
  // $posts_count = mb_convert_kana($relatedPostCount, "a", "UTF-8");
 
92
  if ( $related_posts ) {
93
  $relatedPostsHtml = '<!-- [ .relatedPosts ] -->';
94
  $relatedPostsHtml .= '<aside class="veu_relatedPosts veu_contentAddSection">';
95
+
96
+ $output = get_option( 'vkExUnit_related_options');
97
+ // テキストフィールドに値が入っていたら、表示させる。
98
+ if ( ! empty( $output['related_title'] ) ) {
99
+ $relatedPostTitle = $output['related_title'];
100
+ } else {
101
+ // 何も入っていなかったら既存のタイトルを表示させる。
102
+ $relatedPostTitle = __( 'Related posts','vkExUnit' );
103
+ }
104
+ // 書き換え用フィルターフック(カスタマイザーで変更出来るが、既存ユーザーで使用しているかもしれないため削除不可)
105
+ $relatedPostTitle = apply_filters( 'veu_related_post_title', $relatedPostTitle );
106
  $relatedPostsHtml .= '<h1 class="mainSection-title">'.$relatedPostTitle.'</h1>';
107
+
108
  $i = 1;
109
  $relatedPostsHtml .= '<div class="row">';
110
  foreach ( $related_posts as $key => $post ) {
135
  return $content;
136
  }
137
 
138
+ // カスタマイザーの設定
139
+
140
+ if ( apply_filters('veu_customize_panel_activation', false ) ){
141
+ add_action( 'customize_register', 'veu_customize_register_related' );
142
+ }
143
+
144
+ function veu_customize_register_related( $wp_customize ) {
145
+ // セクション追加
146
+ $wp_customize->add_section( 'veu_related_setting', array(
147
+ 'title' => __('Related Settings', 'vkExUnit'),
148
+ 'priority' => 1000,
149
+ 'panel' => 'veu_setting',
150
+ ) );
151
+ // セッティング
152
+ $wp_customize->add_setting( 'vkExUnit_related_options[related_title]', array(
153
+ 'default' => '',
154
+ 'type' => 'option', // 保存先 option or theme_mod
155
+ 'capability' => 'edit_theme_options',
156
+ 'sanitize_callback' => 'sanitize_text_field',
157
+ ) );
158
+ // コントロール
159
+ $wp_customize->add_control( 'related_title', array(
160
+ 'label' => __( 'Title:', 'vkExUnit' ),
161
+ 'section' => 'veu_related_setting',
162
+ 'settings' => 'vkExUnit_related_options[related_title]',
163
+ 'type' => 'text',
164
+ 'priority' => 1,
165
+ ) );
166
+ /*-------------------------------------------*/
167
+ /* Add Edit Customize Link Btn
168
+ /*-------------------------------------------*/
169
+ $wp_customize->selective_refresh->add_partial( 'vkExUnit_related_options[related_title]', array(
170
+ 'selector' => '.veu_relatedPosts',
171
+ 'render_callback' => '',
172
+ ) );
173
+ }
174
+
175
  /*
176
 
177
  hook sample
194
  return $related_post_args;
195
  }
196
 
197
+ */
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.8.2
7
- Stable tag: 5.7.7
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.8.2
7
+ Stable tag: 5.7.8
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: 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.7.7
7
  * Author: Vektor,Inc.
8
  * Text Domain: vkExUnit
9
  * Domain Path: /languages
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.7.8
7
  * Author: Vektor,Inc.
8
  * Text Domain: vkExUnit
9
  * Domain Path: /languages