C:\xampp\htdocs\landing\wp-content\updraft\plugins-old\LayerSlider\layerslider.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<?php

/*
Plugin Name: LayerSlider WP
Plugin URI: https://layerslider.kreaturamedia.com
Description: LayerSlider is a premium multi-purpose content creation and animation platform. Easily create sliders, image galleries, slideshows with mind-blowing effects, popups, landing pages, animated page blocks, or even a full website. It empowers more than 1.5 million active websites on a daily basis with stunning visuals and eye-catching effects.
Version: 6.9.2
Author: Kreatura Media
Author URI: https://kreaturamedia.com
Text Domain: LayerSlider
*/


// Prevent direct file access.
if( ! defined('ABSPATH') ) {
    
header('HTTP/1.0 403 Forbidden');
    exit;
}


// Attempting to detect duplicate versions of LayerSlider to offer
// a more user-friendly error message explaining the situation.
if( defined('LS_PLUGIN_VERSION') || isset($GLOBALS['lsPluginPath']) ) {
    die(
'ERROR: It looks like you already have one instance of LayerSlider installed. WordPress cannot activate and handle two instanced at the same time, you need to remove the old version first.');
}


// Basic configuration
define('LS_DB_TABLE''layerslider');
define('LS_DB_VERSION''6.9.0');
define('LS_PLUGIN_VERSION''6.9.2');


// Path info
// v6.2.0: LS_ROOT_URL is now set in the after_setup_theme action
// hook to provide a way for theme authors to override its value
define('LS_ROOT_FILE'__FILE__);
define('LS_ROOT_PATH'dirname(__FILE__));


// Other constants
define('LS_WP_ADMIN'true);
define('LS_PLUGIN_SLUG'basename(dirname(__FILE__)));
define('LS_PLUGIN_BASE'plugin_basename(__FILE__));
define('LS_MARKETPLACE_ID''1362246');
define('LS_TEXTDOMAIN''LayerSlider');
define('LS_REPO_BASE_URL''https://repository.kreaturamedia.com/v4/');


if( ! 
defined('NL')  ) { define('NL'"\r\n"); }
if( ! 
defined('TAB') ) { define('TAB'"\t");  }


// Load & initialize plugin config class
include LS_ROOT_PATH.'/classes/class.ls.config.php';
LS_Config::init();

// Shared
include LS_ROOT_PATH.'/wp/scripts.php';
include 
LS_ROOT_PATH.'/wp/menus.php';
include 
LS_ROOT_PATH.'/wp/hooks.php';
include 
LS_ROOT_PATH.'/wp/widgets.php';
include 
LS_ROOT_PATH.'/wp/shortcodes.php';
include 
LS_ROOT_PATH.'/wp/compatibility.php';
include 
LS_ROOT_PATH.'/includes/slider_utils.php';
include 
LS_ROOT_PATH.'/classes/class.ls.posts.php';
include 
LS_ROOT_PATH.'/classes/class.ls.sliders.php';
include 
LS_ROOT_PATH.'/classes/class.ls.sources.php';
include 
LS_ROOT_PATH.'/classes/class.ls.popups.php';

// Back-end only
if( is_admin() ) {

    include 
LS_ROOT_PATH.'/wp/actions.php';
    include 
LS_ROOT_PATH.'/wp/activation.php';
    include 
LS_ROOT_PATH.'/wp/notices.php';
    include 
LS_ROOT_PATH.'/classes/class.ls.revisions.php';

    if( 
get_option('ls_tinymce_helper'true ) ) {
        include 
LS_ROOT_PATH.'/wp/tinymce.php';
    }

    
LS_Revisions::init();
}

if( ! 
class_exists('KM_PluginUpdatesV3') ) {
    require_once 
LS_ROOT_PATH.'/classes/class.km.autoupdate.plugins.v3.php';
}

// Register [layerslider] shortcode
LS_Shortcode::registerShortcode();


// Add default skins.
// Reads all sub-directories (individual skins) from the given path.
LS_Sources::addSkins(LS_ROOT_PATH.'/static/layerslider/skins/');

// Popup
LS_Popups::init();


// Setup auto updates. This class also has additional features for
// non-activated sites such as fetching update info.
$GLOBALS['LS_AutoUpdate'] = new KM_PluginUpdatesV3( array(
    
'name'             => 'LayerSlider WP',
    
'repoUrl'         => LS_REPO_BASE_URL,
    
'root'             => LS_ROOT_FILE,
    
'version'         => LS_PLUGIN_VERSION,
    
'itemID'         => LS_MARKETPLACE_ID,
    
'codeKey'         => 'layerslider-purchase-code',
    
'authKey'         => 'layerslider-authorized-site',
    
'channelKey'     => 'layerslider-release-channel',
    
'activationKey' => 'layerslider-activation-id'
));


// Load locales
add_action('plugins_loaded''layerslider_plugins_loaded');
function 
layerslider_plugins_loaded() {
    
load_plugin_textdomain('LayerSlider'falseLS_PLUGIN_SLUG '/locales/' );
}


// Offering a way for authors to override LayerSlider resources by
// triggering filter and action hooks after the theme has loaded.
add_action('after_setup_theme''layerslider_after_setup_theme');
function 
layerslider_after_setup_theme() {

    
// Set the LS_ROOT_URL constant
    
$url apply_filters('layerslider_root_url'plugins_url(''__FILE__));
    
define('LS_ROOT_URL'$url);

    
// Trigger the layerslider_ready action hook
    
layerslider_loaded();

    
// Backwards compatibility for theme authors
    
LS_Config::checkCompatibility();
}



// Sets up LayerSlider as theme-bundled version by
// disabling certain features and hiding premium notices.
function layerslider_set_as_theme() {

    
LS_Config::setAsTheme();
}


function 
layerslider_hide_promotions() {
    
LS_Config::set('promotions'false);
}
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586