-
Notifications
You must be signed in to change notification settings - Fork 9
/
fx-page-builder-base.php
45 lines (34 loc) · 1.23 KB
/
fx-page-builder-base.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
<?php
/**
* Plugin Name: f(x) Page Builder Base
* Plugin URI: http://shellcreeper.com/wp-page-builder-plugin-from-scratch/
* Description: Custom WordPress Page Builder Plugin Tutorial.
* Version: 1.0.0
* Author: David Chandra Purnama
* Author URI: http://shellcreeper.com/
* License: GPLv2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
*
* @author David Chandra Purnama <[email protected]>
* @copyright Copyright (c) 2016, Genbu Media
**/
/* Do not access this file directly */
if ( ! defined( 'WPINC' ) ) { die; }
/* Constants
------------------------------------------ */
/* Set plugin version constant. */
define( 'FX_PBBASE_VERSION', '1.0.0' );
/* Set constant path to the plugin directory. */
define( 'FX_PBBASE_PATH', trailingslashit( plugin_dir_path(__FILE__) ) );
/* Set the constant path to the plugin directory URI. */
define( 'FX_PBBASE_URI', trailingslashit( plugin_dir_url( __FILE__ ) ) );
/* Includes
------------------------------------------ */
/* Functions */
require_once( FX_PBBASE_PATH . 'includes/functions.php' );
/* Page Builder */
if( is_admin() ){
require_once( FX_PBBASE_PATH . 'includes/page-builder.php' );
}
/* Functions */
require_once( FX_PBBASE_PATH . 'includes/front-end.php' );