null, 'icontag' => 'dt', 'captiontag' => 'dd', 'caption' => null, 'size' => 'sportspress-crop-medium', 'link_posts' => get_option( 'sportspress_link_teams', 'yes' ) == 'yes' ? true : false, ); extract( $defaults, EXTR_SKIP ); // Add caption tag if has caption if ( $captiontag && $caption ) $caption = '<' . $captiontag . ' class="wp-caption-text gallery-caption small-3 columns">' . wptexturize( $caption ) . ''; if ( $link_posts ) $caption = '' . $caption . ''; if ( has_post_thumbnail( $id ) ) $thumbnail = get_the_post_thumbnail( $id, $size ); else $thumbnail = ''; echo "<{$itemtag} class='gallery-item'>"; echo " <{$icontag} class='gallery-icon portrait'>" . '' . $thumbnail . '' . ""; echo $caption; echo "";