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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
<?php /* Plugin Name: Smart Slider 3 Plugin URI: https://smartslider3.com/ Description: The perfect all-in-one responsive slider solution for WordPress. Version: 3.3.20 Author: Nextend Author URI: http://nextendweb.com License: GPLv3 or later License URI: http://www.gnu.org/licenses/gpl-3.0.html */
if (!defined('NEXTEND_SMARTSLIDER_3_URL_PATH')) { define('NEXTEND_SMARTSLIDER_3_URL_PATH', 'smart-slider3'); }
if (!version_compare(PHP_VERSION, '5.4', '>=')) { require_once dirname(__FILE__) . '/includes/fail.php'; add_action('admin_notices', 'smartslider3_fail_php_version'); } else if (!version_compare(get_bloginfo('version'), '4.6', '>=')) { require_once dirname(__FILE__) . '/includes/fail.php'; add_action('admin_notices', 'smartslider3_fail_wp_version'); } else if (!class_exists('SmartSlider3', true)) {
add_action('plugins_loaded', 'smart_slider_3_plugins_loaded', 30);
function smart_slider_3_plugins_loaded() {
define('N2PRO', 0); define('N2SSPRO', 0); define('N2GSAP', 0);
define('NEXTEND_SMARTSLIDER_3__FILE__', __FILE__); define('NEXTEND_SMARTSLIDER_3', dirname(__FILE__) . DIRECTORY_SEPARATOR); define('NEXTEND_SMARTSLIDER_3_BASENAME', plugin_basename(__FILE__));
require_once dirname(NEXTEND_SMARTSLIDER_3__FILE__) . DIRECTORY_SEPARATOR . 'includes/smartslider3.php';
add_filter("plugin_action_links_" . NEXTEND_SMARTSLIDER_3_BASENAME, 'N2_SMARTSLIDER_3_UPGRADE_TO_PRO'); function N2_SMARTSLIDER_3_UPGRADE_TO_PRO($links) {
if (function_exists('is_plugin_active') && !is_plugin_active('nextend-smart-slider3-pro/nextend-smart-slider3-pro.php')) { if (!is_array($links)) { $links = array(); } $links[] = '<a href="' . N2SS3::getProUrlPricing() . '" target="_blank">' . "Go Pro" . '</a>'; }
return $links; }
N2Pluggable::addAction('animationFramework', 'N2AssetsPredefined::custom_animation_framework'); } }
|