-
Notifications
You must be signed in to change notification settings - Fork 5
/
shortcode-in-menus.php
57 lines (54 loc) · 1.34 KB
/
shortcode-in-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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
/**
* Plugin Name: Shortcode in Menus
* Description: Allows you to add shortcodes in WordPress Navigation Menus
* Plugin URI: http://wordpress.org/plugins/shortcode-in-menus/
* Version: 3.5.1
* Author: Gagan Deep Singh
* Author URI: https://gagan0123.com
* Text Domain: shortcode-in-menus
* Domain Path: /languages
*
* @package Shortcode_In_Menus
*/
// If this file is called directly, abort.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( ! defined( 'SHORTCODE_IN_MENUS_PATH' ) ) {
/**
* Path to the plugin directory.
*
* @since 3.2
*/
define( 'SHORTCODE_IN_MENUS_PATH', trailingslashit( plugin_dir_path( __FILE__ ) ) );
}
if ( ! defined( 'SHORTCODE_IN_MENUS_URL' ) ) {
/**
* URL to the plugin directory.
*
* @since 3.2
*/
define( 'SHORTCODE_IN_MENUS_URL', trailingslashit( plugins_url( '', __FILE__ ) ) );
}
if ( ! defined( 'SHORTCODE_IN_MENUS_RES' ) ) {
/**
* Resource version for busting cache.
*
* @since 3.5
*/
define( 'SHORTCODE_IN_MENUS_RES', 1.0 );
}
/**
* The core plugin class
*/
require_once SHORTCODE_IN_MENUS_PATH . 'includes/class-shortcode-in-menus.php';
/**
* Load the admin class if its the admin dashboard
*/
if ( is_admin() ) {
require_once SHORTCODE_IN_MENUS_PATH . 'admin/class-shortcode-in-menus-admin.php';
Shortcode_In_Menus_Admin::get_instance();
} else {
Shortcode_In_Menus::get_instance();
}