ID ) ) :
$image = get_the_post_thumbnail( $post->ID, $size = 'thumbnail', array( 'alt' => esc_attr( get_the_title( $post->ID ) ) ) );
echo $image;
else :
echo '
';
endif;
?>
';
echo $args['after_widget'];
}
/**
* Outputs the options form on admin
*
* @param array $instance The widget options
*/
public function form( $instance )
{
$tp_title = isset( $instance['title'] ) ? ( $instance['title'] ) : __( 'Team Members', 'tp-education' );
$tp_number = isset( $instance['number'] ) ? absint( $instance['number'] ) : 3;
$tp_category = isset( $instance['team_category'] ) ? $instance['team_category'] : '';
?>