VK All in One Expansion Unit - Version 9.31.3.0

Version Description

Download this release

Release Info

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

Code changes from version 9.31.1.0 to 9.31.3.0

admin/customizer.php CHANGED
@@ -131,8 +131,8 @@ function veu_customize_register_pagespeed( $wp_customize ) {
131
  'type' => 'select',
132
  'choices' => array(
133
  'default' => __( 'Nothing to do', 'vk-all-in-one-expansion-unit' ),
134
- 'tree-shaking' => __( 'Optimize All CSS ( Tree Shaking ) ( Beta )', 'vk-all-in-one-expansion-unit' ),
135
- 'optomize-all-css' => __( 'Optimize All CSS ( Tree Shaking + Preload ) ( Beta )', 'vk-all-in-one-expansion-unit' ),
136
  ),
137
  )
138
  );
131
  'type' => 'select',
132
  'choices' => array(
133
  'default' => __( 'Nothing to do', 'vk-all-in-one-expansion-unit' ),
134
+ 'tree-shaking' => __( 'Optimize ExUnit CSS ( Tree Shaking ) ( Beta )', 'vk-all-in-one-expansion-unit' ),
135
+ 'optomize-all-css' => __( 'Optimize ExUnit CSS ( Tree Shaking + Preload ) ( Beta )', 'vk-all-in-one-expansion-unit' ),
136
  ),
137
  )
138
  );
inc/pagetop-btn/pagetop-btn.php CHANGED
@@ -7,19 +7,4 @@
7
  add_action( 'wp_footer', 'veu_add_pagetop' );
8
  function veu_add_pagetop() {
9
  echo '<a href="#top" id="page_top" class="page_top_btn">PAGE TOP</a>';
10
- }
11
-
12
- function veu_pagetop_button() {
13
- $dynamic_css = ':root {
14
- --ver_page_top_button_url:url(' . veu_get_directory_uri( '/assets/images/to-top-btn-icon.svg' ) . ');
15
- }';
16
-
17
- // delete before after space
18
- $dynamic_css = trim( $dynamic_css );
19
- // convert tab and br to space
20
- $dynamic_css = preg_replace( '/[\n\r\t]/', '', $dynamic_css );
21
- // Change multiple spaces to single space
22
- $dynamic_css = preg_replace( '/\s(?=\s)/', '', $dynamic_css );
23
- wp_add_inline_style( 'vkExUnit_common_style', $dynamic_css );
24
- }
25
- add_action( 'wp_head', 'veu_pagetop_button', 5 );
7
  add_action( 'wp_footer', 'veu_add_pagetop' );
8
  function veu_add_pagetop() {
9
  echo '<a href="#top" id="page_top" class="page_top_btn">PAGE TOP</a>';
10
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
inc/sns/sns.php CHANGED
@@ -14,27 +14,28 @@ require_once dirname( __FILE__ ) . '/sns_customizer.php';
14
  add_action( 'init', 'vew_sns_block_setup', 15 );
15
  function vew_sns_block_setup() {
16
 
17
- if ( ! function_exists( 'register_block_type' ) ) { return; }
 
18
 
19
- include dirname(dirname(__FILE__)) . '/vk-blocks/hidden-utils.php';
20
 
21
  register_block_type(
22
  'vk-blocks/share-button',
23
  array(
24
  'attributes' => array(
25
- 'position' => array(
26
  'type' => 'string',
27
  'default' => 'after',
28
  ),
29
  'className' => array(
30
- 'type' => 'string',
31
  ),
32
- $common_attributes
33
  ),
34
  'editor_style' => 'vkExUnit_sns_editor_style',
35
  'editor_script' => 'veu-block',
36
  'render_callback' => 'vew_sns_block_callback',
37
- 'supports' => [],
38
  )
39
  );
40
  }
@@ -283,3 +284,4 @@ function vkExUnit_add_sns_options_page() {
283
  require dirname( __FILE__ ) . '/sns_admin.php';
284
 
285
  }
 
14
  add_action( 'init', 'vew_sns_block_setup', 15 );
15
  function vew_sns_block_setup() {
16
 
17
+ if ( ! function_exists( 'register_block_type' ) ) {
18
+ return; }
19
 
20
+ include dirname( dirname( __FILE__ ) ) . '/vk-blocks/hidden-utils.php';
21
 
22
  register_block_type(
23
  'vk-blocks/share-button',
24
  array(
25
  'attributes' => array(
26
+ 'position' => array(
27
  'type' => 'string',
28
  'default' => 'after',
29
  ),
30
  'className' => array(
31
+ 'type' => 'string',
32
  ),
33
+ $common_attributes,
34
  ),
35
  'editor_style' => 'vkExUnit_sns_editor_style',
36
  'editor_script' => 'veu-block',
37
  'render_callback' => 'vew_sns_block_callback',
38
+ 'supports' => array(),
39
  )
40
  );
41
  }
284
  require dirname( __FILE__ ) . '/sns_admin.php';
285
 
286
  }
