PluginProbe
Responsive Menu – Create Mobile-Friendly Menu / 3.1.27
Responsive Menu – Create Mobile-Friendly Menu v3.1.27
4.7.3 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 4.0.0 4.0.1 4.0.2 4.0.3 4.0.4 4.1.0 4.1.1 4.1.10 4.1.11 4.1.12 4.1.2 4.1.3 4.1.4 4.1.5 4.1.6 4.1.7 4.1.8 4.1.9 4.2.0 All 90 releases
responsive-menu / responsive-menu.php

responsive-menu.php in Responsive Menu – Create Mobile-Friendly Menu 3.1.27, at responsive-menu.php

71 lines 2.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /*
4 Plugin Name: Responsive Menu
5 Plugin URI: https://expresstech.io
6 Description: Highly Customisable Responsive Menu Plugin for WordPress
7 Version: 3.1.27
8 Author: ExpressTech
9 Text Domain: responsive-menu
10 Author URI: https://responsive.menu
11 License: GPL2
12 Tags: responsive, menu, responsive menu, mega menu, max mega menu, max menu
13 */
14
15 add_action('admin_init', 'check_responsive_menu_php_version');
16 function check_responsive_menu_php_version() {
17 if(version_compare(PHP_VERSION, '5.4', '<')):
18 add_action('admin_notices', 'responsive_menu_deactivation_text');
19 deactivate_plugins(plugin_basename(__FILE__));
20 endif;
21 }
22
23 function responsive_menu_deactivation_text() {
24 echo '<div class="error"><p>' . sprintf(
25 'Responsive Menu requires PHP 5.4 or higher to function and has therefore been automatically disabled.
26 You are still on %s.%sPlease speak to your web host about upgrading your PHP version.',
27 PHP_VERSION,
28 '<br /><br />'
29 ) . '</p></div>';
30 }
31
32 if(version_compare(PHP_VERSION, '5.4', '<'))
33 return;
34
35 add_action( 'admin_notices', 'og_pro_deactivate_pro_version_notice');
36
37 function og_pro_deactivate_pro_version_notice() {
38 if(get_transient('og-admin-notice-activation-pro')) {
39 ?>
40 <div class="notice notice-error is-dismissible">
41 <p>Responsive Menu Pro has been deactivated<p/>
42
43 </div>
44 <?php
45 delete_transient('og-admin-notice-activation-pro');
46 }
47 }
48
49 function og_deactivate_responsive_menu_pro() {
50
51 $plugin = 'responsive-menu-pro/responsive-menu-pro.php';
52
53 if( is_plugin_active($plugin) ){
54 deactivate_plugins( 'responsive-menu-pro/responsive-menu-pro.php');
55 set_transient( 'og-admin-notice-activation-pro', true, 5 );
56
57 return;
58 }
59 }
60 //to check weather another plugin is acivated or not.
61 register_activation_hook( __FILE__, 'og_deactivate_responsive_menu_pro');
62
63
64 include dirname(__FILE__) . '/vendor/autoload.php';
65 include dirname(__FILE__) . '/config/default_options.php';
66 include dirname(__FILE__) . '/config/services.php';
67 include dirname(__FILE__) . '/config/wp/scripts.php';
68 include dirname(__FILE__) . '/config/routing.php';
69 include dirname(__FILE__) . '/migration.php';
70 include dirname(__FILE__) . '/config/polylang.php';
71