-
Notifications
You must be signed in to change notification settings - Fork 0
/
sharp-slider.php
38 lines (30 loc) · 1.21 KB
/
sharp-slider.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
<?php
/*
Plugin Name: Sharp Slider
Plugin URI: https://smartslider3.com/
Description: The perfect all-in-one responsive slider solution for WordPress.
Version: 3.5.0.10
Requires PHP: 7.0
Requires at least: 4.9
Author: Nextend
Author URI: https://smartslider3.com
License: GPLv3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/
if (!defined('SHARP_SLIDER_PLUGIN_FILE')) {
define('SHARP_SLIDER_PLUGIN_FILE', __FILE__);
}
if (!defined('SMARTSLIDER3_LIBRARY_PATH')) {
define('SMARTSLIDER3_LIBRARY_PATH', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'Nextend');
}
if (!version_compare(PHP_VERSION, '7.0', '>=')) {
require_once SMARTSLIDER3_LIBRARY_PATH . '/WordPress/Fail.php';
add_action('admin_notices', 'smartslider3_fail_php_version');
} else if (!version_compare(get_bloginfo('version'), '4.9', '>=')) {
require_once SMARTSLIDER3_LIBRARY_PATH . '/WordPress/Fail.php';
add_action('admin_notices', 'smartslider3_fail_wp_version');
} else if (!function_exists('smart_slider_3_plugins_loaded')) {
define('NEXTEND_SMARTSLIDER_3_FREE_BASENAME', plugin_basename(__FILE__));
define('NEXTEND_SMARTSLIDER_3_FREE_SLUG', 'smart-slider-3');
require_once dirname(__FILE__) . '/plugin.php';
}