-
Notifications
You must be signed in to change notification settings - Fork 1
/
search.php
55 lines (46 loc) · 1.63 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
50
51
52
53
54
55
<?php
get_header();
global $wp_query;
?>
<div class="wapper">
<div class="contentarea clearfix">
<div class="content">
<div class="search-header">
<h1 class="search-title"><?php esc_html_e('Suchresultate', 'slrg-sss-nautilus'); ?></h1>
<p><?php
printf(esc_html(_n(
'Es wurde %d Resultat zum Stichwort «%s» gefunden.',
'Es wurden %d Resultate zum Stichwort «%s» gefunden.',
(int)$wp_query->found_posts,
'slrg-sss-nautilus'
)), (int)$wp_query->found_posts, get_search_query(false)); ?>
</p>
</div>
<?php if (have_posts()) { ?>
<ul>
<?php while (have_posts()) {
the_post(); ?>
<li>
<h3><a href="<?php echo get_permalink(); ?>">
<?php the_title(); ?>
</a></h3>
<?php echo substr(get_the_excerpt(), 0, 240); ?>...
<div class="h-readmore">
<div class="wp-block-button"><a href="<?php the_permalink(); ?>" class="wp-block-button__link"><?php esc_html_e('weiterlesen', 'slrg-sss-nautilus'); ?></a></div>
</div>
</li>
<?php } ?>
</ul>
<div class="search-pageing">
<?php echo paginate_links(); ?>
</div>
<?php } ?>
<div class="search-footer">
<p><?php esc_html_e('Nicht das gefunden, nach dem du gesucht hast?', 'slrg-sss-nautilus'); ?></p>
<h3><?php esc_html_e('Nochmals suchen...', 'slrg-sss-nautilus'); ?></h3>
<?php get_search_form(); ?>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>