Update player gallery thumbnail markup

This commit is contained in:
Brian Miyaji
2014-12-09 18:11:52 +11:00
parent d77bcaa605
commit f1711134f3
2 changed files with 15 additions and 7 deletions

View File

@@ -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 ) . '</' . $captiontag . '>';
$caption = '<' . $captiontag . ' class="wp-caption-text gallery-caption small-3 columns' . ( $player_number ? ' has-number' : '' ) . '">' . wptexturize( $caption ) . '</' . $captiontag . '>';
if ( $link_posts )
$caption = '<a href="' . get_permalink( $id ) . '">' . $caption . '</a>';