-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.php
49 lines (39 loc) · 1.91 KB
/
search.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
require get_template_directory() . '/assets/php/navigations/socials.php';
require get_template_directory() . '/assets/php/navigations/left_navigation.php';
?>
<?php get_header(); ?>
<?php get_template_part('template-parts/content', "mobile_bottom")?>
<div class="main_flow">
<aside class="main_flow__aside">
<nav class="menu" aria-label=<?php echo __("Основное меню", "kinder")?>>
<div class="menu__sticky">
<h3 class="menu__heading"><?php echo __("Навигация", "kinder")?></h3>
<?php get_left_top_menu(); ?>
<?php echo get_left_middle_menu(); ?>
<div class="menu__socials">
<?php echo get_left_socials(); ?>
</div>
</div>
</nav>
</aside>
<main class="main_flow__main">
<div class="main" >
<div class="main__wrapper" style="display: flex; flex-direction: column; gap: 3rem;">
<?php get_template_part('/template-parts/content', 'breadcrumbs_single')?>
<?php get_search_form(); ?>
<?php if (have_posts()) : ?>
<header class="page-header">
<h1 class="page-title"><?php printf(__('Поисковые результаты: %s', 'kinder'), get_search_query()); ?></h1>
</header>
<?php while (have_posts()) : the_post(); ?>
<?php get_template_part('/template-parts/content', 'search-card');?>
<?php endwhile; ?>
<?php else : ?>
<p><?php _e(__('Ничего не найдено'), 'textdomain'); ?></p>
<?php endif; ?>
</div>
</div>
</main>
</div>
<?php get_footer(); ?>