Move template div in player gallery
This commit is contained in:
@@ -94,8 +94,7 @@ $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 )
|
||||||
$limit = $number;
|
$limit = $number;
|
||||||
@@ -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 ) {
|
||||||
@@ -154,6 +157,5 @@ echo apply_filters( 'gallery_style', $gallery_style . "\n\t\t" );
|
|||||||
echo '<a class="sp-player-list-link sp-view-all-link" href="' . get_permalink( $id ) . '">' . __( 'View all players', 'sportspress' ) . '</a>';
|
echo '<a class="sp-player-list-link sp-view-all-link" href="' . get_permalink( $id ) . '">' . __( 'View all players', 'sportspress' ) . '</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "</div>\n";
|
echo "</div>\n";
|
||||||
?>
|
?>
|
||||||
</div>
|
|
||||||
Reference in New Issue
Block a user