VK All in One Expansion Unit - Version 8.0.2

Version Description

[ Other ][ dashboard ] Add Link banner

Download this release

Release Info

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

Code changes from version 8.0.0 to 8.0.2

plugins/template-tags/template-tags.php CHANGED
@@ -302,15 +302,26 @@ function vk_the_post_type_check_list( $args ) {
302
  ),
303
  'name' => '',
304
  'checked' => '',
 
305
  );
306
  $args = wp_parse_args( $args, $default );
307
  $post_types = get_post_types( $args['post_types_args'], 'object' );
308
  echo '<ul>';
309
  foreach ( $post_types as $key => $value ) {
310
  if ( $key != 'attachment' ) {
 
311
  $checked = ( isset( $args['checked'][ $key ] ) && $args['checked'][ $key ] == 'true' ) ? ' checked' : '';
 
 
 
 
 
 
 
 
 
312
  echo '<li><label>';
313
- echo '<input type="checkbox" name="' . $args['name'] . '[' . $key . ']" id="snsBtn_exclude_post_types" value="true"' . $checked . ' />' . esc_html( $value->label );
314
  echo '</label></li>';
315
  }
316
  }
302
  ),
303
  'name' => '',
304
  'checked' => '',
305
+ 'id' => '',
306
  );
307
  $args = wp_parse_args( $args, $default );
308
  $post_types = get_post_types( $args['post_types_args'], 'object' );
309
  echo '<ul>';
310
  foreach ( $post_types as $key => $value ) {
311
  if ( $key != 'attachment' ) {
312
+
313
  $checked = ( isset( $args['checked'][ $key ] ) && $args['checked'][ $key ] == 'true' ) ? ' checked' : '';
314
+
315
+ if ( $args['id'] ) {
316
+ $id = ' id="' . esc_attr( $args['id'] ) . '"';
317
+ } elseif ( $args['name'] ) {
318
+ $id = ' id="' . esc_attr( $args['name'] ) . '"';
319
+ } else {
320
+ $id = '';
321
+ }
322
+
323
  echo '<li><label>';
324
+ echo '<input type="checkbox" name="' . esc_attr( $args['name'] ) . '[' . $key . ']"' . $id . ' value="true"' . $checked . ' />' . esc_html( $value->label );
325
  echo '</label></li>';
326
  }
327
  }
plugins_admin/vk-admin/class-vk-admin.php CHANGED
@@ -21,8 +21,6 @@ if ( ! class_exists( 'Vk_Admin' ) ) {
21
 
22
  static function init() {
23
  add_action( 'admin_enqueue_scripts', array( __CLASS__, 'admin_common_css' ) );
24
- // メイン設定画面などで画像アップロードに必要
25
- add_action( 'admin_enqueue_scripts', array( __CLASS__, 'admin_enqueue_scripts' ) );
26
  add_action( 'customize_register', array( __CLASS__, 'admin_common_css' ) );
27
  add_action( 'wp_dashboard_setup', array( __CLASS__, 'dashboard_widget' ), 1 );
28
  }
@@ -46,22 +44,27 @@ if ( ! class_exists( 'Vk_Admin' ) ) {
46
  }
47
  }
48
 
 
 
49
  /*--------------------------------------------------*/
50
- /* get_admin_banner
 
51
  /*--------------------------------------------------*/
52
- /* get_news_body_api
 
53
  /*--------------------------------------------------*/
54
- /* get_news_from_rss
 
55
  /*--------------------------------------------------*/
56
- /* admin _ Dashboard Widget
 
57
  /*--------------------------------------------------*/
58
- /* admin _ sub
59
- /*--------------------------------------------------*/
60
- /* admin _ page_frame
61
  /*--------------------------------------------------*/
62
 
63
- /*--------------------------------------------------*/
64
- /* get_admin_banner
65
  /*--------------------------------------------------*/
