Move template div in player gallery
This commit is contained in:
@@ -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}'>";
|
||||
echo apply_filters( 'gallery_style', $gallery_style . "\n\t\t" );
|
||||
?>
|
||||
<div class="sp-template sp-template-player-gallery">
|
||||
<?php echo $gallery_div; ?>
|
||||
<?php
|
||||
if ( intval( $number ) > 0 )
|
||||
@@ -113,6 +112,8 @@ echo apply_filters( 'gallery_style', $gallery_style . "\n\t\t" );
|
||||
foreach ( $groups as $group ):
|
||||
$i = 0;
|
||||
|
||||
echo '<div class="sp-template sp-template-player-gallery">';
|
||||
|
||||
if ( ! empty( $group->name ) ):
|
||||
echo '<a name="group-' . $group->slug . '" id="group-' . $group->slug . '"></a>';
|
||||
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 '</div>';
|
||||
|
||||
endforeach;
|
||||
|
||||
if ( ! $html5 && $columns > 0 && ++$i % $columns == 0 ) {
|
||||
@@ -156,4 +159,3 @@ echo apply_filters( 'gallery_style', $gallery_style . "\n\t\t" );
|
||||
|
||||
echo "</div>\n";
|
||||
?>
|
||||
</div>
|
||||
Reference in New Issue
Block a user