-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathplugin.php
executable file
·40 lines (34 loc) · 1.08 KB
/
plugin.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: GTG Advanced Blocks
* Plugin URI: https://gutengeek.com/template-library/#/blocks
* Description: Advanced gutenberg blocks, designs everything you need for gutenberg editor
* Author: GutenGeek
* Author URI: https://gutengeek.com/
* Version: 1.0.4
* License: GPL2+
* License URI: https://www.gnu.org/licenses/gpl-2.0.txt
*
* @package gutengeek
*/
// Exit if accessed directly.
defined( 'ABSPATH' ) || exit();
if ( defined( 'DISABLE_GUTENGEEK' ) && DISABLE_GUTENGEEK ) {
return;
}
define( 'GTG_AB_FILE', __FILE__ );
define( 'GTG_AB_ROOT', dirname( GTG_AB_FILE ) );
define( 'GTG_AB_YOUTUBE_DEMO_URL', 'https://www.youtube.com/embed/UkCBMzwYAkM' );
define( 'GTG_AB_DOCUMENT_URL', 'https://docs.gutengeek.com' );
define( 'GTG_AB_HOME_URL', 'https://gutengeek.com' );
// require autoload
require_once GTG_AB_ROOT . '/vendor/autoload.php';
/**
* Initialize Plugin.
*/
if ( ! function_exists( 'gtg_advanced_blocks' ) ) {
function gtg_advanced_blocks() {
return Gtg_Advanced_Blocks\Plugin::instance();
}
}
$GLOBALS['gtg_advanced_blocks'] = gtg_advanced_blocks();