287
+
inc/vk-css-optimize/vk-css-optimize-config.php CHANGED
@@ -12,7 +12,7 @@ function veu_optimize_css() {
12
  $options = get_option( 'vkExUnit_pagespeeding' );
13
 
14
  if ( ! isset( $options['css_optimize'] ) ) {
15
- $options['css_optimize'] = 'tree-shaking';
16
  }
17
 
18
  if ( ! empty( $options['css_optimize'] ) && ( 'optomize-all-css' === $options['css_optimize'] || 'tree-shaking' === $options['css_optimize'] ) ) {
12
  $options = get_option( 'vkExUnit_pagespeeding' );
13
 
14
  if ( ! isset( $options['css_optimize'] ) ) {
15
+ $options['css_optimize'] = 'default';
16
  }
17
 
18
  if ( ! empty( $options['css_optimize'] ) && ( 'optomize-all-css' === $options['css_optimize'] || 'tree-shaking' === $options['css_optimize'] ) ) {
initialize.php CHANGED
@@ -133,3 +133,28 @@ function veu_change_enqueue_point_to_footer( $enqueue_point ) {
133
  $enqueue_point = 'wp_footer';
134
  return $enqueue_point;
135
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
133
  $enqueue_point = 'wp_footer';
134
  return $enqueue_point;
135
  }
136
+
137
+ function veu_inline_styles() {
138
+ $dynamic_css = ':root {
139
+ --ver_page_top_button_url:url(' . veu_get_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_get_directory_uri( '/inc/sns/icons/fonts/vk_sns.eot?-bq20cj' ) . '");
146
+ src: url("' . veu_get_directory_uri( '/inc/sns/icons/fonts/vk_sns.eot?#iefix-bq20cj' ) . '") format("embedded-opentype"),
147
+ url("' . veu_get_directory_uri( '/inc/sns/icons/fonts/vk_sns.woff?-bq20cj' ) . '") format("woff"),
148
+ url("' . veu_get_directory_uri( '/inc/sns/icons/fonts/vk_sns.ttf?-bq20cj' ) . '") format("truetype"),
149
+ url("' . veu_get_directory_uri( '/inc/sns/icons/fonts/vk_sns.svg?-bq20cj#vk_sns' ). '") format("svg");
150
+ }';
151
+
152
+ // delete before after space
153
+ $dynamic_css = trim( $dynamic_css );
154
+ // convert tab and br to space
155
+ $dynamic_css = preg_replace( '/[\n\r\t]/', '', $dynamic_css );
156
+ // Change multiple spaces to single space
157
+ $dynamic_css = preg_replace( '/\s(?=\s)/', '', $dynamic_css );
158
+ wp_add_inline_style( 'vkExUnit_common_style', $dynamic_css );
159
+ }
160
+ add_action( 'wp_head', 'veu_inline_styles', 5 );
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: 5.0.0
6
  Tested up to: 5.5.0
7
- Stable tag: 9.31.1.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -99,6 +99,9 @@ e.g.
99
 
100
  == Changelog ==
101
 
 
 
 
102
  = 9.31.1.0 =
103
  [ bug fix ] PageTop css tuning
104
 
4
  Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Facebook Page Plugin, OG tags,
5
  Requires at least: 5.0.0
6
  Tested up to: 5.5.0
7
+ Stable tag: 9.31.2.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
99
 
100
  == Changelog ==
101
 
102
+ = 9.31.2.0 =
103
+ [ Specification Change ] Change CSS Optimize default setting
104
+
105
  = 9.31.1.0 =
106
  [ bug fix ] PageTop css tuning
107
 
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: 9.31.1.0
7
  * Author: Vektor,Inc.
8
  * Text Domain: vk-all-in-one-expansion-unit
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: 9.31.2.0
7
  * Author: Vektor,Inc.
8
  * Text Domain: vk-all-in-one-expansion-unit
9
  * Domain Path: /languages