Skip to content

Commit

Permalink
Allow theme developers to change the directory path and directory URI…
Browse files Browse the repository at this point in the history
… of the Hybrid framework folder.
  • Loading branch information
Justin Tadlock committed Nov 4, 2013
1 parent 2b9a341 commit b5a900e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hybrid.php
Expand Up @@ -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' );
Expand Down

0 comments on commit b5a900e

Please sign in to comment.