| @@ -1,18 +1,20 @@ | ||
| 1 | 1 | <?php |
| 2 | -/* | |
| 3 | -Plugin Name: Customify | |
| 4 | -Plugin URI: https://wordpress.org/plugins/customify/ | |
| 5 | -Description: A Theme Customizer Booster | |
| 6 | -Version: 1.6.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 | -*/ | |
| 2 | +/** | |
| 3 | + * Plugin Name: Customify | |
| 4 | + * Plugin URI: https://wordpress.org/plugins/customify/ | |
| 5 | + * Description: A Theme Customizer Booster to easily and consistently customize Fonts, Colors, and other options for your site. | |
| 6 | + * Version: 2.5.2 | |
| 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 | + * Requires at least: 4.9.9 | |
| 15 | + * Tested up to: 5.2.2 | |
| 16 | + */ | |
| 15 | 17 | |
| 16 | 18 | // If this file is called directly, abort. |
| 17 | 19 | if ( ! defined( 'ABSPATH' ) ) { |
| 18 | 20 | die; |
| @@ -17,35 +19,11 @@ | ||
| 17 | 19 | if ( ! defined( 'ABSPATH' ) ) { |
| 18 | 20 | die; |
| 19 | 21 | } |
| 20 | 22 | |
| 21 | -// ensure EXT is defined | |
| 22 | -if ( ! defined('EXT')) { | |
| 23 | - define('EXT', '.php'); | |
| 24 | -} | |
| 23 | +require_once 'includes/lib/class-customify-array.php'; | |
| 24 | +require_once 'includes/extras.php'; | |
| 25 | 25 | |
| 26 | -require 'core/bootstrap'.EXT; | |
| 27 | - | |
| 28 | -$config = include 'plugin-config'.EXT; | |
| 29 | - | |
| 30 | -// set textdomain | |
| 31 | -pixcustomify::settextdomain('customify'); | |
| 32 | - | |
| 33 | -// Ensure Test Data | |
| 34 | -// ---------------- | |
| 35 | - | |
| 36 | -$defaults = include 'plugin-defaults'.EXT; | |
| 37 | - | |
| 38 | -$current_data = get_option( $config['settings-key'] ); | |
| 39 | - | |
| 40 | -if ( $current_data === false ) { | |
| 41 | - add_option( $config['settings-key'], $defaults ); | |
| 42 | -} elseif ( count( array_diff_key( $defaults, $current_data ) ) != 0) { | |
| 43 | - $plugindata = array_merge( $defaults, $current_data ); | |
| 44 | - update_option( $config['settings-key'], $plugindata ); | |
| 45 | -} | |
| 46 | -# else: data is available; do nothing | |
| 47 | - | |
| 48 | 26 | /** |
| 49 | 27 | * Returns the main instance of PixCustomifyPlugin to prevent the need to use globals. |
| 50 | 28 | * |
| 51 | 29 | * @since 1.5.0 |
| @@ -51,22 +29,12 @@ | ||
| 51 | 29 | * @since 1.5.0 |
| 52 | 30 | * @return PixCustomifyPlugin |
| 53 | 31 | */ |
| 54 | 32 | function PixCustomifyPlugin() { |
| 55 | - /** | |
| 56 | - * The core plugin class that is used to define internationalization, | |
| 57 | - * admin-specific hooks, and public-facing site hooks. | |
| 58 | - */ | |
| 59 | - require_once( plugin_dir_path( __FILE__ ) . 'class-pixcustomify.php' ); | |
| 33 | + require_once plugin_dir_path( __FILE__ ) . 'includes/class-pixcustomify.php'; | |
| 60 | 34 | |
| 61 | - $instance = PixCustomifyPlugin::instance( __FILE__, '1.6.0' ); | |
| 62 | - | |
| 63 | - return $instance; | |
| 35 | + return PixCustomifyPlugin::instance( __FILE__, '2.5.2' ); | |
| 64 | 36 | } |
| 65 | 37 | |
| 66 | 38 | // Now get the party started |
| 67 | 39 | // We will keep this global variable for legacy |
| 68 | 40 | $pixcustomify_plugin = PixCustomifyPlugin(); |
| 69 | - | |
| 70 | -// Load custom modules | |
| 71 | -require_once( 'features/class-CSS_Editor.php' ); | |
| 72 | -require_once( 'features/class-Font_Selector.php' ); | |