diff --git a/templates/player-gallery-thumbnail.php b/templates/player-gallery-thumbnail.php index c2447a66..d9193bfa 100644 --- a/templates/player-gallery-thumbnail.php +++ b/templates/player-gallery-thumbnail.php @@ -28,7 +28,7 @@ if ( $player_number ) // Add caption tag if has caption if ( $captiontag && $caption ) - $caption = '<' . $captiontag . ' class="wp-caption-text gallery-caption small-3 columns">' . wptexturize( $caption ) . ''; + $caption = '<' . $captiontag . ' class="wp-caption-text gallery-caption small-3 columns' . ( $player_number ? ' has-number' : '' ) . '">' . wptexturize( $caption ) . ''; if ( $link_posts ) $caption = '' . $caption . ''; diff --git a/templates/player-gallery.php b/templates/player-gallery.php index 980b735a..0de329b2 100644 --- a/templates/player-gallery.php +++ b/templates/player-gallery.php @@ -4,11 +4,12 @@ * * @author ThemeBoy * @package SportsPress/Templates - * @version 1.1 + * @version 1.5 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly +$html5 = current_theme_supports( 'html5', 'gallery' ); $defaults = array( 'id' => get_the_ID(), 'number' => -1, @@ -69,7 +70,7 @@ else: endif; $gallery_style = $gallery_div = ''; -if ( apply_filters( 'use_default_gallery_style', true ) ) +if ( apply_filters( 'use_default_gallery_style', ! $html5 ) ) $gallery_style = "