Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't load the breadcrumb-trail and get-the-image extensions if the p…
…lugins for theme are active.

git-svn-id: http://svn.locallylost.com/themes/hybrid-core/trunk@739 dba0f204-706d-4bc1-bc29-8b92e0485636
  • Loading branch information
greenshady committed May 21, 2011
1 parent 02d0cdd commit c501bba
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions hybrid.php
Expand Up @@ -226,22 +226,24 @@ function functions() {
*/
function extensions() {

/* Load the Breadcrumb Trail extension if supported. */
require_if_theme_supports( 'breadcrumb-trail', trailingslashit( HYBRID_EXTENSIONS ) . 'breadcrumb-trail.php' );

/* Load the Cleaner Caption extension if supported. */
require_if_theme_supports( 'cleaner-caption', trailingslashit( HYBRID_EXTENSIONS ) . 'cleaner-caption.php' );
/* Load the Breadcrumb Trail extension if supported and the plugin isn't active. */
if ( !function_exists( 'breadcrumb_trail' ) )
require_if_theme_supports( 'breadcrumb-trail', trailingslashit( HYBRID_EXTENSIONS ) . 'breadcrumb-trail.php' );

/* Load the Cleaner Gallery extension if supported and the plugin isn't active. */
if ( !function_exists( 'cleaner_gallery' ) )
require_if_theme_supports( 'cleaner-gallery', trailingslashit( HYBRID_EXTENSIONS ) . 'cleaner-gallery.php' );

/* Load the Get the Image extension if supported and the plugin isn't active. */
if ( !function_exists( 'get_the_image' ) )
require_if_theme_supports( 'get-the-image', trailingslashit( HYBRID_EXTENSIONS ) . 'get-the-image.php' );

/* Load the Cleaner Caption extension if supported. */
require_if_theme_supports( 'cleaner-caption', trailingslashit( HYBRID_EXTENSIONS ) . 'cleaner-caption.php' );

/* Load the Custom Field Series extension if supported. */
require_if_theme_supports( 'custom-field-series', trailingslashit( HYBRID_EXTENSIONS ) . 'custom-field-series.php' );

/* Load the Get the Image extension if supported. */
require_if_theme_supports( 'get-the-image', trailingslashit( HYBRID_EXTENSIONS ) . 'get-the-image.php' );

/* Load the Loop Pagination extension if supported. */
require_if_theme_supports( 'loop-pagination', trailingslashit( HYBRID_EXTENSIONS ) . 'loop-pagination.php' );

Expand Down

0 comments on commit c501bba

Please sign in to comment.