-
Notifications
You must be signed in to change notification settings - Fork 6
/
jw-player-7-for-wp.php
49 lines (40 loc) · 1.42 KB
/
jw-player-7-for-wp.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
<?php
/**
* Plugin Name: JW Player for WordPress
* Plugin URI: https://www.ilghera.com/product/jw-player-7-for-wordpress-premium/
* Description: The complete solution for using JW Player into WordPress.
* It works with the latest version of the famous video player and it gives you full control of all the options available.
* Player customization, social sharing and advertising are just an example.
* Author: ilGhera
* Version: 2.3.4
* Author URI: https://www.ilghera.com/
* Requires at least: 4.0
* Tested up to: 6.4
* Text Domain: jwppp
*/
/*No direct access*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/*Define the plugin version*/
define( 'JWPPP_VERSION', '2.3.4' );
/**
* Fired on the activation.
*/
function jwppp_load() {
if ( ! function_exists( 'is_plugin_active' ) ) {
require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
}
/*Internationalization*/
load_plugin_textdomain( 'jwppp', false, basename( dirname( __FILE__ ) ) . '/languages' );
/*Constants definition*/
define( 'JWPPP_DIR', plugin_dir_path( __FILE__ ) );
define( 'JWPPP_URI', plugin_dir_url( __FILE__ ) );
define( 'JWPPP_INCLUDES', JWPPP_DIR . 'includes/' );
define( 'JWPPP_ADMIN', JWPPP_DIR . 'admin/' );
/*Files required*/
include( JWPPP_ADMIN . 'jwppp-admin.php' );
include( JWPPP_INCLUDES . 'jwppp-functions.php' );
include( JWPPP_DIR . 'jw-widget/jwppp-carousel-config.php' );
}
add_action( 'plugins_loaded', 'jwppp_load', 100 );