Wrap player gallery with div and increase thumbnail size
This commit is contained in:
@@ -15,7 +15,7 @@ $defaults = array(
|
|||||||
'icontag' => 'dt',
|
'icontag' => 'dt',
|
||||||
'captiontag' => 'dd',
|
'captiontag' => 'dd',
|
||||||
'caption' => null,
|
'caption' => null,
|
||||||
'size' => 'thumbnail',
|
'size' => 'gallery',
|
||||||
'link_posts' => get_option( 'sportspress_link_players', 'yes' ) == 'yes' ? true : false,
|
'link_posts' => get_option( 'sportspress_link_players', 'yes' ) == 'yes' ? true : false,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ $defaults = array(
|
|||||||
'captiontag' => 'dd',
|
'captiontag' => 'dd',
|
||||||
'grouptag' => 'h4',
|
'grouptag' => 'h4',
|
||||||
'columns' => 3,
|
'columns' => 3,
|
||||||
'size' => 'thumbnail',
|
'size' => 'medium',
|
||||||
'show_all_players_link' => false,
|
'show_all_players_link' => false,
|
||||||
'link_posts' => get_option( 'sportspress_link_players', 'yes' ) == 'yes' ? true : false,
|
'link_posts' => get_option( 'sportspress_link_players', 'yes' ) == 'yes' ? true : false,
|
||||||
);
|
);
|
||||||
@@ -121,6 +121,8 @@ echo apply_filters( 'gallery_style', $gallery_style . "\n\t\t" );
|
|||||||
$i = 0;
|
$i = 0;
|
||||||
|
|
||||||
echo '<div class="sp-template sp-template-player-gallery sp-template-gallery">';
|
echo '<div class="sp-template sp-template-player-gallery sp-template-gallery">';
|
||||||
|
|
||||||
|
echo '<div class="sp-player-gallery-wrapper">';
|
||||||
|
|
||||||
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>';
|
||||||
@@ -154,6 +156,8 @@ echo apply_filters( 'gallery_style', $gallery_style . "\n\t\t" );
|
|||||||
if ( ! $html5 && $columns > 0 && ++$i % $columns == 0 ) {
|
if ( ! $html5 && $columns > 0 && ++$i % $columns == 0 ) {
|
||||||
echo '<br style="clear: both" />';
|
echo '<br style="clear: both" />';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
echo '</div>';
|
||||||
|
|
||||||
if ( $show_all_players_link && ( 'position' !== $grouping || $j == count( $groups ) ) ) {
|
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>';
|
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