Created
April 1, 2014 17:33
-
-
Save ingozoell/9918994 to your computer and use it in GitHub Desktop.
Embedding Redux Franework WordPress Theme or Plugin
From: http://docs.reduxframework.com/redux-framework/advanced/embedding-redux-into-your-theme-or-plugin/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Include ReduxFramework | |
* | |
* http://docs.reduxframework.com/redux-framework/advanced/embedding-redux-into-your-theme-or-plugin/ | |
* | |
*/ | |
if ( !class_exists( 'ReduxFramework' ) && file_exists( dirname( __FILE__ ) . '/admin/ReduxFramework/ReduxCore/framework.php' ) ) { | |
// Translate | |
// https://github.com/ReduxFramework/redux-framework/issues/520 | |
load_textdomain( 'redux-framework-demo', dirname( __FILE__ ) . '/languages/' . $locale . '.mo' ); | |
// Framework | |
require_once( dirname( __FILE__ ) . '/admin/ReduxFramework/ReduxCore/framework.php' ); | |
} | |
if ( !isset( $redux_demo ) && file_exists( dirname( __FILE__ ) . '/admin/ReduxFramework/sample/sample-config.php' ) ) { | |
// Config | |
require_once( dirname( __FILE__ ) . '/admin/ReduxFramework/sample/sample-config.php' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment