-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathfx-builder.php
More file actions
55 lines (48 loc) · 1.76 KB
/
fx-builder.php
File metadata and controls
55 lines (48 loc) · 1.76 KB
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
49
50
51
52
53
54
55
<?php
/**
* Plugin Name: FX Builder
* Plugin URI: https://getbutterfly.com/classicpress-plugins/fx-builder/
* Update URI: https://getbutterfly.com
* Description: A simple page builder plugin. The one you can actually use.
* Version: 1.6.0
* Requires PHP: 7.4
* Requires CP: 2.0
* Author: Ciprian Popescu
* Author URI: https://getbutterfly.com/
* License: GNU General Public License v3 or later
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
* Text Domain: fx-builder
* Domain Path: /languages/
*
* @author Ciprian Popescu <ciprian@getbutterfly.com>
* @copyright Copyright (c) 2024-2026, getButterfly
*
* @author David Chandra Purnama <david@genbumedia.com>
* @copyright Copyright (c) 2016, Genbu Media
**/
if ( ! defined( 'WPINC' ) ) {
die;
}
define( 'FX_BUILDER_URI', trailingslashit( plugin_dir_url( __FILE__ ) ) );
define( 'FX_BUILDER_PATH', trailingslashit( plugin_dir_path( __FILE__ ) ) );
define( 'FX_BUILDER_FILE', __FILE__ );
define( 'FX_BUILDER_PLUGIN', plugin_basename( __FILE__ ) );
define( 'FX_BUILDER_VERSION', '1.6.0' );
require FX_BUILDER_PATH . '/includes/updater.php';
add_action( 'plugins_loaded', 'fx_builder_init' );
function fx_builder_init() {
$uri = FX_BUILDER_URI;
$path = FX_BUILDER_PATH;
$file = FX_BUILDER_FILE;
$plugin = FX_BUILDER_PLUGIN;
$version = FX_BUILDER_VERSION;
load_plugin_textdomain( dirname( $plugin ), false, dirname( $plugin ) . '/languages/' );
require_once $path . 'includes/fonts.php';
require_once $path . 'includes/shortcodes.php';
require_once $path . 'includes/setup.php';
require_once $path . 'includes/editor.php';
require_once $path . 'includes/settings/settings.php';
if ( is_admin() ) {
require_once $path . 'includes/list-columns.php';
}
}