
<?php 

$search_title = get_search_query() ;

?>
   <div class="page-header" >
      <div class="container" >
            <div class="row justify-content-center">
               <div class="col-xl-10 col-lg-10 col-md-12">
                  <div class="page-banner-content text-center">
                        <ul class="list-inline breadcrumb-nav">
                           <li class="list-inline-item">
                           <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php echo esc_html__('Home','edify');?></a>
                           </li>
                           <li class="list-inline-item"><?php echo esc_html('/');?></li>
                           <li class="list-inline-item">
                                 <?php 
                                 if(is_search()){
                                    echo esc_html($search_title);
                                 }
                                 elseif(is_archive()){
                                    the_archive_title();
                                 }
                                 elseif(( is_404() )){
                                    printf( esc_html__( '404 not found', 'edify' ), '<span>' );
                                 }
                                 else{
                                    the_title(); 
                                 }
                                 ?>
                           </li>
                        </ul>
                     <h1 class="banner-title ">
                        <?php 
                           if(is_archive()){
                                 the_archive_title();
                           }
                           elseif(is_single())
                           {
                              the_title();
                           }
                           elseif(is_search()){
                              printf( esc_html__( 'Search Results for: %s', 'edify' ), '<span>' . get_search_query() . '</span>' );
                           }
                           elseif(( is_404() )){
                              printf( esc_html__( 'edify', 'edify' ), '<span>' );
                           }
                           else{
                              the_title();
                           }
                        ?> 
                     </h1>
                  </div>
               </div>
            </div>
      </div>
   </div>  
  

