Wrap player gallery with div and increase thumbnail size
This commit is contained in:
@@ -15,7 +15,7 @@ $defaults = array(
|
||||
'icontag' => 'dt',
|
||||
'captiontag' => 'dd',
|
||||
'caption' => null,
|
||||
'size' => 'thumbnail',
|
||||
'size' => 'gallery',
|
||||
'link_posts' => get_option( 'sportspress_link_players', 'yes' ) == 'yes' ? true : false,
|
||||
);
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ $defaults = array(
|
||||
'captiontag' => 'dd',
|
||||
'grouptag' => 'h4',
|
||||
'columns' => 3,
|
||||
'size' => 'thumbnail',
|
||||
'size' => 'medium',
|
||||
'show_all_players_link' => false,
|
||||
'link_posts' => get_option( 'sportspress_link_players', 'yes' ) == 'yes' ? true : false,
|
||||
);
|
||||
@@ -122,6 +122,8 @@ echo apply_filters( 'gallery_style', $gallery_style . "\n\t\t" );
|
||||
|
||||
echo '<div class="sp-template sp-template-player-gallery sp-template-gallery">';
|
||||
|
||||
echo '<div class="sp-player-gallery-wrapper">';
|
||||
|
||||
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 . '>';
|
||||
@@ -155,6 +157,8 @@ echo apply_filters( 'gallery_style', $gallery_style . "\n\t\t" );
|
||||
echo '<br style="clear: both" />';
|
||||
}
|
||||
|
||||
echo '</div>';
|
||||
|
||||
if ( $show_all_players_link && ( 'position' !== $grouping || $j == count( $groups ) ) ) {
|
||||
echo '<div class="sp-player-gallery-link sp-gallery-link sp-view-all-link"><a href="' . get_permalink( $id ) . '">' . __( 'View all players', 'sportspress' ) . '</a></div>';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user