-
Notifications
You must be signed in to change notification settings - Fork 7
/
pym-shortcode.php
40 lines (37 loc) · 964 Bytes
/
pym-shortcode.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
<?php
/*
Plugin Name: Pym.js Embeds
Plugin URI: https://github.com/INN/pym-shortcode
Description: A WordPress block and shortcode for embedding iframes that are responsive horizontally and vertically using the NPR Visuals Team's `Pym.js`.
Version: 1.3.2.4
Author: INN Labs
Author URI: https://labs.inn.org/
License: GPL Version 2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pym-embeds
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
/**
* What version is this plugin?
*
* @return string The plugin version number
*/
function pym_plugin_version() {
return '1.3.2.4';
}
$includes = array(
'/inc/block.php',
'/inc/shortcode.php',
'/inc/info-page.php',
'/inc/settings-page.php',
'/inc/class-pymsrc-output.php',
'/inc/amp.php',
);
foreach ( $includes as $include ) {
if ( 0 === validate_file( dirname( __FILE__ ) . $include ) ) {
require_once( dirname( __FILE__ ) . $include );
}
}