-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
advanced-responsive-video-embedder.php
executable file
·67 lines (63 loc) · 2.15 KB
/
advanced-responsive-video-embedder.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
<?php
/**
* Plugin Name: Advanced Responsive Video Embedder for Rumble, Odysee, YouTube, Vimeo, Kick ...
* Plugin URI: https://nextgenthemes.com/plugins/arve-pro/
* Description: Easy responsive video embeds via URL (like WordPress) or Shortcodes. Supports almost anything you can imagine.
* Version: 10.3.4
* Requires PHP: 7.4
* Requires at least: 6.6
* Author: Nicolas Jonas
* Author URI: https://nextgenthemes.com
* License: GPL-3.0
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
* Text Domain: advanced-responsive-video-embedder
*
* @package Nextgenthemes/ARVE
* @author Nicolas Jonas
* @license GPL 3.0
* @link https://nextgenthemes.com
*/
namespace Nextgenthemes\ARVE;
const VERSION = '10.3.4';
const PRO_VERSION_REQUIRED = '6.0.0-alpha3';
const NUM_TRACKS = 3;
const PLUGIN_FILE = __FILE__;
const PLUGIN_DIR = __DIR__;
const VIDEO_FILE_EXTENSIONS = array( 'av1mp4', 'mp4', 'm4v', 'webm', 'ogv' );
const PREMIUM_SECTIONS = array( 'pro', 'privacy', 'sticky_videos', 'random_video', 'videojs' );
const PREMIUM_URL_PREFIX = 'https://nextgenthemes.com/plugins/arve-';
const DEFAULT_MAXWIDTH = 900;
const OEMBED_HTML_PRIORITY = -5;
const VIEW_SCRIPT_HANDLES = array( 'arve', 'arve-pro', 'arve-sticky-videos', 'arve-random-video' );
// For error messages and stuff on the admin screens.
const ALLOWED_HTML = array(
'h1' => array(),
'h2' => array(),
'h3' => array(),
'h4' => array(),
'h5' => array(),
'h6' => array(),
'a' => array(
'href' => true,
'target' => true,
'title' => true,
),
'abbr' => array( 'title' => true ),
'p' => array(),
'br' => array(),
'em' => array(),
'strong' => array(),
'code' => array(),
'ul' => array(),
'li' => array(),
'pre' => array(),
'div' => array( 'class' => true ),
);
if ( defined( 'WP_INSTALLING' ) && WP_INSTALLING ) {
return;
}
if ( ! defined( 'ABSPATH' ) ) {
return; // no exit for use in build script
}
require_once __DIR__ . '/vendor/autoload_packages.php';
require_once __DIR__ . '/php/init.php';