File manager - Edit - /home/verseaumee/middletvnew/wp-content/themes/theme/search.php
Back
<?php /** * The template for displaying search results pages * * @package Art Blog */ get_header(); ?> <?php $art_blog_archive_layout = get_theme_mod( 'art_blog_archive_layout', 'layout-1' ); ?> <div class="container"> <?php if ( $art_blog_archive_layout == 'layout-1' ) { ?> <div class="main-wrapper"> <main id="primary" class="site-main ct-post-wrapper lay-width"> <?php if ( have_posts() ) : ?> <header class="page-header"> <h1 class="page-title"> <?php /* translators: %s: search query. */ printf( esc_html__( 'Search Results for: %s', 'art-blog' ), '<span>' . get_search_query() . '</span>' ); ?> </h1> </header> <?php /* Start the Loop */ while ( have_posts() ) : the_post(); get_template_part( 'revolution/template-parts/content', get_post_format() ); endwhile; the_posts_navigation(); else : get_template_part( 'revolution/template-parts/content', 'none' ); endif; ?> </main> <?php get_sidebar(); ?> </div> <?php } elseif ( $art_blog_archive_layout == 'layout-2' ) { ?> <div class="main-wrapper"> <?php get_sidebar(); ?> <main id="primary" class="site-main ct-post-wrapper lay-width"> <?php if ( have_posts() ) : ?> <header class="page-header"> <h1 class="page-title"> <?php /* translators: %s: search query. */ printf( esc_html__( 'Search Results for: %s', 'art-blog' ), '<span>' . get_search_query() . '</span>' ); ?> </h1> </header> <?php /* Start the Loop */ while ( have_posts() ) : the_post(); get_template_part( 'revolution/template-parts/content', get_post_format() ); endwhile; the_posts_navigation(); else : get_template_part( 'revolution/template-parts/content', 'none' ); endif; ?> </main> </div> <?php } elseif ( $art_blog_archive_layout == 'layout-3' ) { // No-sidebar layout ?> <div class="main-wrapper full-width"> <main id="primary" class="site-main ct-post-wrapper lay-width"> <?php if ( have_posts() ) : ?> <header class="page-header"> <h1 class="page-title"> <?php /* translators: %s: search query. */ printf( esc_html__( 'Search Results for: %s', 'art-blog' ), '<span>' . get_search_query() . '</span>' ); ?> </h1> </header> <?php /* Start the Loop */ while ( have_posts() ) : the_post(); get_template_part( 'revolution/template-parts/content', get_post_format() ); endwhile; the_posts_navigation(); else : get_template_part( 'revolution/template-parts/content', 'none' ); endif; ?> </main> </div> <?php } ?> </div> <?php get_footer(); ?>
| ver. 1.4 |
Github
|
.
| PHP 8.5.7 | Generation time: 0 |
proxy
|
phpinfo
|
Settings