<?php $results = STLocation::location_widget3($instance); if (!$instance['title']) { $title = ucfirst($instance['style']); $title .= " " . STLocation::get_post_type_name($instance['post_type']); $title .= " " . __("in", ST_TEXTDOMAIN); $title .= " <strong>" . ucfirst(get_the_title($instance['location'])) . "</strong>"; } else { $title = $instance['title']; } echo "<h4> " . $title . " </h4>"; echo "<ul class='booking-list'>"; if (!empty($results) and is_array($results)) { foreach ($results as $key => $value) { $link = get_permalink($value->ID); $post_id = $value->ID; $thumbnail = get_the_post_thumbnail($post_id, 'full'); if (!$thumbnail) { $thumbnail = st_get_default_image(); } if (isset($instance['layout']) && !empty($instance['layout'])) { $layout = $instance['layout']; } else { $layout = 'layout1'; } ?> <li class='widget_location '> <div class="bookinst_save_attributeg-item booking-item booking-item-small"> <div class="row"> <div class="<?php