Increase player gallery thumbnail size and clean up variables
This commit is contained in:
@@ -11,11 +11,10 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|||||||
|
|
||||||
$defaults = array(
|
$defaults = array(
|
||||||
'id' => null,
|
'id' => null,
|
||||||
'performance' => array(),
|
|
||||||
'icontag' => 'dt',
|
'icontag' => 'dt',
|
||||||
'captiontag' => 'dd',
|
'captiontag' => 'dd',
|
||||||
'caption' => null,
|
'caption' => null,
|
||||||
'size' => 'gallery',
|
'size' => 'medium',
|
||||||
'link_posts' => get_option( 'sportspress_link_players', 'yes' ) == 'yes' ? true : false,
|
'link_posts' => get_option( 'sportspress_link_players', 'yes' ) == 'yes' ? true : false,
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -33,9 +32,6 @@ if ( $captiontag && $caption )
|
|||||||
if ( $link_posts )
|
if ( $link_posts )
|
||||||
$caption = '<a href="' . get_permalink( $id ) . '">' . $caption . '</a>';
|
$caption = '<a href="' . get_permalink( $id ) . '">' . $caption . '</a>';
|
||||||
|
|
||||||
if ( isset( $limit ) && $i >= $limit )
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if ( has_post_thumbnail( $id ) )
|
if ( has_post_thumbnail( $id ) )
|
||||||
$thumbnail = get_the_post_thumbnail( $id, $size );
|
$thumbnail = get_the_post_thumbnail( $id, $size );
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user