-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathresponsive-addons-for-elementor.php
68 lines (61 loc) · 2.43 KB
/
responsive-addons-for-elementor.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
<?php
/**
* Plugin Name: Responsive Addons for Elementor
* Plugin URI: https://cyberchimps.com/responsive-addons-for-elementor/
* Description: Responsive Addons for Elementor plugin adds Elementor widgets and seamlessly integrates with any Elementor Package (Free, Pro). It is compatible with all popular WordPress themes.
* Version: 1.6.5
* Author: Cyberchimps.com
* Author URI: https://cyberchimps.com/responsive-addons-for-elementor/
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: responsive-addons-for-elementor
* Domain Path: /languages
*
* Elementor tested up to: 3.27
* Elementor Pro tested up to: 3.25
*
* @package responsive-addons-for-elementor
*/
// If this file is called directly, abort.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
define( 'RAEL_VER', '1.6.5' );
define( 'RAEL_DIR', plugin_dir_path( __FILE__ ) );
define( 'RAEL_URL', plugins_url( '/', __FILE__ ) );
define( 'RAEL_PATH', plugin_basename( __FILE__ ) );
define( 'RAEL_ASSETS_URL', RAEL_URL . 'assets/' );
define( 'RAEL_PLUGIN_SHORT_NAME', 'RAEL' );
if ( 'active' === get_option( 'elementor_experiment-e_swiper_latest' ) ) {
define( 'RAEL_ELEMENTOR_SWIPER', true );
define( 'RAEL_SWIPER_CONTAINER', '' );
} else if(defined( 'ELEMENTOR_VERSION' ) && version_compare( ELEMENTOR_VERSION, '3.25.6', '>' )) {
define( 'RAEL_ELEMENTOR_SWIPER', true );
define( 'RAEL_SWIPER_CONTAINER', '' );
} else {
define( 'RAEL_SWIPER_CONTAINER', '-container' );
}
require_once RAEL_DIR . 'includes/class-responsive-addons-for-elementor.php';
/**
* The code that runs during plugin activation.
*/
function responsive_addons_for_elementor_activate() {
include_once plugin_dir_path( __FILE__ ) . 'includes/class-responsive-addons-for-elementor-activator.php';
Responsive_Addons_For_Elementor_Activator::activate();
}
/**
* The code that runs during plugin deactivation.
*/
function responsive_addons_for_elementor_deactivate() {
include_once plugin_dir_path( __FILE__ ) . 'includes/class-responsive-addons-for-elementor-deactivator.php';
Responsive_Addons_For_Elementor_Deactivator::deactivate();
}
register_activation_hook( __FILE__, 'responsive_addons_for_elementor_activate' );
register_deactivation_hook( __FILE__, 'responsive_addons_for_elementor_deactivate' );
/**
* Load the Plugin Class.
*/
function responsive_addons_for_elementor_init() {
Responsive_Addons_For_Elementor::instance();
}
responsive_addons_for_elementor_init();