';
@@ -103,19 +75,19 @@ public function widget( $args, $instance ) {
$location_search .= apply_filters( 'sm-location-search-widget-table-top', '' );
- if ( $show_address ) {
+ if ( $instance['show_address'] ) {
$location_search .= '
';
}
- if ( $show_city ) {
+ if ( $instance['show_city'] ) {
$location_search .= '
';
}
- if ( $show_state ) {
+ if ( $instance['show_state'] ) {
$location_search .= '
';
}
- if ( $show_zip ) {
+ if ( $instance['show_zip'] ) {
$location_search .= '
';
}
- if ( $show_distance ) {
+ if ( $instance['show_distance'] ) {
$location_search .= '
' . apply_filters( 'sm-search-label-distance', __( 'Select a distance', 'simplemap' ) ) . ':
|