-
Notifications
You must be signed in to change notification settings - Fork 0
/
lsx-mega-menus.php
41 lines (36 loc) · 1.11 KB
/
lsx-mega-menus.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
<?php
/*
* Plugin Name: LSX Mega Menus
* Plugin URI: https://www.lsdev.biz/product/lsx-mega-menus/
* Description: Build mega menus using blocks, comes with existing template parts to help users get started within the site editor.
* Version: 2.0.1
* Author: LightSpeed
* Author URI: https://www.lsdev.biz/
* License: GPL3
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
* Text Domain: lsx-mega-menus
* Domain Path: /languages
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
define('LSX_MEGAMENU_PATH', plugin_dir_path(__FILE__));
define('LSX_MEGAMENU_CORE', __FILE__);
define('LSX_MEGAMENU_URL', plugin_dir_url(__FILE__));
define('LSX_MEGAMENU_VER', '2.0.1');
require_once LSX_MEGAMENU_PATH . 'includes/class-core.php';
/**
* Returns the main instance of LSX_Mega_Menus to prevent the need to use globals.
*
* @return object \LSX\MegaMenus\Core();
*/
function LSX_Mega_Menus() {
global $lsx_mega_menu;
if ( null === $lsx_mega_menu ) {
$lsx_mega_menu = new \LSX\MegaMenus\Core();
$lsx_mega_menu->init();
}
return $lsx_mega_menu;
}
LSX_Mega_Menus();