Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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...
commit c501bbab1311629f91d3c4bef53df1ddfc4288d0 1 parent 02d0cdd
greenshady authored
Showing with 10 additions and 8 deletions.
  1. +10 −8 hybrid.php
View
18 hybrid.php
@@ -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' );
Please sign in to comment.
Something went wrong with that request. Please try again.