add files
This commit is contained in:
39
template-parts/search/search.php
Normal file
39
template-parts/search/search.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<!--[search/search]-->
|
||||
|
||||
<?php get_header();?>
|
||||
|
||||
<div class="col-12 col-md-12 col-xl-9">
|
||||
|
||||
<?php get_template_part( "template-parts/search/search-form" ) ?>
|
||||
|
||||
<?php if( !!!get_query_var("s") ) : ?>
|
||||
|
||||
<p class="mt-4">Введите запрос для поиска.</p>
|
||||
|
||||
<?php else: ?>
|
||||
|
||||
<?php if( have_posts() ) : ?>
|
||||
|
||||
<?php get_template_part( "template-parts/search/search-results" ) ?>
|
||||
|
||||
<?php get_template_part( "template-parts/search/search-ajax-load-more" ) ?>
|
||||
|
||||
<?php else: ?>
|
||||
|
||||
<p class="mt-4">Ничего не найдено.</p>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-4 col-xl-3 d-none d-xl-block">
|
||||
|
||||
<?php get_template_part( "template-parts/sidebar/right-sidebar" ) ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php get_footer(); ?>
|
||||
|
||||
<!--[/search/search]-->
|
||||
Reference in New Issue
Block a user