<?php
get_header();
?>
<?php
$thumb_url = get_the_post_thumbnail_url(get_the_ID(), 'large');
?>
<!--Page Title-->
<section class="page-banner">
<div class="image-layer"
style=" background-color:#149896;">
</div>
<div class="banner-inner">
<div class="auto-container">
<div class="inner-container clearfix">
<h1 style="color:#fff; font-size:20px;"><?php the_title(); ?></h1>
<div class="page-nav">
<ul class="bread-crumb clearfix">
<li><a href="<?php echo home_url(); ?>" style="color:#fff;"><font color="#fff">Home</font></a></li>
<li><a href="<?php echo site_url('/blogs'); ?>" style="color:#fff;">Blogs</a></li>
</ul>
</div>
</div>
</div>
</div>
</section>
<!--Contact Section-->
<section class="yacht-tours-container alternate-bg-two">
<div class="auto-container">
<div class="content-container">
<div class="row clearfix">
<!--Content Side-->
<div class="content-side col-lg-8 col-md-12 col-sm-12">
<div class="content-inner">
<!--Tour Details-->
<div class="tour-details">
<div class="main-image">
<img src="<?php echo esc_url($thumb_url); ?>" alt="" title="">
</div>
<div class="text-block">
<h4><font color="#000"><?php the_title(); ?></font></h4>
<?php the_content(); ?>
</div>
<!--Included Material-->
<!--Facility-->
</div>
</div>
</div>
<!--Widgets Side-->
<div class="widgets-side col-lg-4 col-md-6 col-sm-12">
<div class="widgets-content">
<!--Widget-->
<div class="tour-widget single-booking-widget">
<div class="widget-inner">
<div class="default-form main-booking-form">
<form method="post" action="contact.html">
<h5>Blogs</h5>
<?php
$args = array(
'post_type' => 'post',
'posts_per_page' => -1, // This fetches all posts
);
$latest_posts = new WP_Query($args);
if ($latest_posts->have_posts()): ?>
<?php while ($latest_posts->have_posts()):
$latest_posts->the_post();
?>
<div class="form-group">
<div class="field-inner">
<div class="skipper-staff clearfix">
<span class="pull-left" style="color: #000;"><a
href="<?php the_permalink(); ?>">
<font color="#000"><?php the_title(); ?></font>
</a></span>
</div>
</div>
</div>
<?php endwhile; ?>
<?php wp_reset_postdata(); ?>
<?php endif; ?>
</form>
</div>
</div>
</div>
<!--Widget-->
<!--Widget-->
</div>
</div>
</div>
</div>
</div>
</section>
<?php
get_footer();