VK All in One Expansion Unit - Version 8.0.4

Version Description

[ bug fix ][ main setting page ] media uploader bug fix ( Cope with main setting page suffix changed )

Download this release

Release Info

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

Code changes from version 8.0.3 to 8.0.4

admin_main_setting_page.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
 
3
- /*-------------------------------------------*/
4
- /* Main Setting Page _ メニューに追加
5
  /*-------------------------------------------*/
6
  function vkExUnit_add_main_setting() {
7
  // $capability_required = veu_get_capability_required();
@@ -20,8 +20,8 @@ function vkExUnit_add_main_setting() {
20
  add_action( 'admin_menu', 'vkExUnit_add_main_setting' );
21
 
22
 
23
- /*-------------------------------------------*/
24
- /* Main Setting Page _ ページのフレーム
25
  /*-------------------------------------------*/
26
  function vkExUnit_render_main_frame() {
27
 
@@ -54,8 +54,8 @@ function vkExUnit_render_main_frame() {
54
 
55
  }
56
 
57
- /*-------------------------------------------*/
58
- /* Main Setting Page _ ページのメインエリアの中身
59
  /*-------------------------------------------*/
60
  function vkExUnit_the_main_setting_body() {
61
  global $vkExUnit_options;?>
@@ -99,8 +99,8 @@ function vkExUnit_register_setting( $tab_label = 'tab_label', $option_name, $san
99
  );
100
  }
101
 
102
- /*-------------------------------------------*/
103
- /* Main Setting Page _ 値をアップデート
104
  /*-------------------------------------------*/
105
  function vkExUnit_main_config_sanitaize( $post ) {
106
  global $vkExUnit_options;
1
  <?php
2
 
3
+ /*
4
+ Main Setting Page _ メニューに追加
5
  /*-------------------------------------------*/
6
  function vkExUnit_add_main_setting() {
7
  // $capability_required = veu_get_capability_required();
20
  add_action( 'admin_menu', 'vkExUnit_add_main_setting' );
21
 
22
 
23
+ /*
24
+ Main Setting Page _ ページのフレーム
25
  /*-------------------------------------------*/
26
  function vkExUnit_render_main_frame() {
27
 
54
 
55
  }
56
 
57
+ /*
58
+ Main Setting Page _ ページのメインエリアの中身
59
  /*-------------------------------------------*/
60
  function vkExUnit_the_main_setting_body() {
61
  global $vkExUnit_options;?>
99
  );
100
  }
101
 
102
+ /*
103
+ Main Setting Page _ 値をアップデート
104
  /*-------------------------------------------*/
105
  function vkExUnit_main_config_sanitaize( $post ) {
106
  global $vkExUnit_options;
initialize.php CHANGED
@@ -1,18 +1,15 @@
1
  <?php
2
- /*-------------------------------------------*/
3
- /* Add Parent menu
4
- /*-------------------------------------------*/
5
- /* Load master setting page
6
- /*-------------------------------------------*/
7
- /* Load modules
8
- /*-------------------------------------------*/
9
- /* Add vkExUnit css
10
- /*-------------------------------------------*/
11
- /* Add vkExUnit js
12
  /*-------------------------------------------*/
13
 
14
- /*-------------------------------------------*/
15
- /* Add Parent menu
 
16
  /*-------------------------------------------*/
17
  add_action( 'admin_menu', 'vkExUnit_setting_menu_parent' );
18
  function vkExUnit_setting_menu_parent() {
@@ -31,8 +28,9 @@ function vkExUnit_setting_menu_parent() {
31
  return; }
32
  }
33
 
34
- /*-------------------------------------------*/
35
- /* Load master setting page
 
36
  /*-------------------------------------------*/
37
  function vkExUnit_add_setting_page() {
38
  require dirname( __FILE__ ) . '/admin_active_setting_page.php';
@@ -41,8 +39,9 @@ function vkExUnit_add_setting_page() {
41
  require_once( 'admin_main_setting_page.php' );
42
  require_once( 'admin_other_functions.php' );
43
 
44
- /*-------------------------------------------*/
45
- /* Load modules
 
46
  /*-------------------------------------------*/
47
 
48
  require vkExUnit_get_directory() . '/common_init.php';
@@ -60,10 +59,10 @@ require vkExUnit_get_directory() . '/plugins_admin/content-meta-box.php';
60
 
61
  vkExUnit_package_include(); // package_manager.php
62
 
 
 
 
63
  /*-------------------------------------------*/
64
- /* Add vkExUnit css
65
- /*-------------------------------------------*/
66
- // Add vkExUnit css
67
  add_action( 'wp_enqueue_scripts', 'vkExUnit_print_css' );
68
  function vkExUnit_print_css() {
69
  global $vkExUnit_version;
@@ -80,8 +79,9 @@ function vkExUnit_print_editor_css() {
80
  }
81
  add_action( 'after_setup_theme', 'vkExUnit_print_editor_css' );
82
 
83
- /*-------------------------------------------*/
84
- /* Add vkExUnit js
 
85
  /*-------------------------------------------*/
86
  add_action( 'wp_head', 'vkExUnit_addJs' );
87
  function vkExUnit_addJs() {
@@ -91,10 +91,11 @@ function vkExUnit_addJs() {
91
  wp_enqueue_script( 'vkExUnit_master-js' );
92
  }
93
 
 
 
 
94
  /*-------------------------------------------*/
95
- /* Print admin js
96
- /*-------------------------------------------*/
97
- add_action( 'admin_print_scripts-vk-exunit_page_vkExUnit_main_setting', 'vkExUnit_admin_add_js' );
98
  function vkExUnit_admin_add_js( $hook_suffix ) {
99
  global $vkExUnit_version;
100
  wp_enqueue_media();
@@ -103,20 +104,19 @@ function vkExUnit_admin_add_js( $hook_suffix ) {
103
  wp_enqueue_script( 'vkExUnit_admin_js' );
104
  }
105
 
106
- /*-------------------------------------------*/
107
- /* 管理画面_admin_head JavaScriptのデバッグコンソールにhook_suffixの値を出力
 
108
  /*-------------------------------------------*/
109
 
110
  // add_action("admin_head", 'vkExUnit_suffix2console');
111
  // function vkExUnit_suffix2console() {
112
- // global $hook_suffix;
113
- // if (is_user_logged_in()) {
114
- // $str = "<script type=\"text/javascript\">console.log('%s')</script>";
115
- // printf($str, $hook_suffix);
116
- // }
117
  // }
118
-
119
-
120
  if ( function_exists( 'register_activation_hook' ) ) {
121
  register_activation_hook( __FILE__, 'vkExUnit_install_function' );
122
  }
1
  <?php
2
+ /*
3
+ Add Parent menu
4
+ Load master setting page
5
+ Load modules
6
+ Add vkExUnit css
7
+ Add vkExUnit js
 
 
 
 
8
  /*-------------------------------------------*/
9
 
10
+
11
+ /*
12
+ Add Parent menu
13
  /*-------------------------------------------*/
14
  add_action( 'admin_menu', 'vkExUnit_setting_menu_parent' );
15
  function vkExUnit_setting_menu_parent() {
28
  return; }
29
  }
30
 
31
+
32
+ /*
33
+ Load master setting page
34
  /*-------------------------------------------*/
35
  function vkExUnit_add_setting_page() {
36
  require dirname( __FILE__ ) . '/admin_active_setting_page.php';
39
  require_once( 'admin_main_setting_page.php' );
40
  require_once( 'admin_other_functions.php' );
41
 
42
+
43
+ /*
44
+ Load modules
45
  /*-------------------------------------------*/
46
 
47
  require vkExUnit_get_directory() . '/common_init.php';
59
 
60
  vkExUnit_package_include(); // package_manager.php
61
 
62
+
63
+ /*
64
+ Add vkExUnit css
65
  /*-------------------------------------------*/
 
 
 
66
  add_action( 'wp_enqueue_scripts', 'vkExUnit_print_css' );
67
  function vkExUnit_print_css() {
68
  global $vkExUnit_version;
79
  }
80
  add_action( 'after_setup_theme', 'vkExUnit_print_editor_css' );
81
 
82
+
83
+ /*
84
+ Add vkExUnit js
85
  /*-------------------------------------------*/
86
  add_action( 'wp_head', 'vkExUnit_addJs' );
87
  function vkExUnit_addJs() {
91
  wp_enqueue_script( 'vkExUnit_master-js' );
92
  }
93
 
94
+
95
+ /*
96
+ Print admin js
97
  /*-------------------------------------------*/
98
+ add_action( 'admin_print_scripts-exunit_page_vkExUnit_main_setting', 'vkExUnit_admin_add_js' );
 
 
99
  function vkExUnit_admin_add_js( $hook_suffix ) {
100
  global $vkExUnit_version;
101
  wp_enqueue_media();
104
  wp_enqueue_script( 'vkExUnit_admin_js' );
105
  }
106
 
107
+
108
+ /*
109
+ 管理画面_admin_head JavaScriptのデバッグコンソールにhook_suffixの値を出力
110
  /*-------------------------------------------*/
111
 
112
  // add_action("admin_head", 'vkExUnit_suffix2console');
113
  // function vkExUnit_suffix2console() {
114
+ // global $hook_suffix;
115
+ // if (is_user_logged_in()) {
116
+ // $str = "<script type=\"text/javascript\">console.log('%s')</script>";
117
+ // printf($str, $hook_suffix);
118
+ // }
119
  // }
 
 
120
  if ( function_exists( 'register_activation_hook' ) ) {
121
  register_activation_hook( __FILE__, 'vkExUnit_install_function' );
122
  }
plugins_admin/vk-admin-config.php CHANGED
@@ -1,33 +1,31 @@
1
  <?php
2
 
 
 
3
  /*-------------------------------------------*/
4
- /* Load modules
5
- /*-------------------------------------------*/
6
- if ( ! class_exists( 'Vk_Admin' ) )
7
- {
8
  require_once( 'vk-admin/class-vk-admin.php' );
9
  }
10
 
11
  global $vk_admin_textdomain;
12
  $vk_admin_textdomain = 'vkExUnit';
13
 
14
- /*-------------------------------------------*/
15
- /* $admin_pages の配列にいれる識別値は下記をコメントアウトすればとれる
16
  /*-------------------------------------------*/
17
 
18
  // add_action("admin_head", 'suffix2console');
19
  // function suffix2console() {
20
- // global $hook_suffix;
21
- // if (is_user_logged_in()) {
22
- // $str = "<script type=\"text/javascript\">console.log('%s')</script>";
23
- // printf($str, $hook_suffix);
24
- // }
25
  // }
26
-
27
  $admin_pages = array(
28
  'toplevel_page_vkExUnit_setting_page',
29
- 'vk-exunit_page_vkExUnit_main_setting',
30
  'widgets-php',
31
- 'index.php'
32
  );
33
  Vk_Admin::admin_scripts( $admin_pages );
1
  <?php
2
 
3
+ /*
4
+ Load modules
5
  /*-------------------------------------------*/
6
+ if ( ! class_exists( 'Vk_Admin' ) ) {
 
 
 
7
  require_once( 'vk-admin/class-vk-admin.php' );
8
  }
9
 
10
  global $vk_admin_textdomain;
11
  $vk_admin_textdomain = 'vkExUnit';
12
 
13
+ /*
14
+ $admin_pages の配列にいれる識別値は下記をコメントアウトすればとれる
15
  /*-------------------------------------------*/
16
 
17
  // add_action("admin_head", 'suffix2console');
18
  // function suffix2console() {
19
+ // global $hook_suffix;
20
+ // if (is_user_logged_in()) {
21
+ // $str = "<script type=\"text/javascript\">console.log('%s')</script>";
22
+ // printf($str, $hook_suffix);
23
+ // }
24
  // }
 
25
  $admin_pages = array(
26
  'toplevel_page_vkExUnit_setting_page',
27
+ 'exunit_page_vkExUnit_main_setting',
28
  'widgets-php',
29
+ 'index.php',
30
  );
31
  Vk_Admin::admin_scripts( $admin_pages );
plugins_admin/vk-admin/js/vk_admin.js CHANGED
@@ -133,7 +133,7 @@ function navMove( default_offset, contentHeight ){
133
  /* ページ内リンクで頭出しの余白を適切にする
134
  /*-------------------------------------------*/
135
  jQuery(document).ready(function(){
136
- if(!jQuery('body').hasClass('vk-exunit_page_vkExUnit_main_setting')){ return; }
137
  // 一つ目のセクションの位置を取得
138
  var default_offset = jQuery('.adminMain section:first-child').offset();
139
 
133
  /* ページ内リンクで頭出しの余白を適切にする
134
  /*-------------------------------------------*/
135
  jQuery(document).ready(function(){
136
+ if(!jQuery('body').hasClass('exunit_page_vkExUnit_main_setting')){ return; }
137
  // 一つ目のセクションの位置を取得
138
  var default_offset = jQuery('.adminMain section:first-child').offset();
139
 
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.3
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.3 =
90
  [ Bug fix ][ template-tags ][ vk get_post_type ] no post bug fix
91
  [ Specification change ][ template-tags ][ meta description ] escape & add_filter
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.4
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.4 =
90
+ [ bug fix ][ main setting page ] media uploader bug fix ( Cope with main setting page suffix changed )
91
+
92
  = 8.0.3 =
93
  [ Bug fix ][ template-tags ][ vk get_post_type ] no post bug fix
94
  [ Specification change ][ template-tags ][ meta description ] escape & add_filter
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.3
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.4
7
  * Author: Vektor,Inc.
8
  * Text Domain: vkExUnit
9
  * Domain Path: /languages