-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.php
56 lines (47 loc) · 2.42 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
56
<?php get_header(); ?>
<?php the_post(); ?>
<div id="sidebar">
<!-- Desktop Navigation -->
<div id="sidebar-navigation-desktop">
<?php custom_sidebar_menu('2'); ?>
</div>
<div>
<?php dynamic_sidebar('body_sidebar'); ?>
</div>
</div>
<div id="page-content-container">
<div class="breadcrumb breadcrumb-search">
<?php breadcrumb(); ?>
</div>
<?php if (have_posts()) : ?>
<div class="post">
<h2 class="search-h2">Deine Suchergebnisse zu "<?php the_search_query(); ?>"</h2>
<div class="entry">
<p>Durchsucht wurden alle Beiträge der Webseite, das Archiv und alle Unterseiten. Auf Groß- und Kleinschreibung wird beim Suchen nicht geachtet.</p>
<?php while (have_posts()) : the_post(); ?>
<h3 class="search-h3" id="post-<?php the_ID(); ?>">
<a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>">
<?php the_title(); ?>
</a>
</h3>
<div class="search-excerpt">
<?php the_excerpt() ?>
</div>
<?php endwhile; ?>
</div>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« mehr Ergebnisse') ?></div>
<div class="alignright"><?php previous_posts_link('mehr Ergebnisse »') ?></div>
</div>
</div>
<?php else : ?>
<div class="post">
<h2>Seite durchsuchen</h2>
<div class="entry">
<h3 class="pagetitle">Deine Suche zu "<?php the_search_query(); ?>" lieferte leider keine Ergebnisse.</h2>
<p>Versuche es doch ein bisschen unschärfer noch einmal oder verändere den Suchbegriff, denn es wird nach exakten Übereinstimmungen gesucht. Die Groß- und Kleinschreibung deines Suchbegriffs wird aber ignoriert.</p>
</div>
</div>
<?php endif; ?>
</div>
<?php get_footer(); ?>