PluginProbe
Customify / 2.0.0
Customify v2.0.0
2.10.9 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.7.1 1.3.0 1.3.1 1.4.0 1.4.1 1.4.2 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.6.0 1.6.0.1 1.6.5 1.7.0 1.7.1 All 77 releases
customify / customify.php

customify.php in Customify 2.0.0, at customify.php

76 lines 1.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 Plugin Name: Customify
4 Plugin URI: https://wordpress.org/plugins/customify/
5 Description: A Theme Customizer Booster
6 Version: 2.0.0
7 Author: Pixelgrade
8 Author URI: https://pixelgrade.com
9 Author Email: contact@pixelgrade.com
10 Text Domain: customify
11 License: GPL-2.0+
12 License URI: http://www.gnu.org/licenses/gpl-2.0.txt
13 Domain Path: /languages/
14 */
15
16 // If this file is called directly, abort.
17 if ( ! defined( 'ABSPATH' ) ) {
18 die;
19 }
20
21 // ensure EXT is defined
22 if ( ! defined('EXT')) {
23 define('EXT', '.php');
24 }
25
26 require 'core/bootstrap.php';
27
28 // Include our helper array class.
29 require 'includes/lib/class-customify-array.php';
30
31 $config = include 'plugin-config.php';
32
33 // set textdomain
34 pixcustomify::settextdomain( 'customify' );
35
36 // Ensure Test Data
37 // ----------------
38
39 $defaults = include 'plugin-defaults.php';
40
41 $current_data = get_option( $config['settings-key'] );
42
43 if ( $current_data === false ) {
44 add_option( $config['settings-key'], $defaults );
45 } elseif ( count( array_diff_key( $defaults, $current_data ) ) != 0) {
46 $plugindata = array_merge( $defaults, $current_data );
47 update_option( $config['settings-key'], $plugindata );
48 }
49 # else: data is available; do nothing
50
51 /**
52 * Returns the main instance of PixCustomifyPlugin to prevent the need to use globals.
53 *
54 * @since 1.5.0
55 * @return PixCustomifyPlugin
56 */
57 function PixCustomifyPlugin() {
58 /**
59 * The core plugin class that is used to define internationalization,
60 * admin-specific hooks, and public-facing site hooks.
61 */
62 require_once plugin_dir_path( __FILE__ ) . 'class-pixcustomify.php';
63
64 $instance = PixCustomifyPlugin::instance( __FILE__, '2.0.0' );
65
66 return $instance;
67 }
68
69 // Now get the party started
70 // We will keep this global variable for legacy
71 $pixcustomify_plugin = PixCustomifyPlugin();
72
73 // Load custom modules
74 require_once( 'features/class-CSS_Editor.php' );
75 require_once( 'features/class-Font_Selector.php' );
76