-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy pathmasvideos.php
38 lines (34 loc) · 967 Bytes
/
masvideos.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
<?php
/**
* Plugin Name: MAS Videos
* Plugin URI: https://github.com/madrasthemes/masvideos
* Description: This is a free plugin that allows you to to create and list movies, videos and TV shows.
* Version: 1.3.0
* Author: MadrasThemes
* Author URI: https://madrasthemes.com/
* Text Domain: masvideos
* Domain Path: /languages/
*
* @package MasVideos
* @category Core
* @author Madras Themes
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
// Define MASVIDEOS_PLUGIN_FILE.
if ( ! defined( 'MASVIDEOS_PLUGIN_FILE' ) ) {
define( 'MASVIDEOS_PLUGIN_FILE', __FILE__ );
}
// Include the main MasVideos class.
if ( ! class_exists( 'MasVideos' ) ) {
include_once dirname( MASVIDEOS_PLUGIN_FILE ) . '/includes/class-masvideos.php';
}
/**
* Unique access instance for MasVideos class
*/
function MasVideos() {
return MasVideos::instance();
}
// Global for backwards compatibility.
$GLOBALS['masvideos'] = MasVideos();