-
Notifications
You must be signed in to change notification settings - Fork 19
/
featured-video-plus.php
78 lines (59 loc) · 1.92 KB
/
featured-video-plus.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
<?php
/*
Plugin Name: Featured Video Plus
Plugin URI: http://yrnxt.com/wordpress/featured-video-plus/
Description: Add Featured Videos to your posts and pages.
Version: 2.3.3
Author: Alexander Höreth
Author URI: http://yrnxt.com
Text Domain: featured-video-plus
Domain Path: /lng
License: GPL-2.0
Copyright 2009-2016 Alexander Höreth (email: [email protected])
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2,
as published by the Free Software Foundation.
You may NOT assume that you can use any other version of the GPL.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
The license for this software can likely be found here:
http://www.gnu.org/licenses/gpl-2.0.html
*/
// ********************
// CONSTANTS
if ( ! defined( 'FVP_VERSION' ) ) {
define( 'FVP_VERSION', '2.3.3' );
}
$pathinfo = pathinfo( dirname( plugin_basename( __FILE__ ) ) );
if ( ! defined( 'FVP_NAME' ) ) {
define( 'FVP_NAME', $pathinfo['filename'] );
}
if ( ! defined( 'FVP_DIR' ) ) {
define( 'FVP_DIR', plugin_dir_path( __FILE__ ) );
}
if ( ! defined( 'FVP_URL' ) ) {
define( 'FVP_URL', plugins_url( FVP_NAME ) . '/' );
}
// ********************
// BACKEND
if ( is_admin() ) {
require_once( FVP_DIR . 'php/class-backend.php' );
$featured_video_plus = new FVP_Backend();
// SETTINGS
require_once( FVP_DIR . 'php/class-settings.php' );
new FVP_Settings();
// HELP TABS
require_once( FVP_DIR . 'php/class-help.php' );
new FVP_Help();
}
// ********************
// FRONTEND
if ( ! is_admin() ) {
require_once( FVP_DIR . 'php/class-frontend.php' );
$featured_video_plus = new FVP_Frontend();
}
// ********************
// PUBLIC API
include_once( FVP_DIR . 'php/functions.php' );