| 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 |
|