Fix #222 custom icon with time

This commit is contained in:
Brian Miyaji
2017-11-19 19:38:10 +11:00
parent bc8b1229e6
commit dcbf4fd17f

View File

@@ -172,7 +172,7 @@ if ( ! isset( $subs ) ) $subs = array();
$performance_id = sp_array_value( $performance_ids, $key, null );
$icons = '';
if ( $performance_id && has_post_thumbnail( $performance_id ) ):
$icons = str_repeat( get_the_post_thumbnail( $performance_id, 'sportspress-fit-mini', array( 'title' => sp_get_singular_name( $performance_id ) ) ) . ' ', $value );
$icons = str_repeat( get_the_post_thumbnail( $performance_id, 'sportspress-fit-mini', array( 'title' => sp_get_singular_name( $performance_id ) ) ) . ' ', intval($value) );
endif;
$content .= apply_filters( 'sportspress_event_performance_icons', $icons, $performance_id, $value );
endif;