PATH:
home
/
lab2454c
/
biocei.com
/
wp-content
/
themes
/
biocei
<?php /** * The template for displaying search results pages * * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#search-result * * @package WP_Bootstrap_Starter */ global $wp_query; get_header(); ?> <div class="body__container__wrapp body__container__wrapp__inner"> <div class="news__list__wrapp"> <div class="container"> <div class="row"> <div class="programs__wrapp__inner"> <div class="container"> <div class="programs__content__wrapp"> <div class="row align-items-center"> <div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 mr__top__large"> <?php if (have_posts()): $flag = 1; $page = (get_query_var('paged')) ? get_query_var('paged') : 1; $ppp = get_query_var('posts_per_page'); $end = $ppp * $page; $total = $wp_query->found_posts; $dif = $ppp; if(($total-$end) < 0){ $dif = $ppp+$dif; } while (have_posts()): the_post(); if($flag == 1): echo '<div class="news__list__wrapp__inner">'; endif; get_template_part('template-parts/content', 'search'); if($flag % 2 == 0): echo '</div>'; endif; if($flag % 2 == 0 && ($flag < $dif && $flag < $ppp)): echo '<div class="news__list__wrapp__inner">'; endif; if($flag == $dif): echo '</div>'; endif; $flag++; endwhile; // End of the loop. the_posts_pagination(array('mid_size' => 5)); else: get_template_part('template-parts/content', 'none'); endif; ?> </div> </div> </div> </div> </div> </div> </div> </div> </div> <?php get_footer();
[+]
woocommerce
[-] template-climate-delivery-initiative.php
[edit]
[-] footer-widget.php
[edit]
[-] search.php
[edit]
[-] template-learning-laboratory.php
[edit]
[-] template-funding.php
[edit]
[-] index.php
[edit]
[-] woocommerce.php
[edit]
[-] page.php
[edit]
[-] searchform.php
[edit]
[+]
..
[-] sidebar.php
[edit]
[-] rtl.css
[edit]
[-] blank-page-with-container.php
[edit]
[-] single.php
[edit]
[-] template-programs.php
[edit]
[-] footer.php
[edit]
[-] template-events.php
[edit]
[-] template-about.php
[edit]
[-] template-home.php
[edit]
[-] blank-page.php
[edit]
[-] left-sidebar.php
[edit]
[-] header.php
[edit]
[-] style.css
[edit]
[-] 404.php
[edit]
[-] readme.txt
[edit]
[-] template-team.php
[edit]
[-] template-our-work.php
[edit]
[-] template-governance.php
[edit]
[-] single-attachment.php
[edit]
[-] template-overview.php
[edit]
[-] screenshot.png
[edit]
[-] custom-editor-style.css
[edit]
[-] template-news-events.php
[edit]
[-] template-Integrated-results-frameworks.php
[edit]
[-] functions.php
[edit]
[-] template-work-asia.php
[edit]
[-] template-programs-details.php
[edit]
[-] archive.php
[edit]
[-] fullwidth.php
[edit]
[-] error_log
[edit]
[+]
template-parts
[-] template-events-listing.php
[edit]
[-] comments.php
[edit]
[-] template-contact.php
[edit]
[+]
inc