From b5a900e22114f724f368e8a4ee8e10b9e80ec092 Mon Sep 17 00:00:00 2001 From: Justin Tadlock Date: Mon, 4 Nov 2013 01:37:15 -0600 Subject: [PATCH] Allow theme developers to change the directory path and directory URI of the Hybrid framework folder. --- hybrid.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hybrid.php b/hybrid.php index 659c9e0d..74c1ae74 100644 --- a/hybrid.php +++ b/hybrid.php @@ -117,10 +117,12 @@ function constants() { define( 'CHILD_THEME_URI', get_stylesheet_directory_uri() ); /* Sets the path to the core framework directory. */ - define( 'HYBRID_DIR', trailingslashit( THEME_DIR ) . basename( dirname( __FILE__ ) ) ); + if ( !defined( 'HYBRID_DIR' ) ) + define( 'HYBRID_DIR', trailingslashit( THEME_DIR ) . basename( dirname( __FILE__ ) ) ); /* Sets the path to the core framework directory URI. */ - define( 'HYBRID_URI', trailingslashit( THEME_URI ) . basename( dirname( __FILE__ ) ) ); + if ( !defined( 'HYBRID_URI' ) ) + define( 'HYBRID_URI', trailingslashit( THEME_URI ) . basename( dirname( __FILE__ ) ) ); /* Sets the path to the core framework admin directory. */ define( 'HYBRID_ADMIN', trailingslashit( HYBRID_DIR ) . 'admin' );