VK All in One Expansion Unit - Version 9.34.0.0

Version Description

[ Specification Change ][ page top button ] Change mobile hidden option

Download this release

Release Info

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

Code changes from version 9.33.0.0 to 9.34.0.0

admin/customizer.php CHANGED
@@ -132,7 +132,7 @@ function veu_customize_register_pagespeed( $wp_customize ) {
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
  );
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
@@ -5,12 +5,14 @@
5
  add_action( 'wp_footer', 'veu_add_pagetop' );
6
  function veu_add_pagetop() {
7
  $option = get_option( 'vkExUnit_pagetop' );
8
- if ( ! wp_is_mobile() || ! empty( $option['display_mobile'] ) ) {
9
- echo '<a href="#top" id="page_top" class="page_top_btn">PAGE TOP</a>';
 
 
 
10
  }
11
  }
12
 
13
-
14
  add_action( 'customize_register', 'veu_customize_register_pagetop' );
15
  function veu_customize_register_pagetop( $wp_customize ) {
16
 
@@ -27,7 +29,7 @@ function veu_customize_register_pagetop( $wp_customize ) {
27
  );
28
 
29
  $wp_customize->add_setting(
30
- 'vkExUnit_pagetop[display_mobile]',
31
  array(
32
  'default' => false,
33
  'type' => 'option',
@@ -36,17 +38,16 @@ function veu_customize_register_pagetop( $wp_customize ) {
36
  )
37
  );
38
  $wp_customize->add_control(
39
- 'vkExUnit_pagetop[display_mobile]',
40
  array(
41
- 'label' => __( 'Display on mobile devices', 'vk-all-in-one-expansion-unit' ),
42
  'section' => 'veu_pagetop_setting',
43
- 'settings' => 'vkExUnit_pagetop[display_mobile]',
44
  'type' => 'checkbox',
45
  )
46
  );
47
-
48
  $wp_customize->selective_refresh->add_partial(
49
- 'vkExUnit_pagetop[display_mobile]', array(
50
  'selector' => '.page_top_btn',
51
  'render_callback' => '',
52
  'supports' => [],
5
  add_action( 'wp_footer', 'veu_add_pagetop' );
6
  function veu_add_pagetop() {
7
  $option = get_option( 'vkExUnit_pagetop' );
8
+ if (
9
+ ! wp_is_mobile() ||
10
+ ( wp_is_mobile() && empty( $option['hide_mobile'] ) )
11
+ ) {
12
+ echo '<a href="#top" id="page_top" class="page_top_btn">PAGE TOP</a>';
13
  }
14
  }
15
 
 
16
  add_action( 'customize_register', 'veu_customize_register_pagetop' );
17
  function veu_customize_register_pagetop( $wp_customize ) {
18
 
29
  );
30
 
31
  $wp_customize->add_setting(
32
+ 'vkExUnit_pagetop[hide_mobile]',
33
  array(
34
  'default' => false,
35
  'type' => 'option',
38
  )
39
  );
40
  $wp_customize->add_control(
41
+ 'vkExUnit_pagetop[hide_mobile]',
42
  array(
43
+ 'label' => __( 'Do not display on mobile device', 'vk-all-in-one-expansion-unit' ),
44
  'section' => 'veu_pagetop_setting',
45
+ 'settings' => 'vkExUnit_pagetop[hide_mobile]',
46
  'type' => 'checkbox',
47
  )
48
  );
 
49
  $wp_customize->selective_refresh->add_partial(
50
+ 'vkExUnit_pagetop[hide_mobile]', array(
51
  'selector' => '.page_top_btn',
52
  'render_callback' => '',
53
  'supports' => [],
inc/vk-css-optimize/vk-css-optimize-config.php CHANGED
@@ -13,6 +13,9 @@ function veu_optimize_css() {
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'] ) ) {
@@ -50,7 +53,7 @@ add_action( 'after_setup_theme', 'veu_optimize_css' );
50
 
51
  /**
52
  * CSS Tree Shaking Exclude
53
- *
54
  * @param array $inidata CSS Tree Shaking Exclude Paramator.
55
  */
56
  function veu_css_tree_shaking_exclude_class( $inidata ) {
@@ -58,7 +61,7 @@ function veu_css_tree_shaking_exclude_class( $inidata ) {
58
  'page_top_btn',
59
  'scrolled',
60
  );
61
- $inidata['class'] = array_merge( $inidata['class'], $exclude_classes_array );
62
 
63
  return $inidata;
64
  }
13
 
14
  if ( ! isset( $options['css_optimize'] ) ) {
15
  $options['css_optimize'] = 'default';
16
+ } elseif ( 'optomize-all-css' === $options['css_optimize'] ) {
17
+ $options['css_optimize'] = 'tree-shaking';
18
+ update_option( 'vkExUnit_pagespeeding', $options );
19
  }
20
 
21
  if ( ! empty( $options['css_optimize'] ) && ( 'optomize-all-css' === $options['css_optimize'] || 'tree-shaking' === $options['css_optimize'] ) ) {
53
 
54
  /**
55
  * CSS Tree Shaking Exclude
56
+ *
57
  * @param array $inidata CSS Tree Shaking Exclude Paramator.
58
  */
59
  function veu_css_tree_shaking_exclude_class( $inidata ) {
61
  'page_top_btn',
62
  'scrolled',
63
  );
64
+ $inidata['class'] = array_merge( $inidata['class'], $exclude_classes_array );
65
 
66
  return $inidata;
67
  }
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.1
7
- Stable tag: 9.33.0.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.33.0.0 =
103
  [ Add option ][ page top button ] Add mobile display option
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.1
7
+ Stable tag: 9.34.0.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.34.0.0 =
103
+ [ Specification Change ][ page top button ] Change mobile hidden option
104
+
105
  = 9.33.0.0 =
106
  [ Add option ][ page top button ] Add mobile display option
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.33.0.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.34.0.0
7
  * Author: Vektor,Inc.
8
  * Text Domain: vk-all-in-one-expansion-unit
9
  * Domain Path: /languages