VK All in One Expansion Unit - Version 9.67.0.0

Version Description

  • [ Other ] Partial refactoring
  • [ Other ][ IE Alert ] Add notice to Edge IE mode
Download this release

Release Info

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

Code changes from version 9.66.2.0 to 9.67.0.0

admin/admin.php CHANGED
@@ -102,17 +102,15 @@ function veu_add_setting_page() {
102
  // add_action( 'admin_print_scripts-exunit_page_vkExUnit_main_setting', 'veu_admin_add_js' );
103
  add_action( 'admin_enqueue_scripts', 'veu_admin_add_js' );
104
  function veu_admin_add_js( $hook_suffix ) {
105
- global $vkExUnit_version;
106
  wp_enqueue_media();
107
- wp_register_script( 'vkExUnit_admin_js', veu_get_directory_uri() . '/assets/js/vkExUnit_admin.js', array( 'jquery' ), $vkExUnit_version );
108
  wp_enqueue_script( 'jquery' );
109
  wp_enqueue_script( 'vkExUnit_admin_js' );
110
  }
111
 
112
  add_action( 'admin_enqueue_scripts', 'veu_admin_css' );
113
  function veu_admin_css() {
114
- global $vkExUnit_version;
115
- wp_enqueue_style( 'veu_admin_css', veu_get_directory_uri() . '/assets/css/vkExUnit_admin.css', array(), $vkExUnit_version, 'all' );
116
  }
117
 
118
  /*
102
  // add_action( 'admin_print_scripts-exunit_page_vkExUnit_main_setting', 'veu_admin_add_js' );
103
  add_action( 'admin_enqueue_scripts', 'veu_admin_add_js' );
104
  function veu_admin_add_js( $hook_suffix ) {
 
105
  wp_enqueue_media();
106
+ wp_register_script( 'vkExUnit_admin_js', VEU_DIRECTORY_URI . '/assets/js/vkExUnit_admin.js', array( 'jquery' ), VEU_VERSION );
107
  wp_enqueue_script( 'jquery' );
108
  wp_enqueue_script( 'vkExUnit_admin_js' );
109
  }
110
 
111
  add_action( 'admin_enqueue_scripts', 'veu_admin_css' );
112
  function veu_admin_css() {
113
+ wp_enqueue_style( 'veu_admin_css', VEU_DIRECTORY_URI . '/assets/css/vkExUnit_admin.css', array(), VEU_VERSION, 'all' );
 
114
  }
115
 
116
  /*
admin/class-veu-metabox-insert-items.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- require_once( veu_get_directory() . '/admin/class-veu-metabox.php' );
4
 
5
  class VEU_Metabox_Insert_Items extends VEU_Metabox {
6
 
1
  <?php
2
 
3
+ require_once( VEU_DIRECTORY_PATH . '/admin/class-veu-metabox.php' );
4
 
5
  class VEU_Metabox_Insert_Items extends VEU_Metabox {
6
 
inc/css-customize/css-customize.php CHANGED
@@ -79,7 +79,7 @@ class veu_css_customize {
79
 
80
  $data = $this->css_customize_valid_form();
81
 
82
- include( veu_get_directory() . '/inc/css-customize/css-customize-edit.php' );
83
  }
84
 
85
 
79
 
80
  $data = $this->css_customize_valid_form();
81
 
82
+ include( VEU_DIRECTORY_PATH . '/inc/css-customize/css-customize-edit.php' );
83
  }
84
 
85
 
inc/display-ie-alert.php CHANGED
@@ -20,15 +20,15 @@ function veu_is_ie() {
20
  * IE Alart HTML
21
  */
22
  function veu_get_alert_html() {
23
- $title = __( 'The browser that you use is not safe.', 'vk-all-in-one-expansion-unit' );
24
- $message = '';
25
  $message .= __( 'Internet Explorer, you are using, is old browser, Microsoft also reports that use is dangerous.', 'vk-all-in-one-expansion-unit' );
26
  $message .= __( 'This website is also not guaranteed to display on Internet Explorer.', 'vk-all-in-one-expansion-unit' );
27
 
28
  $html = '<div class="ie_alert">';
29
  $html .= '<h1 class="ie_alert__title">';
30
  $html .= apply_filters( 'vk_ie_alert_title', $title );
31
- '</h1>';
32
  $html .= '<div class="ie_alert__body">';
33
  $html .= '<p>';
34
  $html .= apply_filters( 'vk_ie_alert_message', $message );
@@ -36,6 +36,9 @@ function veu_get_alert_html() {
36
  $html .= '<p>';
37
  $html .= __( 'Plese use The latest modern browser ( <a href="https://www.microsoft.com/ja-jp/edge" target="_blank" rel="noopener">Microsoft Edge</a>, <a href="https://www.google.co.jp/chrome/index.html" target="_blank" rel="noopener">Google Chrome</a> and so on ).', 'vk-all-in-one-expansion-unit' );
38
  $html .= '</p>';
 
 
 
39
  $html .= '</div>';
40
  $html .= '</div>';
41
  return apply_filters( 'vk_ie_alert_html', $html );
20
  * IE Alart HTML
21
  */
22
  function veu_get_alert_html() {
23
+ $title = esc_html( __( 'The browser that you use is not safe.', 'vk-all-in-one-expansion-unit' ) );
24
+ $message = '';
25
  $message .= __( 'Internet Explorer, you are using, is old browser, Microsoft also reports that use is dangerous.', 'vk-all-in-one-expansion-unit' );
26
  $message .= __( 'This website is also not guaranteed to display on Internet Explorer.', 'vk-all-in-one-expansion-unit' );
27
 
28
  $html = '<div class="ie_alert">';
29
  $html .= '<h1 class="ie_alert__title">';
30
  $html .= apply_filters( 'vk_ie_alert_title', $title );
31
+ $html .= '</h1>';
32
  $html .= '<div class="ie_alert__body">';
33
  $html .= '<p>';
34
  $html .= apply_filters( 'vk_ie_alert_message', $message );
36
  $html .= '<p>';
37
  $html .= __( 'Plese use The latest modern browser ( <a href="https://www.microsoft.com/ja-jp/edge" target="_blank" rel="noopener">Microsoft Edge</a>, <a href="https://www.google.co.jp/chrome/index.html" target="_blank" rel="noopener">Google Chrome</a> and so on ).', 'vk-all-in-one-expansion-unit' );
38
  $html .= '</p>';
39
+ $html .= '<p>';
40
+ $html .= __( 'If you are using Edge and you still get this message, make sure you are not in IE mode.', 'vk-all-in-one-expansion-unit' );
41
+ $html .= '</p>';
42
  $html .= '</div>';
43
  $html .= '</div>';
44
  return apply_filters( 'vk_ie_alert_html', $html );
inc/other-widget/class-veu-other-widget-admin-control.php CHANGED
@@ -35,7 +35,7 @@ class VEU_Other_Widget_Admin_Control {
35
  }
36
 
37
  public function admin_setting( $options ) {
38
- include veu_get_directory() . '/inc/other-widget/template/admin_setting.php';
39
  }
40
  }
41
  new VEU_Other_Widget_Admin_Control();
35
  }
36
 
37
  public function admin_setting( $options ) {
38
+ include VEU_DIRECTORY_PATH . '/inc/other-widget/template/admin_setting.php';
39
  }
40
  }
41
  new VEU_Other_Widget_Admin_Control();
inc/other-widget/class-veu-widget-control.php CHANGED
@@ -23,7 +23,7 @@ class VEU_Widget_Control {
23
  $enable_packages = self::enable_widget_ids();
24
  foreach(veu_widget_packages() as $package) {
25
  if( in_array($package['id'], $enable_packages) ) {
26
- require_once veu_get_directory() . '/inc/other-widget/' . $package['include'];
27
  }
28
  }
29
  }
23
  $enable_packages = self::enable_widget_ids();
24
  foreach(veu_widget_packages() as $package) {
25
  if( in_array($package['id'], $enable_packages) ) {
26
+ require_once VEU_DIRECTORY_PATH . '/inc/other-widget/' . $package['include'];
27
  }
28
  }
29
  }
