PluginProbe
Responsive Menu – Create Mobile-Friendly Menu / 3.1.8
Responsive Menu – Create Mobile-Friendly Menu v3.1.8
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.8, at responsive-menu.php

37 lines 1.5 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://responsive.menu
6 Description: Highly Customisable Responsive Menu Plugin for WordPress
7 Version: 3.1.8
8 Author: Peter Featherstone
9 Text Domain: responsive-menu
10 Author URI: https://peterfeatherstone.com
11 License: GPL2
12 Tags: responsive, menu, responsive 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('Responsive Menu requires PHP 5.4 or higher to function and has therefore been automatically disabled. You are still on %s.%sPlease speak to your webhost about upgrading your PHP version. For more information please visit %s', PHP_VERSION, '<br /><br />', '<a target="_blank" href="https://responsive.menu/why-php-5-4/">this page</a>.') . '</p></div>';
25 }
26
27 if(version_compare(PHP_VERSION, '5.4', '<'))
28 return;
29
30 include dirname(__FILE__) . '/vendor/autoload.php';
31 include dirname(__FILE__) . '/config/default_options.php';
32 include dirname(__FILE__) . '/config/services.php';
33 include dirname(__FILE__) . '/config/wp/scripts.php';
34 include dirname(__FILE__) . '/config/routing.php';
35 include dirname(__FILE__) . '/migration.php';
36 include dirname(__FILE__) . '/config/polylang.php';
37