forked from flowplayer/wordpress-flowplayer
/
flowplayer.php
79 lines (72 loc) · 3.58 KB
/
flowplayer.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
<?php
/**
*
* @package Flowplayer HTML5 for WordPress
* @author Ulrich Pogson <ulrich@pogson.ch>
* @license GPL-2.0+
* @link http://flowplayer.org/
* @copyright 2013 Flowplayer Ltd
*
* @wordpress-plugin
* Plugin Name: Flowplayer HTML5 for WordPress
* Plugin URI: http://wordpress.org/plugins/flowplayer5/
* Description: A HTML5 responsive video player plugin. From the makers of Flowplayer. Includes player skins, tracking with Google Analytics, splash images and support for subtitles and multi-resolution videos. You can use your own watermark logo if you own a Commercial Flowplayer license.
* Version: 1.13.0
* Author: Flowplayer ltd.
* Author URI: http://flowplayer.org/
* Text Domain: flowplayer5
* Domain Path: /languages
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
// Plugin Root File
if ( ! defined( 'FP5_PLUGIN_FILE' ) )
define( 'FP5_PLUGIN_FILE', __FILE__ );
require_once( plugin_dir_path( __FILE__ ) . 'includes/class-flowplayer5.php' );
require_once( plugin_dir_path( __FILE__ ) . 'includes/class-flowplayer5-widget.php' );
require_once( plugin_dir_path( __FILE__ ) . 'includes/class-register-post-type.php' );
require_once( plugin_dir_path( __FILE__ ) . 'includes/class-register-taxonomy.php' );
require_once( plugin_dir_path( __FILE__ ) . 'admin/settings/class-register-settings.php' );
require_once( plugin_dir_path( __FILE__ ) . 'admin/settings/class-sanitize-settings.php' );
require_once( plugin_dir_path( __FILE__ ) . 'includes/functions.php' );
require_once( plugin_dir_path( __FILE__ ) . 'includes/deprecated.php' );
if ( is_admin() ) {
require_once( plugin_dir_path( __FILE__ ) . 'admin/class-flowplayer5-admin.php' );
require_once( plugin_dir_path( __FILE__ ) . 'admin/class-flowplayer5-meta-box.php' );
require_once( plugin_dir_path( __FILE__ ) . 'admin/class-flowplayer5-taxonomy-meta.php' );
require_once( plugin_dir_path( __FILE__ ) . 'admin/flowplayer-drive/class-flowplayer-drive.php' );
require_once( plugin_dir_path( __FILE__ ) . 'admin/flowplayer-drive/class-flowplayer-drive-error.php' );
require_once( plugin_dir_path( __FILE__ ) . 'admin/insert-video-button.php' );
if ( ! class_exists( 'Gamajo_Dashboard_Glancer' ) ) {
require plugin_dir_path( __FILE__ ) . 'admin/includes/class-gamajo-dashboard-glancer.php';
}
if ( ! class_exists( 'Gamajo_Dashboard_RightNow' ) ) {
require plugin_dir_path( __FILE__ ) . 'admin/includes/class-gamajo-dashboard-rightnow.php';
}
} else {
require_once( plugin_dir_path( __FILE__ ) . 'frontend/class-flowplayer5-frontend.php' );
require_once( plugin_dir_path( __FILE__ ) . 'frontend/class-flowplayer5-playlist.php' );
require_once( plugin_dir_path( __FILE__ ) . 'frontend/class-flowplayer5-output.php' );
require_once( plugin_dir_path( __FILE__ ) . 'frontend/class-flowplayer5-shortcode.php' );
}
// Register hooks that are fired when the plugin is activated, deactivated, and uninstalled, respectively.
register_activation_hook( __FILE__, array( 'Flowplayer5', 'activate' ) );
register_deactivation_hook( __FILE__, array( 'Flowplayer5', 'deactivate' ) );
Flowplayer5::get_instance();
Flowplayer5_Post_Type::get_instance();
Flowplayer5_Taxonomy::get_instance();
new Flowplayer5_Sanitize_Settings;
if ( is_admin() ) {
Flowplayer5_Admin::get_instance();
Flowplayer5_Video_Meta_Box::get_instance();
$flowplayer_drive = new Flowplayer_Drive();
add_action( 'plugins_loaded', array( $flowplayer_drive, 'run' ) );
new Flowplayer5_Taxonomy_Meta();
} else {
new Flowplayer5_Frontend();
new Flowplayer5_Shortcode();
}