-
Notifications
You must be signed in to change notification settings - Fork 1
/
vkExUnit.php
75 lines (63 loc) · 2.51 KB
/
vkExUnit.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?php // phpcs:ignore
/**
* Plugin Name: VK All in One Expansion Unit
* Plugin URI: https://ex-unit.nagoya
* 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!
* Version: 9.100.8.1
* Requires PHP: 7.4
* Requires at least: 6.3
* Author: Vektor,Inc.
* Text Domain: vk-all-in-one-expansion-unit
* Domain Path: /languages
* Author URI: https://vektor-inc.co.jp
* GitHub Plugin URI: vektor-inc/VK-All-in-One-Expansion-Unit
* GitHub Plugin URI: https://github.com/vektor-inc/VK-All-in-One-Expansion-Unit
* License: GPL2
*
* @package VK All in One Expansion Unit
*/
/*
Copyright 2015-2024 Vektor,Inc. ( email : [email protected] )
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
require_once __DIR__ . '/vendor/autoload.php';
// $sample = new Sample();
define( 'VEU_FONT_AWESOME_DEFAULT_VERSION', 5 );
define( 'VEU_DIRECTORY_PATH', __DIR__ );
define( 'VEU_DIRECTORY_URI', plugins_url( '', __FILE__ ) );
// Set Plugin version.
$data = get_file_data( __FILE__, array( 'version' => 'Version' ) );
define( 'VEU_VERSION', $data['version'] );
require_once VEU_DIRECTORY_PATH . '/initialize.php';
if ( function_exists( 'register_deactivation_hook' ) ) {
register_deactivation_hook( __FILE__, 'veu_uninstall_function' );
}
/**
* Uninstall function
*
* @return void
*/
function veu_uninstall_function() {
require_once VEU_DIRECTORY_PATH . '/initialize.php';
include VEU_DIRECTORY_PATH . '/uninstaller.php';
}
/**
* Modify the height of a specific CSS class to fix an issue in Chrome 77 with Gutenberg.
*
* @see https://github.com/WordPress/gutenberg/issues/17406
*/
add_action(
'admin_head',
function () {
echo '<style>.block-editor-writing-flow { height: auto; }</style>'; // phpcs:ignore
}
);