-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwp-simple-menu-icons.php
67 lines (58 loc) · 1.77 KB
/
wp-simple-menu-icons.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
<?php
/**
* Plugin Name: WP Simple Menu Icons
* Plugin URI: https://pressmodo.com
* Description: An easy way to add icons to your navigation menus.
* Author: Sematico LTD
* Author URI: https://sematico.com
* Text Domain: wp-simple-menu-icons
* Domain Path: /languages
* Version: 1.0.0
*
* WP Simple Menu Icons is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* any later version.
*
* WP Simple Menu Icons 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 WP Simple Menu Icons. If not, see <http://www.gnu.org/licenses/>.
*
* @package wp-simple-menu-icons
* @author Sematico LTD
*/
namespace Pressmodo\MenuIcons;
use Pressmodo\Requirements\Requirements;
defined( 'ABSPATH' ) || exit;
if ( file_exists( dirname( __FILE__ ) . '/vendor/autoload.php' ) ) {
require dirname( __FILE__ ) . '/vendor/autoload.php';
}
$requirements = new Requirements(
'WP Simple Menu Icons',
array(
'php' => '7.2',
'wp' => '5.3',
)
);
/**
* Run all the checks and check if requirements has been satisfied.
* If not - display the admin notice and exit from the file.
*/
if ( ! $requirements->satisfied() ) {
$requirements->print_notice();
return;
}
/**
* Finally load the addon.
*/
add_action(
'plugins_loaded',
function () {
$plugin = Plugin::instance( __FILE__ );
add_action( 'plugins_loaded', array( $plugin, 'textdomain' ), 11 );
}
);