66
  public static function get_admin_banner() {
67
  $banner = '';
@@ -69,6 +72,14 @@ if ( ! class_exists( 'Vk_Admin' ) ) {
69
  $lang = ( get_locale() == 'ja' ) ? 'ja' : 'en';
70
 
71
  $banner .= '<div class="vk-admin-banner">';
 
 
 
 
 
 
 
 
72
  $banner .= '<div class="vk-admin-banner-grid">';
73
 
74
  // プラグイン Link Target Controller を有効化していない人にバナーを表示
@@ -143,8 +154,8 @@ if ( ! class_exists( 'Vk_Admin' ) ) {
143
  return apply_filters( 'vk_admin_banner_html', $banner );
144
  }
145
 
146
- /*--------------------------------------------------*/
147
- /* get_news_body
148
  /*--------------------------------------------------*/
149
  public static function get_news_body() {
150
  if ( 'ja' == get_locale() ) {
@@ -156,8 +167,8 @@ if ( ! class_exists( 'Vk_Admin' ) ) {
156
  }
157
  }
158
 
159
- /*--------------------------------------------------*/
160
- /* get_news_body_api
161
  /*--------------------------------------------------*/
162
 
163
  public static function get_news_from_rest_api() {
@@ -241,8 +252,8 @@ if ( ! class_exists( 'Vk_Admin' ) ) {
241
  <?php
242
  }
243
 
244
- /*--------------------------------------------------*/
245
- /* get_news_from_rss
246
  /* RSS方針で現在は日本語以外でのみ使用
247
  /*--------------------------------------------------*/
248
  public static function get_news_from_rss() {
@@ -268,7 +279,7 @@ if ( ! class_exists( 'Vk_Admin' ) ) {
268
  if ( ! is_wp_error( $rss ) ) {
269
  $output = '';
270
 
271
- $maxitems = $rss->get_item_quantity( 5 ); //number of news to display (maximum)
272
  $rss_items = $rss->get_items( 0, $maxitems );
273
  $output .= '<div class="rss-widget">';
274
  $output .= '<h4 class="vk-metabox-sub-title">' . apply_filters( 'vk-admin-sub-title-text', 'Information' ) . '</h4>';
@@ -322,8 +333,8 @@ if ( ! class_exists( 'Vk_Admin' ) ) {
322
 
323
  return apply_filters( 'vk-admin-is-dashboard-active', $flag );
324
  }
325
- /*--------------------------------------------------*/
326
- /* admin _ Dashboard Widget
327
  /*--------------------------------------------------*/
328
  public static function dashboard_widget() {
329
  global $vk_admin_textdomain;
@@ -341,8 +352,8 @@ if ( ! class_exists( 'Vk_Admin' ) ) {
341
  echo Vk_Admin::get_admin_banner();
342
  }
343
 
344
- /*--------------------------------------------------*/
345
- /* admin _ sub
346
  /*--------------------------------------------------*/
347
  // 2016.08.07 ExUnitの有効化ページでは直接 admin_subを呼び出しているので注意
348
  public static function admin_sub() {
@@ -357,8 +368,8 @@ if ( ! class_exists( 'Vk_Admin' ) ) {
357
  return $adminSub;
358
  }
359
 
360
- /*--------------------------------------------------*/
361
- /* admin _ page_frame
362
  /*--------------------------------------------------*/
363
  public static function admin_page_frame( $get_page_title, $the_body_callback, $get_logo_html = '', $get_menu_html = '', $get_layout = 'column_3' ) {
364
  ?>
21
 
22
  static function init() {
23
  add_action( 'admin_enqueue_scripts', array( __CLASS__, 'admin_common_css' ) );
 
 
24
  add_action( 'customize_register', array( __CLASS__, 'admin_common_css' ) );
25
  add_action( 'wp_dashboard_setup', array( __CLASS__, 'dashboard_widget' ), 1 );
26
  }
44
  }
45
  }
46
 
47
+ /*
48
+ get_admin_banner
49
  /*--------------------------------------------------*/
50
+ /*
51
+ get_news_body_api
52
  /*--------------------------------------------------*/
53
+ /*
54
+ get_news_from_rss
55
  /*--------------------------------------------------*/
56
+ /*
57
+ admin _ Dashboard Widget
58
  /*--------------------------------------------------*/
59
+ /*
60
+ admin _ sub
61
  /*--------------------------------------------------*/
62
+ /*
63
+ admin _ page_frame
 
64
  /*--------------------------------------------------*/
65
 
66
+ /*
67
+ get_admin_banner
68
  /*--------------------------------------------------*/
69
  public static function get_admin_banner() {
70
  $banner = '';
72
  $lang = ( get_locale() == 'ja' ) ? 'ja' : 'en';
73
 
74
  $banner .= '<div class="vk-admin-banner">';
75
+ if ( $lang == 'ja' ) {
76
+ $banner .= '<a class="admin_banner" href="https://recruit.vektor-inc.co.jp/?rel=vkadmin" target="_blank">';
77
+ $banner .= '<img src="' . $dir_url . 'images/admin_banner_recruit.jpg" alt="[ Vektor,Inc. 採用情報 ]" />';
78
+ $banner .= '</a>';
79
+ } else {
80
+ $banner .= '<a href="https://lightning.nagoya/lightning_copyright_customizer/?rel=vkadmin" target="_blank" class="button button-primary button-primary button-block" style="margin-bottom:1em;">Lightning Copyright Customizer <span class="screen-reader-text">(opens in a new tab)</span><span aria-hidden="true" class="dashicons dashicons-external" style="position:relative;top:3px;"></span></a>';
81
+ }
82
+
83
  $banner .= '<div class="vk-admin-banner-grid">';
84
 
85
  // プラグイン Link Target Controller を有効化していない人にバナーを表示
154
  return apply_filters( 'vk_admin_banner_html', $banner );
155
  }
156
 
157
+ /*
158
+ get_news_body
159
  /*--------------------------------------------------*/
160
  public static function get_news_body() {
161
  if ( 'ja' == get_locale() ) {
167
  }
168
  }
169
 
170
+ /*
171
+ get_news_body_api
172
  /*--------------------------------------------------*/
173
 
174
  public static function get_news_from_rest_api() {
252
  <?php
253
  }
254
 
255
+ /*
256
+ get_news_from_rss
257
  /* RSS方針で現在は日本語以外でのみ使用
258
  /*--------------------------------------------------*/
259
  public static function get_news_from_rss() {
279
  if ( ! is_wp_error( $rss ) ) {
280
  $output = '';
281
 
282
+ $maxitems = $rss->get_item_quantity( 5 ); // number of news to display (maximum)
283
  $rss_items = $rss->get_items( 0, $maxitems );
284
  $output .= '<div class="rss-widget">';
285
  $output .= '<h4 class="vk-metabox-sub-title">' . apply_filters( 'vk-admin-sub-title-text', 'Information' ) . '</h4>';
333
 
334
  return apply_filters( 'vk-admin-is-dashboard-active', $flag );
335
  }
336
+ /*
337
+ admin _ Dashboard Widget
338
  /*--------------------------------------------------*/
339
  public static function dashboard_widget() {
340
  global $vk_admin_textdomain;
352
  echo Vk_Admin::get_admin_banner();
353
  }
354
 
355
+ /*
356
+ admin _ sub
357
  /*--------------------------------------------------*/
358
  // 2016.08.07 ExUnitの有効化ページでは直接 admin_subを呼び出しているので注意
359
  public static function admin_sub() {
368
  return $adminSub;
369
  }
370
 
371
+ /*
372
+ admin _ page_frame
373
  /*--------------------------------------------------*/
374
  public static function admin_page_frame( $get_page_title, $the_body_callback, $get_logo_html = '', $get_menu_html = '', $get_layout = 'column_3' ) {
375
  ?>
plugins_admin/vk-admin/images/admin_banner_recruit.jpg ADDED
Binary file
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: 5.1.1
7
- Stable tag: 8.0.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -86,6 +86,9 @@ e.g.
86
 
87
  == Changelog ==
88
 
 
 
 
89
  = 8.0.0 =
90
  [Bug fix][ PR Blocks ] When link url not set that no print a Tags
91
  [Specification change][ PR Blocks ] Change outer tag article to div
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: 5.1.1
7
+ Stable tag: 8.0.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
86
 
87
  == Changelog ==
88
 
89
+ = 8.0.2 =
90
+ [ Other ][ dashboard ] Add Link banner
91
+
92
  = 8.0.0 =
93
  [Bug fix][ PR Blocks ] When link url not set that no print a Tags
94
  [Specification change][ PR Blocks ] Change outer tag article to div
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: 8.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: 8.0.2
7
  * Author: Vektor,Inc.
8
  * Text Domain: vkExUnit
9
  * Domain Path: /languages