Last active
December 22, 2017 01:47
-
-
Save BrookeDot/599590d8a6b59ec71ccdbad166491791 to your computer and use it in GitHub Desktop.
Genesis Tabs require Genesis on theme switch.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: trunk/plugin.php | |
=================================================================== | |
--- trunk/plugin.php (revision 1791008) | |
+++ trunk/plugin.php (working copy) | |
@@ -144,7 +144,7 @@ | |
echo '<div id="cat-' . $cat . '" '; post_class( 'ui-tabs-hide' ); echo '>'; | |
- if ( ! empty( $instance['show_image'] ) ) : | |
+ if ( ( ! empty( $instance['show_image'] ) ) && ( function_exists( 'genesis_get_image' ) ) ) : | |
printf( '<a href="%s" title="%s" class="%s">%s</a>', get_permalink(), the_title_attribute( 'echo=0' ), esc_attr( $instance['image_alignment'] ), genesis_get_image( array( 'format' => 'html', 'size' => $instance['image_size'] ) ) ); | |
endif; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment