<?php 
/*
*Template Name: Page Fullwidth
*/
?>
<?php get_header(); ?>

<?php while ( have_posts() ) : the_post(); ?>

<!-- page-title-module
	================================================== -->
<section class="page-title">
	<div class="container">
		<h1 class="page-title__title"><?php the_title(); ?></h1>
		
	</div>
</section>
<!-- End page-title-module -->

<!-- blog-page-section 
	================================================== -->
<section class="add-listing">
	<div class="container">
		<div class="blog-page-box">
			<div class="row">
				<div class="col-md-12">
					<div class="blog-page__boxs">
						<div class="single-post">
							<?php $post_banner = get_post_meta($wp_query->get_queried_object_id(), '_triptip_page_banner', true) ?>
							<?php if($post_banner!=''){ ?>
								<img class="single-post__image" src="<?php echo esc_url($post_banner); ?>" alt="<?php the_title_attribute(); ?>">
							<?php }elseif(has_post_thumbnail()){ ?>
								<?php the_post_thumbnail('', ['class' => 'single-post__image']); ?>
							<?php } ?>
							<div class="single-content">					
							<?php the_content(); ?>
			                  <?php
			                    $defaults = array(
			                      'before'           => '<div id="page-links"><strong>'.esc_html__('Page','triptip').': </strong>',
			                      'after'            => '</div>',
			                      'link_before'      => '<span>',
			                      'link_after'       => '</span>',
			                      'next_or_number'   => 'number',
			                      'separator'        => ' ',
			                      'nextpagelink'     => esc_html__( 'Next page','triptip' ),
			                      'previouspagelink' => esc_html__( 'Previous page','triptip' ),
			                      'pagelink'         => '%',
			                      'echo'             => 1
			                    );
			                   ?>
			                  
			              </div>
			              <?php wp_link_pages($defaults); ?>
			              <?php if(has_tag()){ ?>
								
			              		<div class="row">
									<div class="col-md-6">
										<p class="single-post__tags">
											<i class="la la-tag"></i>
											<?php the_tags( '', ', ', '' ); ?>
										</p>
									</div>
									
								</div>

							<?php } ?>

							
						</div>
					</div>
				</div>
	            
			</div>
		</div>
	</div>
</section>
<!-- End news section -->

<?php endwhile; ?>

<?php get_footer(); ?>