Skip to content

Commit

Permalink
Added beans path and url constants overwrite.
Browse files Browse the repository at this point in the history
  • Loading branch information
ThierryA committed Feb 9, 2016
1 parent b7a635a commit 33473cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function beans_define_constants() {
define( 'BEANS_VERSION', '1.2.5' );

// Define paths.
define( 'BEANS_THEME_PATH', wp_normalize_path( trailingslashit( get_template_directory() ) ) );
if ( !defined( 'BEANS_THEME_PATH' ) ) define( 'BEANS_THEME_PATH', wp_normalize_path( trailingslashit( get_template_directory() ) ) );
define( 'BEANS_PATH', BEANS_THEME_PATH . 'lib/' );
define( 'BEANS_ASSETS_PATH', BEANS_PATH . 'assets/' );
define( 'BEANS_LANGUAGES_PATH', BEANS_PATH . 'languages/' );
Expand All @@ -98,7 +98,7 @@ function beans_define_constants() {
define( 'BEANS_FRAGMENTS_PATH', BEANS_TEMPLATES_PATH . 'fragments/' );

// Define urls.
define( 'BEANS_THEME_URL', trailingslashit( get_template_directory_uri() ) );
if ( !defined( 'BEANS_THEME_URL' ) ) define( 'BEANS_THEME_URL', trailingslashit( get_template_directory_uri() ) );
define( 'BEANS_URL', BEANS_THEME_URL . 'lib/' );
define( 'BEANS_ASSETS_URL', BEANS_URL . 'assets/' );
define( 'BEANS_LESS_URL', BEANS_ASSETS_URL . 'less/' );
Expand Down

0 comments on commit 33473cc

Please sign in to comment.