Move template div in player gallery

This commit is contained in:
Brian Miyaji
2015-06-21 00:29:08 +10:00
parent e0556974f1
commit 22b263f527

View File

@@ -94,7 +94,6 @@ $size_class = sanitize_html_class( $size );
$gallery_div = "<div id='$selector' class='gallery galleryid-{$id} gallery-columns-{$columns} gallery-size-{$size_class}'>"; $gallery_div = "<div id='$selector' class='gallery galleryid-{$id} gallery-columns-{$columns} gallery-size-{$size_class}'>";
echo apply_filters( 'gallery_style', $gallery_style . "\n\t\t" ); echo apply_filters( 'gallery_style', $gallery_style . "\n\t\t" );
?> ?>
<div class="sp-template sp-template-player-gallery">
<?php echo $gallery_div; ?> <?php echo $gallery_div; ?>
<?php <?php
if ( intval( $number ) > 0 ) if ( intval( $number ) > 0 )
@@ -113,6 +112,8 @@ echo apply_filters( 'gallery_style', $gallery_style . "\n\t\t" );
foreach ( $groups as $group ): foreach ( $groups as $group ):
$i = 0; $i = 0;
echo '<div class="sp-template sp-template-player-gallery">';
if ( ! empty( $group->name ) ): if ( ! empty( $group->name ) ):
echo '<a name="group-' . $group->slug . '" id="group-' . $group->slug . '"></a>'; echo '<a name="group-' . $group->slug . '" id="group-' . $group->slug . '"></a>';
echo '<' . $grouptag . ' class="player-group-name player-gallery-group-name">' . $group->name . '</' . $grouptag . '>'; echo '<' . $grouptag . ' class="player-group-name player-gallery-group-name">' . $group->name . '</' . $grouptag . '>';
@@ -144,6 +145,8 @@ echo apply_filters( 'gallery_style', $gallery_style . "\n\t\t" );
echo '<br style="clear: both" />'; echo '<br style="clear: both" />';
} }
echo '</div>';
endforeach; endforeach;
if ( ! $html5 && $columns > 0 && ++$i % $columns == 0 ) { if ( ! $html5 && $columns > 0 && ++$i % $columns == 0 ) {
@@ -156,4 +159,3 @@ echo apply_filters( 'gallery_style', $gallery_style . "\n\t\t" );
echo "</div>\n"; echo "</div>\n";
?> ?>
</div>