PluginProbe
Offcanvas Mobile Menu / trunk
Offcanvas Mobile Menu vtrunk
trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8
offcanvas-menu / offcanvas-menu.php

offcanvas-menu.php in Offcanvas Mobile Menu trunk, at offcanvas-menu.php

100 lines 3.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * The plugin bootstrap file
4 *
5 * This file is read by WordPress to generate the plugin information in the plugin
6 * admin area. This file also includes all of the dependencies used by the plugin,
7 * registers the activation and deactivation functions, and defines a function
8 * that starts the plugin.
9 *
10 * @link https://www.enweby.com/
11 * @since 1.0.0
12 * @package Offcanvas_Menu
13 *
14 * @wordpress-plugin
15 * Plugin Name: Offcanvas Menu
16 * Plugin URI: https://www.enweby.com/shop/wordpress-plugins/offcanvas-menu/
17 * Description: Lightweight plugin to display offcanvas mobile menu on WordPress websites.
18 * Version: 1.0.9
19 * Author: Enweby
20 * Author URI: https://www.enweby.com/
21 * License: GPL-2.0+
22 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
23 * Text Domain: offcanvas-menu
24 * Domain Path: /languages
25 */
26
27 // If this file is called directly, abort.
28 if ( ! defined( 'WPINC' ) ) {
29 die;
30 }
31
32 /**
33 * Currently plugin version.
34 * Start at version 1.0.0 and use SemVer - https://semver.org
35 * Rename this for your plugin and update it as you release new versions.
36 */
37 define( 'OFFCANVAS_MENU_VERSION', '1.0.9' );
38
39 /**
40 * Plugin base name.
41 * used to locate plugin resources primarily code files
42 * Start at version 1.0.0
43 */
44 define( 'OFFCANVAS_MENU_BASE_NAME', plugin_basename( __FILE__ ) );
45
46 /**
47 * Plugin base dir path.
48 * used to locate plugin resources primarily code files
49 * Start at version 1.0.0
50 */
51 defined( 'OFFCANVAS_MENU_DIR' ) || define( 'OFFCANVAS_MENU_DIR', plugin_dir_path( __FILE__ ) );
52
53 define( 'OFFCANVAS_MENU_PLUGIN_NAME', 'offcanvas-menu' );
54
55 define( 'OFFCANVAS_MENU_PLUGIN_VERSION', '1.0.9' );
56
57 /**
58 * The code that runs during plugin activation.
59 * This action is documented in includes/class-offcanvas-menu-activator.php
60 */
61 function activate_offcanvas_menu() {
62 require_once plugin_dir_path( __FILE__ ) . 'includes/class-offcanvas-menu-activator.php';
63 Offcanvas_Menu_Activator::activate();
64 }
65
66 /**
67 * The code that runs during plugin deactivation.
68 * This action is documented in includes/class-offcanvas-menu-deactivator.php
69 */
70 function deactivate_offcanvas_menu() {
71 require_once plugin_dir_path( __FILE__ ) . 'includes/class-offcanvas-menu-deactivator.php';
72 Offcanvas_Menu_Deactivator::deactivate();
73 }
74
75 register_activation_hook( __FILE__, 'activate_offcanvas_menu' );
76 register_deactivation_hook( __FILE__, 'deactivate_offcanvas_menu' );
77
78 /**
79 * The core plugin class that is used to define internationalization,
80 * admin-specific hooks, and public-facing site hooks.
81 */
82 require plugin_dir_path( __FILE__ ) . 'includes/class-offcanvas-menu.php';
83
84 /**
85 * Begins execution of the plugin.
86 *
87 * Since everything within the plugin is registered via hooks,
88 * then kicking off the plugin from this point in the file does
89 * not affect the page life cycle.
90 *
91 * @since 1.0.0
92 */
93 function run_offcanvas_menu() {
94
95 $plugin = new Offcanvas_Menu();
96 $plugin->run();
97
98 }
99 run_offcanvas_menu();
100