PATH:
home
/
lab2454c
/
veritserv.com
/
wp-content
/
themes
/
veritserv
<?php defined( 'ABSPATH' ) || exit; /** * The template for displaying all single posts * * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post * * @package WP_Bootstrap_Starter */ get_header(); ?> <?php if(get_field('s_banner_image', 'options')){ ?> <div class="header__banner__main header__banner__main__inner"> <div class="header__banner___overlay"></div> <div class="image__box"> <img src="<?php the_field('s_banner_image', 'options'); ?>" alt="" /> </div> <div class="banner__content"> <div class="container"> <div class="banner__container__inner"> <?php if(get_field('s_banner_highlighted_title', 'options')){ ?> <h1><?php the_field('s_banner_highlighted_title', 'options') ?> <span><?php the_field('s_banner_non-highlighted_title', 'options'); ?></span> </h1> <?php } ?> <?php if(get_field('s_banner_content', 'options')){ ?> <p><?php the_field('s_banner_content', 'options'); ?></p> <?php } ?> </div> </div> </div> </div> <?php } ?> <div class="body__container__wrapp__inner"> <div class="news__wrap"> <div class="container"> <div class="row"> <?php while ( have_posts() ) : the_post(); ?> <div class="col-xl-8 col-lg-8 col-md-7"> <div class="news__item news__item__details mr__top"> <?php if ( has_post_thumbnail() ) { ?> <div class="image__box"> <?php the_post_thumbnail(); ?> </div> <?php } ?> <div class="news__containt"> <h2><?php the_title(); ?></h2> <div class="news__meta"><?php echo get_the_date( 'F d, Y', get_the_ID() ); ?></div> <?php the_content();?> </div> <?php // If comments are open or we have at least one comment, load up the comment template. // if ( comments_open() || get_comments_number() ) : // comments_template(); // endif; ?> </div> <?php $prev_post = get_previous_post(); $id = $prev_post->ID ; $permalink = get_permalink( $id ); ?> <?php $next_post = get_next_post(); $nid = $next_post->ID ; $npermalink = get_permalink($nid); ?> <div class="blog__details__navigation"> <?php if(!empty($prev_post)){ ?> <div class="blog__single__navigation prev"> <a href="<?php echo $permalink;?>"> <span>Previous post</span> <div class="news__title"><?php echo wp_trim_words($prev_post->post_title, 10, '...'); ?></div> </a> </div> <?php } ?> <?php if(!empty($next_post)){ ?> <div class="blog__single__navigation next"> <a href="<?php echo $npermalink;?>"> <span>Next post</span> <div class="news__title"><?php echo wp_trim_words($next_post->post_title, 10, '...'); ?></div> </a> </div> <?php } ?> </div> </div> <?php endwhile; // End of the loop. wp_reset_postdata(); ?> <div class="col-xl-4 col-lg-4 col-md-5 mr__top"> <div class="side__bar__wrap"> <div class="search__wrap"> <form role="search" method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>"> <div class="form-group form__group"> <input type="search" class="form-control form__control" placeholder="<?php echo esc_attr_x( 'Search …', 'placeholder', 'wp-bootstrap-starter' ); ?>" value="<?php echo esc_attr( get_search_query() ); ?>" name="s" title="<?php _ex( 'Search Newsroom...', 'label', 'wp-bootstrap-starter' ); ?>"> <button type="submit" class="btn btn-default submit__btn"><i class="ico__box"><img src="<?php echo get_template_directory_uri(); ?>/inc/assets/images/search-icon.svg" alt="" /></i></button> </div> </form> </div> <div class="related__news"> <h3>FEATURED</h3> <ul> <?php $args = array( 'post_type' => 'post',// your post type, 'orderby' => 'post_date', 'order' => 'DESC', 'posts_per_page' => 6, ); $ser_query = new Wp_Query($args); $ser_query->found_posts; $post_tags = get_the_tags(); if (have_posts()): while ($ser_query->have_posts()): $ser_query->the_post(); ?> <li> <a href="<?php echo the_permalink();?>"><?php echo wp_trim_words(get_the_title(), 10, '...'); ?> <div class="news__meta"><?php echo get_the_date( 'F d, Y', get_the_ID() ); ?></div> </a> </li> <?php endwhile; wp_reset_query(); endif;?> </ul> </div> </div> </div> </div> </div> </div> </div> <?php $post_object = get_field('add_global_signup_section'); if( $post_object ): $post = $post_object; setup_postdata( $post ); echo get_template_part( 'template', 'global' ); wp_reset_postdata(); endif; ?> <?php get_footer();
[+]
woocommerce
[-] template-crypthorize.php
[edit]
[-] footer-widget.php
[edit]
[-] search.php
[edit]
[-] template-cryptocurrency.php
[edit]
[-] template-cryptoecommerce.php
[edit]
[-] index.php
[edit]
[-] woocommerce.php
[edit]
[-] page.php
[edit]
[-] searchform.php
[edit]
[-] template-globalecommerce.php
[edit]
[+]
..
[-] template-cryptoretail.php
[edit]
[-] template-support.php
[edit]
[-] sidebar.php
[edit]
[-] rtl.css
[edit]
[-] blank-page-with-container.php
[edit]
[-] single.php
[edit]
[-] footer.php
[edit]
[-] template-about.php
[edit]
[-] template-home.php
[edit]
[-] .DS_Store
[edit]
[-] blank-page.php
[edit]
[-] left-sidebar.php
[edit]
[-] header.php
[edit]
[-] style.css
[edit]
[-] 404.php
[edit]
[-] single-attachment.php
[edit]
[-] .htaccess
[edit]
[-] screenshot.png
[edit]
[-] custom-editor-style.css
[edit]
[-] functions.php
[edit]
[-] template-global.php
[edit]
[-] archive.php
[edit]
[-] fullwidth.php
[edit]
[-] error_log
[edit]
[+]
template-parts
[-] comments.php
[edit]
[-] template-services.php
[edit]
[-] template-globalretail.php
[edit]
[-] template-contact.php
[edit]
[+]
inc
[-] template-blog.php
[edit]
[-] woocommerce-old.php
[edit]