🤩 File Manager - Mr.X
PHP:
8.3.33
Server:
Apache
OS:
Linux 5.14.0-611.49.1.el9_7.x86_64
User:
websparkit
Navigate
Upload:
Upload
New File
New Folder
Editing:single-destination.php
<?php /** * Single Destination Template * * @package Ophiro_Ventures */ get_header(); if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <section class="o-journey-hero"> <div class="o-journey-hero__bg"> <?php if ( has_post_thumbnail() ) : ?> <?php the_post_thumbnail( 'ophiro-hero', array( 'loading' => 'eager' ) ); ?> <?php endif; ?> </div> <div class="o-journey-hero__overlay"></div> <div class="o-journey-hero__content"> <span class="o-journey-hero__territory" style="background:var(--ophiro-gold-star);color:var(--ophiro-bg-primary);"> <?php esc_html_e( 'Sri Lanka', 'ophiro' ); ?> </span> <h1 class="o-journey-hero__title"><?php the_title(); ?></h1> <p class="o-journey-hero__subtitle"><?php echo esc_html( get_the_excerpt() ); ?></p> </div> </section> <div class="o-container"> <div class="o-journey-content"> <div class="o-journey-content__main"> <div class="o-reveal" style="padding:var(--space-3xl) 0;"> <?php the_content(); ?> </div> </div> <aside class="o-journey-content__sidebar"> <div class="o-sidebar-card"> <h4 class="o-sidebar-card__title"><?php esc_html_e( 'Related Journeys', 'ophiro' ); ?></h4> <?php $related_journeys = new WP_Query( array( 'post_type' => 'journey', 'posts_per_page' => 4, 'tax_query' => array( array( 'taxonomy' => 'territory', 'field' => 'slug', 'terms' => array( 'wonder', 'warmth', 'wellspring', 'wild' ), ), ), ) ); if ( $related_journeys->have_posts() ) : while ( $related_journeys->have_posts() ) : $related_journeys->the_post(); ?> <p style="margin-bottom:var(--space-md);"> <a href="<?php the_permalink(); ?>" style="font-size:var(--text-sm);color:var(--ophiro-text-secondary);text-decoration:none;"><?php the_title(); ?></a> </p> <?php endwhile; wp_reset_postdata(); endif; ?> </div> <div class="o-sidebar-card" style="margin-top:var(--space-xl);"> <h4 class="o-sidebar-card__title"><?php esc_html_e( 'Quick Links', 'ophiro' ); ?></h4> <ul class="o-footer-links"> <li><a href="<?php echo esc_url( home_url( '/journeys/' ) ); ?>"><?php esc_html_e( 'All Journeys', 'ophiro' ); ?></a></li> <li><a href="<?php echo esc_url( home_url( '/enquire/' ) ); ?>"><?php esc_html_e( 'Plan Your Journey', 'ophiro' ); ?></a></li> <li><a href="<?php echo esc_url( home_url( '/sri-lanka/best-time-to-visit/' ) ); ?>"><?php esc_html_e( 'Best Time to Visit', 'ophiro' ); ?></a></li> </ul> </div> </aside> </div> </div> <?php endwhile; endif; get_footer();
Save Changes
Cancel
Create New File
Create New Folder