revslider-particles-addon.php
1.17 KB
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
<?php
/*
Plugin Name: Slider Revolution Particles Effect
Plugin URI: http://www.themepunch.com/
Description: Add interactive particle animations to your sliders
Author: ThemePunch
Version: 6.7.4
Author URI: http://themepunch.com
*/
// delete_option('revslider_addon_particles_templates');
// If this file is called directly, abort.
if(!defined('WPINC')) die;
define('RS_PARTICLES_PLUGIN_PATH', plugin_dir_path(__FILE__));
define('RS_PARTICLES_PLUGIN_URL', str_replace('index.php', '', plugins_url( 'index.php', __FILE__)));
require_once(RS_PARTICLES_PLUGIN_PATH . 'includes/base.class.php');
/**
* handle everyting by calling the following function *
**/
function rs_particles_init(){
new RsParticlesBase();
}
/**
* call all needed functions on plugins loaded *
**/
add_action('plugins_loaded', 'rs_particles_init');
register_activation_hook( __FILE__, 'rs_particles_init');
//build js global var for activation
add_filter( 'revslider_activate_addon', array('RsAddOnParticlesBase','get_data'),10,2);
// get help definitions on-demand. merges AddOn definitions with core revslider definitions
add_filter( 'revslider_help_directory', array('RsAddOnParticlesBase','get_help'),10,1);
?>