-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
mihdan-lite-youtube-embed.php
35 lines (30 loc) · 1.26 KB
/
mihdan-lite-youtube-embed.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
<?php
/**
* Plugin Name: Lite Video Embed (YouTube, RuTube)
* Description: A faster YouTube/RuTube embed. Renders faster than a sneeze.
* Version: 1.8.0.3
* Author: Mikhail Kobzarev
* Author URI: https://www.kobzarev.com/
* Plugin URI: https://wordpress.org/plugins/mihdan-lite-youtube-embed/
* GitHub Plugin URI: https://github.com/mihdan/mihdan-lite-video-embed
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Donate link: https://www.kobzarev.com/donate/
*
* @link https://github.com/paulirish/lite-youtube-embed
* @package mihdan-lite-youtube-embed
*/
namespace Mihdan\LiteYouTubeEmbed;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
define( 'MIHDAN_LITE_YOUTUBE_EMBED_VERSION', '1.8.0.3' );
define( 'MIHDAN_LITE_YOUTUBE_EMBED_SLUG', 'mihdan-lite-youtube-embed' );
define( 'MIHDAN_LITE_YOUTUBE_EMBED_NAME', 'Lite Video Embed' );
define( 'MIHDAN_LITE_YOUTUBE_EMBED_DIR', __DIR__ );
define( 'MIHDAN_LITE_YOUTUBE_EMBED_FILE', __FILE__ );
define( 'MIHDAN_LITE_YOUTUBE_EMBED_URL', untrailingslashit( plugin_dir_url( MIHDAN_LITE_YOUTUBE_EMBED_FILE ) ) );
if ( file_exists( MIHDAN_LITE_YOUTUBE_EMBED_DIR . '/vendor/autoload.php' ) ) {
require_once MIHDAN_LITE_YOUTUBE_EMBED_DIR . '/vendor/autoload.php';
( new Main() )->setup_hooks();
}