-
Notifications
You must be signed in to change notification settings - Fork 0
/
lsx-blocks.php
43 lines (39 loc) · 1.06 KB
/
lsx-blocks.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
<?php
/**
* Plugin Name: LSX Blocks
* Plugin URI: https://lsx.lsdev.biz/blocks/
* Description: The LSX Blocks plugin gives you a collection of Gutenberg blocks that you can use and customize. All the blocks are built to work with our powerful LSX theme.
* Author: LightSpeed
* Author URI: https://www.lsdev.biz/
* Version: 1.3.3
* License: GPLv3 or later
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
*
* @package LSX BLOCKS
*/
define( 'LSX_BLOCKS_VER', '1.3.3' );
define( 'LSX_BLOCKS_PATH', plugin_dir_path( __FILE__ ) );
define( 'LSX_BLOCKS_CORE', __FILE__ );
define( 'LSX_BLOCKS_URL', plugin_dir_url( __FILE__ ) );
/**
* Exit if accessed directly
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Load internals.
require_once LSX_BLOCKS_PATH . 'includes/classes/class-core.php';
/**
* Returns the LSX Block instance
*
* @return object \LSX\Blocks\Classes\Core()
*/
function lsx_blocks() {
global $lsx_blocks;
if ( null === $lsx_blocks ) {
$lsx_blocks = new \LSX\Blocks\Classes\Core();
$lsx_blocks->init();
}
return $lsx_blocks;
}
lsx_blocks();