-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmega-menu-block.php
More file actions
44 lines (36 loc) · 1.34 KB
/
mega-menu-block.php
File metadata and controls
44 lines (36 loc) · 1.34 KB
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
<?php
/**
* Plugin Name: Mega Menu Block
* Plugin URI: https://github.com/vigetlabs/mega-menu-block
* Description: A custom block that enables mega menu functionality within Navigation blocks, allowing any blocks to be added as children of Navigation items.
* Version: 1.0.1
* Requires at least: 6.0
* Requires PHP: 7.4
* Author: Viget
* Author URI: https://viget.com
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: mega-menu-block
* Domain Path: /languages
*
* @package MegaMenuBlock
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Plugin version.
const MEGA_MENU_BLOCK_VERSION = '1.0.0';
// Plugin file.
const MEGA_MENU_BLOCK_PLUGIN_FILE = __FILE__;
// Plugin directory path.
define( 'MEGA_MENU_BLOCK_PATH', plugin_dir_path( MEGA_MENU_BLOCK_PLUGIN_FILE ) );
// Plugin directory URL.
define( 'MEGA_MENU_BLOCK_URL', plugin_dir_url( MEGA_MENU_BLOCK_PLUGIN_FILE ) );
// Include required files.
require_once MEGA_MENU_BLOCK_PATH . 'includes/class-registration.php';
require_once MEGA_MENU_BLOCK_PATH . 'includes/class-renderer.php';
// Include the main plugin class.
require_once MEGA_MENU_BLOCK_PATH . 'includes/class-block.php';
// Initialize the plugin.
MegaMenuBlock\Block::get_instance();