PluginProbe ʕ •ᴥ•ʔ
VK All in One Expansion Unit / 9.99.2.1
VK All in One Expansion Unit v9.99.2.1
9.117.5 9.117.4 9.117.3 9.117.2 9.117.1 9.117.0 9.116.0 9.115.1 9.115.0 9.86.0.0 9.86.0.1 9.86.1.0 9.86.2.0 9.87.0.0 9.87.0.1 9.87.1.0 9.87.2.0 9.87.2.1 9.87.3.0 9.88.0.0 9.88.1.0 9.88.2.0 9.89.0.0 9.89.0.1 9.89.1.0 9.9.0.0 9.90.0.0 9.90.0.1 9.90.1.0 9.90.2.0 9.90.3.0 9.90.3.1 9.90.3.2 9.91.0.0 9.91.0.1 9.91.1.0 9.92.0.0 9.92.0.1 9.92.1.0 9.92.2.0 9.92.2.1 9.92.3.0 9.92.3.1 9.92.4.0 9.92.4.1 9.93.0.0 9.93.0.1 9.93.0.3 9.93.0.4 9.93.1.0 9.93.2.0 9.93.3.0 9.94.0.0 9.94.0.1 9.94.1.0 9.94.1.1 9.94.2.0 9.94.2.1 9.95.0.0 9.95.0.1 9.96.0.0 9.96.0.1 9.97.0.0 9.97.0.1 9.97.1.0 9.97.1.1 9.97.2.0 9.97.2.1 9.98.0.0 9.98.0.1 9.98.1.0 9.99.0.1 9.99.0.2 9.99.1.0 9.99.2.0 9.99.2.1 9.99.3.0 9.99.4.0 9.99.4.1 9.99.5.0 9.99.5.1 9.99.6.0 9.81.0.0 9.81.0.1 9.81.1.0 9.81.2.0 9.81.3.0 9.82.0.0 9.83.0.0 9.83.1.0 9.84.0.0 9.84.1.0 9.84.2.0 9.84.3.0 9.85.0.0 9.85.0.1 3.8.0 9.111.0.0 3.8.1 9.111.0.1 3.8.2 9.112.0.0 3.9.0 9.112.0.1 3.9.1 9.112.1.0 4.0.0 9.112.1.1 4.0.1 9.112.2.0 4.0.10 9.112.2.1 4.0.2 9.112.3.0 4.0.3 9.112.4.0 4.0.4 9.113.0.0 4.0.5 9.113.0.1 4.0.6 9.113.1.0 4.0.8 9.113.1.1 4.0.9 9.113.2.0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71.1.1 2.1.3 9.100.6.1 9.71.1.3 2.1.4 9.100.7.0 9.71.1.7 2.1.5 9.100.8.0 9.72.0.0 2.1.6 9.100.8.1 9.72.0.1 2.2.4 9.101.0.0 9.73.0.0 2.2.5 9.101.0.1 9.73.0.1 2.3.0 9.101.0.2 9.73.1.0 2.3.1 9.101.0.3 9.73.2.0 2.3.2 9.102.0.0 9.73.3.0 2.3.3 9.102.0.1 9.74.0.0 2.3.4 9.103.0.0 9.74.1.0 2.3.5 9.103.0.1 9.74.2.0 2.3.6 9.103.0.2 9.75.0.0 3.0.0 9.103.1.0 9.76.0.0 3.0.1 9.103.1.1 9.76.0.1 3.0.2 9.104.0.0 9.76.1.0 3.1.0 9.104.0.1 9.76.2.0 3.1.1 9.104.1.0 9.76.3.0 3.1.2 9.104.1.1 9.77.0.0 3.1.3 9.105.0.0 9.78.0.0 3.1.4 9.105.0.1 9.78.0.1 3.2.0 9.105.1.0 9.78.1.0 3.2.1 9.106.0.0 9.79.0.0 3.3.0 9.106.0.1 9.8.0.1 3.4.0 9.106.1.0 9.8.0.3 3.5.0 9.107.0.0 9.8.1.0 3.5.1 9.107.0.1 9.8.2.0 3.5.2 9.107.1.0 9.8.3.0 3.5.3 9.107.1.1 9.80.0.0 3.6.0 9.108.0.0 9.80.1.0 3.6.1 9.108.2.0 3.6.2 9.108.2.2 3.6.3 9.109.0.0 3.7.0 9.109.0.1 3.7.1 9.11.0.0 3.7.10 9.11.1.0 3.7.2 9.11.2.0 3.7.3 9.11.3.0 3.7.4 9.11.4.0 3.7.5 9.11.5.0 3.7.6 9.110.0.0 3.7.7 9.110.0.1 3.7.8 9.110.1.0 3.7.9 9.110.1.1
vk-all-in-one-expansion-unit / initialize.php
vk-all-in-one-expansion-unit Last commit date
admin 1 year ago assets 1 year ago inc 1 year ago vendor 1 year ago .eslintignore 3 years ago LICENSE 6 years ago delete-old-option-meta.php 4 years ago initialize.php 1 year ago playwright.config.ts 3 years ago readme.txt 1 year ago screenshot-1.png 6 years ago screenshot-2.png 6 years ago uninstaller.php 1 year ago veu-package-manager.php 3 years ago veu-packages.php 2 years ago vkExUnit.php 1 year ago webpack.config.js 3 years ago
initialize.php
149 lines
1 <?php
2 /*
3 Delete old function data
4 Load modules
5 Add vkExUnit css
6 Add vkExUnit js
7 /*-------------------------------------------*/
8
9 /*
10 Delete old function data
11 /*-------------------------------------------*/
12 require VEU_DIRECTORY_PATH . '/veu-package-manager.php';
13 $options = get_option( 'veu_deprecated' );
14 if ( empty( $options['9.72.0'] ) ) {
15 require VEU_DIRECTORY_PATH . '/delete-old-option-meta.php';
16 $options['9.72.0'] = 'done';
17 update_option( 'veu_deprecated', $options );
18 }
19
20 /*
21 Load modules
22 /*
23 -------------------------------------------*/
24 // template-tags-veuでpackageの関数を使うので package-managerを�
25 �に読み込んでいる
26 require_once VEU_DIRECTORY_PATH . '/inc/template-tags/template-tags-config.php';
27 require_once VEU_DIRECTORY_PATH . '/inc/common-block.php';
28 require_once VEU_DIRECTORY_PATH . '/admin/admin.php';
29 require VEU_DIRECTORY_PATH . '/inc/footer-copyright-change.php';
30
31 veu_package_include(); // package_manager.php
32
33 /*
34 Add vkExUnit css
35 /*-------------------------------------------*/
36 add_action( 'after_setup_theme', 'veu_load_css_action' );
37 function veu_load_css_action() {
38 $hook_point = apply_filters( 'veu_enqueue_point_common_css', 'wp_enqueue_scripts' );
39 // priority 5 : possible to overwrite from theme design skin
40 add_action( $hook_point, 'veu_print_css', 5 );
41 }
42
43 add_action( 'wp_enqueue_scripts', 'vwu_register_css', 3 );
44 add_action( 'admin_enqueue_scripts', 'vwu_register_css', 3 );
45 function vwu_register_css() {
46 $options = veu_get_common_options();
47
48 wp_register_style( 'vkExUnit_common_style', plugins_url( '', __FILE__ ) . '/assets/css/vkExUnit_style.css', array(), VEU_VERSION, 'all' );
49 }
50
51 function veu_print_css() {
52 wp_enqueue_style( 'vkExUnit_common_style' );
53 }
54
55 function veu_print_editor_css() {
56 add_editor_style( plugins_url( '', __FILE__ ) . '/assets/css/vkExUnit_editor_style.css' );
57 }
58 add_action( 'after_setup_theme', 'veu_print_editor_css' );
59
60 // ブロックエディタ用のCSS読み込み( ↑ だけだと効かない )
61 function veu_print_block_editor_css() {
62 wp_register_style(
63 'veu-block-editor',
64 plugins_url( '', __FILE__ ) . '/assets/css/vkExUnit_editor_style.css',
65 array(),
66 filemtime( plugin_dir_path( __FILE__ ) )
67 );
68 }
69 add_action( 'init', 'veu_print_block_editor_css' );
70
71 /*
72 Add vkExUnit js
73 -------------------------------------------*/
74 add_action( 'wp_enqueue_scripts', 'veu_print_js' );
75 function veu_print_js() {
76
77 $options = apply_filters( 'vkExUnit_master_js_options', array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) );
78
79 wp_register_script( 'vkExUnit_master-js', plugins_url( '', __FILE__ ) . '/assets/js/all.min.js', array(), VEU_VERSION, true );
80 wp_localize_script( 'vkExUnit_master-js', 'vkExOpt', apply_filters( 'vkExUnit_localize_options', $options ) );
81 wp_enqueue_script( 'vkExUnit_master-js' );
82 }
83
84 if ( function_exists( 'register_activation_hook' ) ) {
85 register_activation_hook( dirname( __FILE__ ) . '/vkExUnit.php', 'veu_install_function' );
86 }
87
88 function veu_install_function() {
89 $opt = get_option( 'vkExUnit_common_options' );
90 if ( ! $opt ) {
91 add_option( 'vkExUnit_common_options', veu_get_common_options_default() );
92 }
93 }
94
95 /**
96 * change old options
97 */
98 function change_old_options() {
99 $option = get_option( 'vkExUnit_pagespeeding' );
100
101 if ( isset( $option['common'] ) ) {
102 $option['css_exunit'] = true;
103 unset( $option['common'] );
104 }
105
106 if ( isset( $option['css_exunit'] ) ) {
107 $option['css_optimize'] = 'tree-shaking';
108 unset( $option['css_exunit'] );
109 }
110
111 if ( isset( $option['js_footer'] ) ) {
112 unset( $option['js_footer'] );
113 }
114
115 update_option( 'vkExUnit_pagespeeding', $option );
116
117 }
118 add_action( 'after_setup_theme', 'change_old_options', 4 );
119
120 function veu_change_enqueue_point_to_footer( $enqueue_point ) {
121 $enqueue_point = 'wp_footer';
122 return $enqueue_point;
123 }
124
125 function veu_inline_styles() {
126 $dynamic_css = ':root {
127 --ver_page_top_button_url:url(' . VEU_DIRECTORY_URI . '/assets/images/to-top-btn-icon.svg' . ');
128 }
129 @font-face {
130 font-weight: normal;
131 font-style: normal;
132 font-family: "vk_sns";
133 src: url("' . VEU_DIRECTORY_URI . '/inc/sns/icons/fonts/vk_sns.eot?-bq20cj' . '");
134 src: url("' . VEU_DIRECTORY_URI . '/inc/sns/icons/fonts/vk_sns.eot?#iefix-bq20cj' . '") format("embedded-opentype"),
135 url("' . VEU_DIRECTORY_URI . '/inc/sns/icons/fonts/vk_sns.woff?-bq20cj' . '") format("woff"),
136 url("' . VEU_DIRECTORY_URI . '/inc/sns/icons/fonts/vk_sns.ttf?-bq20cj' . '") format("truetype"),
137 url("' . VEU_DIRECTORY_URI . '/inc/sns/icons/fonts/vk_sns.svg?-bq20cj#vk_sns' . '") format("svg");
138 }';
139
140 // delete before after space
141 $dynamic_css = trim( $dynamic_css );
142 // convert tab and br to space
143 $dynamic_css = preg_replace( '/[\n\r\t]/', '', $dynamic_css );
144 // Change multiple spaces to single space
145 $dynamic_css = preg_replace( '/\s(?=\s)/', '', $dynamic_css );
146 wp_add_inline_style( 'vkExUnit_common_style', $dynamic_css );
147 }
148 add_action( 'wp_head', 'veu_inline_styles', 5 );
149