forked from reduxframework/redux-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
redux-framework.php
executable file
·51 lines (44 loc) · 2.09 KB
/
redux-framework.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
49
50
51
<?php
/**
* The Redux Framework Plugin
*
* A simple, truly extensible and fully responsive options framework
* for WordPress themes and plugins. Developed with WordPress coding
* standards and PHP best practices in mind.
*
* Plugin Name: Redux Framework
* Plugin URI: http://wordpress.org/plugins/redux-framework
* Github URI: https://github.com/ReduxFramework/ReduxFramework
* Description: Redux is a simple, truly extensible options framework for WordPress themes and plugins.
* Author: Redux Team
* Author URI: http://reduxframework.com
* Version: 3.1.6
* Text Domain: redux-framework
* License: GPL3+
* License URI: http://www.gnu.org/licenses/gpl-3.0.txt
* Domain Path: /ReduxFramework/ReduxCore/languages
*
* @package ReduxFramework
* @author Dovy Paukstys <dovy@reduxframework.com>
* @author Daniel J Griffiths <ghost1227@reduxframework.com>
* @author Lee Mason <lee@reduxframework.com>
* @license GNU General Public License, version 2
* @copyright 2012-2013 Redux Framework
*/
// Exit if accessed directly
if( !defined( 'ABSPATH' ) ) {
die;
}
// Require the main plugin class
require_once( plugin_dir_path( __FILE__ ) . 'class.redux-plugin.php' );
// Register hooks that are fired when the plugin is activated and deactivated, respectively.
register_activation_hook( __FILE__, array( 'ReduxFrameworkPlugin', 'activate' ) );
register_deactivation_hook( __FILE__, array( 'ReduxFrameworkPlugin', 'deactivate' ) );
// Get plugin instance
//add_action( 'plugins_loaded', array( 'ReduxFrameworkPlugin', 'instance' ) );
// The above line prevents ReduxFramework from instancing until all plugins have loaded.
// While this does not matter for themes, any plugin using Redux will not load properly.
// Waiting until all plugsin have been loaded prevents the ReduxFramework class from
// being created, and fails the !class_exists('ReduxFramework') check in the sample_config.php,
// and thus prevents any plugin using Redux from loading their config file.
ReduxFrameworkPlugin::instance();