<!--//location item--> <?php } else { ?> <li> <a href="<?php echo esc_url($location_obj->get_permalink()); ?> "> <figure> <img src="<?php echo esc_url($location_image); ?> " alt="<?php echo esc_attr($location_obj->get_title()); ?> " /> </figure> <h3><?php echo $location_obj->get_title(); ?> <?php if ($location_obj->get_status() == 'private') { echo '<span class="private">' . __('Pending', 'bookyourtravel') . '</span>'; } ?> </h3> </a> </li> <?php }