forked from Invulu/organic-profile-block
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorganic-profile-block.php
48 lines (42 loc) · 1.15 KB
/
organic-profile-block.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
44
45
46
47
48
<?php
/**
*
* @link https://organicthemes.com
* @since 1.0.0
* @package OPB
*
* Plugin Name: Organic Profile Block
* Plugin URI: https://organicthemes.com/
* Description: The Profile Block is created for the Gutenberg content editor. It displays a profile section with an image, name, subtitle, bio and personal social media links. It's perfect for author biographies, personal profiles, or staff pages.
* Author: Organic Themes
* Author URI: https://organicthemes.com/
* Version: 1.1.1
* License: GPL2+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Define global constants.
*
* @since 1.0.0
*/
// Plugin version.
if ( ! defined( 'OPB_VERSION' ) ) {
define( 'OPB_VERSION', '1.1.1' );
}
if ( ! defined( 'OPB_NAME' ) ) {
define( 'OPB_NAME', trim( dirname( plugin_basename( __FILE__ ) ), '/' ) );
}
if ( ! defined( 'OPB_DIR' ) ) {
define( 'OPB_DIR', WP_PLUGIN_DIR . '/' . OPB_NAME );
}
if ( ! defined( 'OPB_URL' ) ) {
define( 'OPB_URL', WP_PLUGIN_URL . '/' . OPB_NAME );
}
/**
* BLOCK: Profile Block.
*/
require_once( OPB_DIR . '/block/profile/index.php' );