inc/other-widget/other-widget.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
- require_once veu_get_directory() . '/inc/other-widget/class-veu-widget-control.php';
3
- require_once veu_get_directory() . '/inc/other-widget/common.php';
4
 
5
  require dirname( __FILE__ ) . '/widget-new-posts.php';
6
  require dirname( __FILE__ ) . '/widget-profile.php';
@@ -15,7 +15,7 @@ require dirname( __FILE__ ) . '/widget-banner.php';
15
 
16
  if ( is_admin() ) {
17
  // ウィジェットの個別有効化機能管理画面読み込み
18
- require_once veu_get_directory() . '/inc/other-widget/class-veu-other-widget-admin-control.php';
19
  }
20
 
21
  function veu_widget_packages() {
1
  <?php
2
+ require_once VEU_DIRECTORY_PATH . '/inc/other-widget/class-veu-widget-control.php';
3
+ require_once VEU_DIRECTORY_PATH . '/inc/other-widget/common.php';
4
 
5
  require dirname( __FILE__ ) . '/widget-new-posts.php';
6
  require dirname( __FILE__ ) . '/widget-profile.php';
15
 
16
  if ( is_admin() ) {
17
  // ウィジェットの個別有効化機能管理画面読み込み
18
+ require_once VEU_DIRECTORY_PATH . '/inc/other-widget/class-veu-other-widget-admin-control.php';
19
  }
20
 
21
  function veu_widget_packages() {
inc/template-tags/package/template-tags-veu-old.php CHANGED
@@ -6,13 +6,6 @@ https://github.com/vektor-inc/vektor-wp-libraries
6
  にあります。修正の際は上記リポジトリのデータを修正してください。
7
  */
8
 
9
- function vkExUnit_get_directory( $path = '' ) {
10
- return veu_get_directory( $path );
11
- }
12
- function vkExUnit_get_directory_uri( $path = '' ) {
13
- return veu_get_directory_uri( $path );
14
- }
15
-
16
  if ( ! function_exists( 'vkExUnit_get_common_options' ) ) {
17
  function vkExUnit_get_common_options() {
18
  return veu_get_common_options();
6
  にあります。修正の際は上記リポジトリのデータを修正してください。
7
  */
8
 
 
 
 
 
 
 
 
9
  if ( ! function_exists( 'vkExUnit_get_common_options' ) ) {
10
  function vkExUnit_get_common_options() {
11
  return veu_get_common_options();
inc/template-tags/package/template-tags-veu.php CHANGED
@@ -67,7 +67,7 @@ if ( ! function_exists( 'veu_get_capability_required' ) ) {
67
  if ( ! function_exists( 'veu_get_systemlogo_html' ) ) {
68
  function veu_get_systemlogo_html() {
69
  $logo = '<div class="logo_exUnit">';
70
- $logo .= '<img src="' . apply_filters( 'vkExUnit_news_image_URL_small', veu_get_directory_uri( '/assets/images/head_logo_ExUnit.png' ) ) . '" alt="VK ExUnit" />';
71
  $logo .= '</div>';
72
  $logo = apply_filters( 'veu_get_systemlogo_html', $logo );
73
  return $logo;
67
  if ( ! function_exists( 'veu_get_systemlogo_html' ) ) {
68
  function veu_get_systemlogo_html() {
69
  $logo = '<div class="logo_exUnit">';
70
+ $logo .= '<img src="' . apply_filters( 'vkExUnit_news_image_URL_small', VEU_DIRECTORY_URI . '/assets/images/head_logo_ExUnit.png' ) . '" alt="VK ExUnit" />';
71
  $logo .= '</div>';
72
  $logo = apply_filters( 'veu_get_systemlogo_html', $logo );
73
  return $logo;
inc/vk-css-optimize/vk-css-optimize-config.php CHANGED
@@ -10,12 +10,11 @@ if ( ! class_exists( 'VK_CSS_Optimize' ) ) {
10
  }
11
 
12
  function veu_css_tree_shaking_array( $vk_css_tree_shaking_array ){
13
- global $vkExUnit_version;
14
  $vk_css_tree_shaking_array[] = array(
15
  'id' => 'vkExUnit_common_style',
16
- 'url' => veu_get_directory_uri( '/assets/css/vkExUnit_style.css' ),
17
- 'path' => veu_get_directory( '/assets/css/vkExUnit_style.css' ),
18
- 'version' => $vkExUnit_version,
19
  );
20
  return $vk_css_tree_shaking_array;
21
  }
10
  }
11
 
12
  function veu_css_tree_shaking_array( $vk_css_tree_shaking_array ){
 
13
  $vk_css_tree_shaking_array[] = array(
14
  'id' => 'vkExUnit_common_style',
15
+ 'url' => VEU_DIRECTORY_URI . '/assets/css/vkExUnit_style.css',
16
+ 'path' => VEU_DIRECTORY_PATH . '/assets/css/vkExUnit_style.css',
17
+ 'version' => VEU_VERSION,
18
  );
19
  return $vk_css_tree_shaking_array;
20
  }
initialize.php CHANGED
@@ -8,14 +8,14 @@
8
  /*
9
  Load modules
10
  /*-------------------------------------------*/
11
- require veu_get_directory() . '/veu-package-manager.php';
12
  // template-tags-veuでpackageの関数を使うので package-managerを先に読み込んでいる
13
- require_once veu_get_directory() . '/inc/template-tags/template-tags-config.php';
14
- require_once veu_get_directory() . '/inc/vk-helpers/config.php';
15
- require_once veu_get_directory() . '/inc/common-block.php';
16
- require_once veu_get_directory() . '/admin/admin.php';
17
- require_once veu_get_directory() . '/inc/term-color/term-color-config.php';
18
- require veu_get_directory() . '/inc/footer-copyright-change.php';
19
 
20
  veu_package_include(); // package_manager.php
21
 
@@ -32,13 +32,12 @@ function veu_load_css_action() {
32
  add_action( 'wp_enqueue_scripts', 'vwu_register_css', 3 );
33
  add_action( 'admin_enqueue_scripts', 'vwu_register_css', 3 );
34
  function vwu_register_css() {
35
- global $vkExUnit_version;
36
  $options = veu_get_common_options();
37
 
38
  if ( isset( $options['active_bootstrap'] ) && $options['active_bootstrap'] ) {
39
- wp_register_style( 'vkExUnit_common_style', plugins_url( '', __FILE__ ) . '/assets/css/vkExUnit_style_in_bs.css', array(), $vkExUnit_version, 'all' );
40
  } else {
41
- wp_register_style( 'vkExUnit_common_style', plugins_url( '', __FILE__ ) . '/assets/css/vkExUnit_style.css', array(), $vkExUnit_version, 'all' );
42
  }
43
  }
44
 
@@ -67,10 +66,9 @@ add_action( 'init', 'veu_print_block_editor_css' );
67
  -------------------------------------------*/
68
  add_action( 'wp_enqueue_scripts', 'veu_print_js' );
69
  function veu_print_js() {
70
- global $vkExUnit_version;
71
  $options = apply_filters( 'vkExUnit_master_js_options', array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) );
72
 
73
- wp_register_script( 'vkExUnit_master-js', plugins_url( '', __FILE__ ) . '/assets/js/all.min.js', array(), $vkExUnit_version, true );
74
  wp_localize_script( 'vkExUnit_master-js', 'vkExOpt', apply_filters( 'vkExUnit_localize_options', $options ) );
75
  wp_enqueue_script( 'vkExUnit_master-js' );
76
  }
@@ -138,17 +136,17 @@ function veu_change_enqueue_point_to_footer( $enqueue_point ) {
138
 
139
  function veu_inline_styles() {
140
  $dynamic_css = ':root {
141
- --ver_page_top_button_url:url(' . veu_get_directory_uri( '/assets/images/to-top-btn-icon.svg' ) . ');
142
  }
143
  @font-face {
144
  font-weight: normal;
145
  font-style: normal;
146
  font-family: "vk_sns";
147
- src: url("' . veu_get_directory_uri( '/inc/sns/icons/fonts/vk_sns.eot?-bq20cj' ) . '");
148
- src: url("' . veu_get_directory_uri( '/inc/sns/icons/fonts/vk_sns.eot?#iefix-bq20cj' ) . '") format("embedded-opentype"),
149
- url("' . veu_get_directory_uri( '/inc/sns/icons/fonts/vk_sns.woff?-bq20cj' ) . '") format("woff"),
150
- url("' . veu_get_directory_uri( '/inc/sns/icons/fonts/vk_sns.ttf?-bq20cj' ) . '") format("truetype"),
151
- url("' . veu_get_directory_uri( '/inc/sns/icons/fonts/vk_sns.svg?-bq20cj#vk_sns' ) . '") format("svg");
152
  }';
153
 
154
  // delete before after space
8
  /*
9
  Load modules
10
  /*-------------------------------------------*/
11
+ require VEU_DIRECTORY_PATH . '/veu-package-manager.php';
12
  // template-tags-veuでpackageの関数を使うので package-managerを先に読み込んでいる
13
+ require_once VEU_DIRECTORY_PATH . '/inc/template-tags/template-tags-config.php';
14
+ require_once VEU_DIRECTORY_PATH . '/inc/vk-helpers/config.php';
15
+ require_once VEU_DIRECTORY_PATH . '/inc/common-block.php';
16
+ require_once VEU_DIRECTORY_PATH . '/admin/admin.php';
17
+ require_once VEU_DIRECTORY_PATH . '/inc/term-color/term-color-config.php';
18
+ require VEU_DIRECTORY_PATH . '/inc/footer-copyright-change.php';
19
 
20
  veu_package_include(); // package_manager.php
21
 
32
  add_action( 'wp_enqueue_scripts', 'vwu_register_css', 3 );
33
  add_action( 'admin_enqueue_scripts', 'vwu_register_css', 3 );
34
  function vwu_register_css() {
 
35
  $options = veu_get_common_options();
36
 
37
  if ( isset( $options['active_bootstrap'] ) && $options['active_bootstrap'] ) {
38
+ wp_register_style( 'vkExUnit_common_style', plugins_url( '', __FILE__ ) . '/assets/css/vkExUnit_style_in_bs.css', array(), VEU_VERSION, 'all' );
39
  } else {
40
+ wp_register_style( 'vkExUnit_common_style', plugins_url( '', __FILE__ ) . '/assets/css/vkExUnit_style.css', array(), VEU_VERSION, 'all' );
41
  }
42
  }
43
 
66
  -------------------------------------------*/
67
  add_action( 'wp_enqueue_scripts', 'veu_print_js' );
68
  function veu_print_js() {
 
69
  $options = apply_filters( 'vkExUnit_master_js_options', array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) );
70
 
71
+ wp_register_script( 'vkExUnit_master-js', plugins_url( '', __FILE__ ) . '/assets/js/all.min.js', array(), VEU_VERSION, true );
72
  wp_localize_script( 'vkExUnit_master-js', 'vkExOpt', apply_filters( 'vkExUnit_localize_options', $options ) );
73
  wp_enqueue_script( 'vkExUnit_master-js' );
74
  }
136
 
137
  function veu_inline_styles() {
138
  $dynamic_css = ':root {
139
+ --ver_page_top_button_url:url(' . VEU_DIRECTORY_URI . '/assets/images/to-top-btn-icon.svg' . ');
140
  }
141
  @font-face {
142
  font-weight: normal;
143
  font-style: normal;
144
  font-family: "vk_sns";
145
+ src: url("' . VEU_DIRECTORY_URI . '/inc/sns/icons/fonts/vk_sns.eot?-bq20cj' . '");
146
+ src: url("' . VEU_DIRECTORY_URI . '/inc/sns/icons/fonts/vk_sns.eot?#iefix-bq20cj' . '") format("embedded-opentype"),
147
+ url("' . VEU_DIRECTORY_URI . '/inc/sns/icons/fonts/vk_sns.woff?-bq20cj' . '") format("woff"),
148
+ url("' . VEU_DIRECTORY_URI . '/inc/sns/icons/fonts/vk_sns.ttf?-bq20cj' . '") format("truetype"),
149
+ url("' . VEU_DIRECTORY_URI . '/inc/sns/icons/fonts/vk_sns.svg?-bq20cj#vk_sns' . '") format("svg");
150
  }';
151
 
152
  // delete before after space
readme.txt CHANGED
@@ -4,7 +4,8 @@ Donate link:
4
  Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Facebook Page Plugin, OG tags,
5
  Requires at least: 5.3.0
6
  Tested up to: 5.8.1
7
- Stable tag: 9.66.2.0
 
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -81,6 +82,10 @@ e.g.
81
 
82
  == Changelog ==
83
 
 
 
 
 
84
  = 9.66.2.0 =
85
  * [ Bug fix ][ SNS ] Fix share button error
86
 
4
  Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Facebook Page Plugin, OG tags,
5
  Requires at least: 5.3.0
6
  Tested up to: 5.8.1
7
+ Requires PHP: 5.6
8
+ Stable tag: 9.67.0.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
82
 
83
  == Changelog ==
84
 
85
+ = 9.67.0.0 =
86
+ * [ Other ] Partial refactoring
87
+ * [ Other ][ IE Alert ] Add notice to Edge IE mode
88
+
89
  = 9.66.2.0 =
90
  * [ Bug fix ][ SNS ] Fix share button error
91
 
veu-package-manager.php CHANGED
@@ -7,7 +7,7 @@
7
  * @since 6/Aug/2015
8
  */
9
 
10
- require veu_get_directory() . '/veu-packages.php';
11
 
12
  veu_package_initilate();
13
 
@@ -62,7 +62,7 @@ function veu_package_include() {
62
  if ( ! count( $vkExUnit_packages ) || ! is_array( $vkExUnit_packages ) ) {
63
  return $output; }
64
  $options = veu_get_common_options();
65
- $include_base = veu_get_directory() . '/inc/';
66
 
67
  $use_ex_blocks = false;
68
 
@@ -86,20 +86,19 @@ function veu_package_include() {
86
  add_action( 'init', 'veu_register_block_scripts' );
87
  // ver5.8.0 block_categories_all
88
  if ( function_exists( 'get_default_block_categories' ) && function_exists( 'get_block_editor_settings' ) ) {
89
- add_filter( 'block_categories_all', 'veu_add_block_category', 10, 2 );
90
  } else {
91
- add_filter( 'block_categories', 'veu_add_block_category', 10, 2 );
92
  }
93
  }
94
  }
95
 
96
  function veu_register_block_scripts() {
97
- global $vkExUnit_version;
98
  wp_register_script(
99
  'veu-block',
100
- veu_get_directory_uri( '/assets/js/block.min.js' ),
101
  array(),
102
- $vkExUnit_version,
103
  true
104
  );
105
 
@@ -107,7 +106,7 @@ function veu_register_block_scripts() {
107
  すべてのブロックも含めた vkExUnit_editor_style.css を読み込んでいるのが、
108
  編集画面でシェアボタンのアイコンフォントのファイルパスがズレて表示されなくなるので個別に読み込んでいる
109
  */
110
- wp_register_style( 'vkExUnit_sns_editor_style', veu_get_directory_uri( '/assets/css/vkExUnit_sns_editor_style.css' ), array(), $vkExUnit_version, 'all' );
111
 
112
  if ( function_exists( 'wp_set_script_translations' ) ) {
113
  wp_set_script_translations( 'veu-block', 'veu-block', plugin_dir_path( __FILE__ ) . 'languages' );
7
  * @since 6/Aug/2015
8
  */
9
 
10
+ require VEU_DIRECTORY_PATH . '/veu-packages.php';
11
 
12
  veu_package_initilate();
13
 
62
  if ( ! count( $vkExUnit_packages ) || ! is_array( $vkExUnit_packages ) ) {
63
  return $output; }
64
  $options = veu_get_common_options();
65
+ $include_base = VEU_DIRECTORY_PATH . '/inc/';
66
 
67
  $use_ex_blocks = false;
68
 
86
  add_action( 'init', 'veu_register_block_scripts' );
87
  // ver5.8.0 block_categories_all
88
  if ( function_exists( 'get_default_block_categories' ) && function_exists( 'get_block_editor_settings' ) ) {
89
+ add_filter( 'block_categories_all', 'veu_add_block_category', 10, 2 );
90
  } else {
91
+ add_filter( 'block_categories', 'veu_add_block_category', 10, 2 );
92
  }
93
  }
94
  }
95
 
96
  function veu_register_block_scripts() {
 
97
  wp_register_script(
98
  'veu-block',
99
+ VEU_DIRECTORY_URI . '/assets/js/block.min.js',
100
  array(),
101
+ VEU_VERSION,
102
  true
103
  );
104
 
106
  すべてのブロックも含めた vkExUnit_editor_style.css を読み込んでいるのが、
107
  編集画面でシェアボタンのアイコンフォントのファイルパスがズレて表示されなくなるので個別に読み込んでいる
108
  */
109
+ wp_register_style( 'vkExUnit_sns_editor_style', VEU_DIRECTORY_URI . '/assets/css/vkExUnit_sns_editor_style.css', array(), VEU_VERSION, 'all' );
110
 
111
  if ( function_exists( 'wp_set_script_translations' ) ) {
112
  wp_set_script_translations( 'veu-block', 'veu-block', plugin_dir_path( __FILE__ ) . 'languages' );
vkExUnit.php CHANGED
@@ -1,17 +1,20 @@
1
- <?php
2
- /*
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: 9.66.2.0
7
- * Author: Vektor,Inc.
8
- * Text Domain: vk-all-in-one-expansion-unit
9
- * Domain Path: /languages
10
- * Author URI: https://vektor-inc.co.jp
11
- * GitHub Plugin URI: vektor-inc/VK-All-in-One-Expansion-Unit
12
- * GitHub Plugin URI: https://github.com/vektor-inc/VK-All-in-One-Expansion-Unit
13
- * License: GPL2
14
- */
 
 
 
15
 
16
  /*
17
  Copyright 2015-2021 Vektor,Inc. ( email : kurudrive@gmail.com )
@@ -32,85 +35,28 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
32
 
33
  define( 'VEU_FONT_AWESOME_DEFAULT_VERSION', 5 );
34
  define( 'VEU_DIRECTORY_PATH', dirname( __FILE__ ) );
 
35
 
36
- // Get Plugin version
37
  $data = get_file_data( __FILE__, array( 'version' => 'Version' ) );
38
- global $vkExUnit_version;
39
- $vkExUnit_version = $data['version'];
40
  define( 'VEU_VERSION', $data['version'] );
41
 
42
- function veu_get_directory( $path = '' ) {
43
- return $dirctory = dirname( __FILE__ ) . $path;
44
- }
45
- function veu_get_directory_uri( $path = '' ) {
46
- return plugins_url( $path, __FILE__ );
47
- }
48
-
49
- // PHP Version check
50
- if ( version_compare( phpversion(), '5.4.45' ) >= 0 ) {
51
- require_once veu_get_directory() . '/initialize.php';
52
-
53
- if ( version_compare( phpversion(), '5.6' ) < 0 && is_admin() ) {
54
- add_filter( 'admin_notices', 'veu_phpversion_warning_notice' );
55
- }
56
- } else {
57
- add_filter( 'admin_notices', 'veu_phpversion_error' );
58
- }
59
 
60
  if ( function_exists( 'register_deactivation_hook' ) ) {
61
  register_deactivation_hook( __FILE__, 'veu_uninstall_function' );
62
  }
63
 
 
 
 
 
 
64
  function veu_uninstall_function() {
65
- require_once veu_get_directory() . '/initialize.php';
66
- include veu_get_directory( '/uninstaller.php' );
67
- }
68
-
69
- function veu_phpversion_error( $val ) {
70
- if ( ! current_user_can( 'activate_plugins' ) ) {
71
- return $val;
72
- }
73
- ?>
74
- <div class="notice notice-error error is-dismissible"><p>
75
- <?php
76
- /*
77
- 本来システム名は vkExUnit_get_little_short_name() で引っ張るが、PHPのバージョンが低くて vkExUnit_get_little_short_name() 関数が読み込まれていないので"VK ExUnit"直書き
78
- */
79
- printf(
80
- __( 'The current PHP version(%s) is too old, so VK ExUnit will not work.', 'vk-all-in-one-expansion-unit' ),
81
- phpversion()
82
- );
83
- ?>
84
- <?php _e( 'VK ExUnit supports PHP5.6 or later.', 'vk-all-in-one-expansion-unit' ); ?>
85
- </p></div>
86
- <?php
87
- return $val;
88
  }
89
 
90
- function veu_phpversion_warning_notice( $val ) {
91
- if ( ! current_user_can( 'activate_plugins' ) ) {
92
- return $val;
93
- }
94
- global $hook_suffix;
95
- if ( strpos( $hook_suffix, 'vk-all-in-one-expansion-unit' ) == false ) {
96
- return;
97
- }
98
- ?>
99
- <div class="notice notice-warning is-dismissible"><p>
100
- <?php printf( __( 'Current PHP Version(%s) is old.', 'vk-all-in-one-expansion-unit' ), phpversion() ); ?>
101
- <?php printf( __( '%s supports PHP5.6 or later.', 'vk-all-in-one-expansion-unit' ), veu_get_little_short_name() ); ?>
102
- </p></div>
103
- <?php
104
- return $val;
105
- }
106
-
107
- // add_filter('vk-admin-is-dashboard-active','vk_dashboard_hidden');
108
- // function vk_dashboard_hidden(){
109
- // return false;
110
- // }
111
- // remove_action( 'wp_dashboard_setup',array( 'Vk_Admin', 'dashboard_widget'),1 );
112
- //
113
-
114
  /**
115
  * Modify the height of a specific CSS class to fix an issue in Chrome 77 with Gutenberg.
116
  *
1
+ <?php // phpcs:ignore
2
+ /**
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: 9.67.0.0
7
+ * Requires PHP: 5.6
8
+ * Author: Vektor,Inc.
9
+ * Text Domain: vk-all-in-one-expansion-unit
10
+ * Domain Path: /languages
11
+ * Author URI: https://vektor-inc.co.jp
12
+ * GitHub Plugin URI: vektor-inc/VK-All-in-One-Expansion-Unit
13
+ * GitHub Plugin URI: https://github.com/vektor-inc/VK-All-in-One-Expansion-Unit
14
+ * License: GPL2
15
+ *
16
+ * @package VK All in One Expansion Unit
17
+ */
18
 
19
  /*
20
  Copyright 2015-2021 Vektor,Inc. ( email : kurudrive@gmail.com )
35
 
36
  define( 'VEU_FONT_AWESOME_DEFAULT_VERSION', 5 );
37
  define( 'VEU_DIRECTORY_PATH', dirname( __FILE__ ) );
38
+ define( 'VEU_DIRECTORY_URI', plugins_url( '', __FILE__ ) );
39
 
40
+ // Set Plugin version.
41
  $data = get_file_data( __FILE__, array( 'version' => 'Version' ) );
 
 
42
  define( 'VEU_VERSION', $data['version'] );
43
 
44
+ require_once VEU_DIRECTORY_PATH . '/initialize.php';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
 
46
  if ( function_exists( 'register_deactivation_hook' ) ) {
47
  register_deactivation_hook( __FILE__, 'veu_uninstall_function' );
48
  }
49
 
50
+ /**
51
+ * Uninstall function
52
+ *
53
+ * @return void
54
+ */
55
  function veu_uninstall_function() {
56
+ require_once VEU_DIRECTORY_PATH . '/initialize.php';
57
+ include VEU_DIRECTORY_PATH . '/uninstaller.php';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  }
59
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
60
  /**
61
  * Modify the height of a specific CSS class to fix an issue in Chrome 77 with Gutenberg.
62
  *