forked from andreaslloyd/Borgerlyst
-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.php
34 lines (30 loc) · 1.51 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
<?php get_header(); ?>
<div id="content" class="group">
<div class="articles search">
<?php if (have_posts()) : ?>
<h1>Søgeresultater</h1>
<?php while (have_posts()) : the_post(); ?>
<div class="article" id="post-<?php the_ID(); ?>">
<div class="header group">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent link til <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<p>
<a href="<?php the_permalink() ?>#commentform" class="comments"><?php $comment_count = get_comment_count($post->ID); ?>Kommentarer (<?=$comment_count['approved']?>)</a>
<span class="meta">
<span class="time"><?php the_time('j. F, Y') ?></span> –
<span class="author">skrevet af <?php the_author_posts_link(); ?></span>
</span>
</p>
</div>
</div>
<?php endwhile; ?>
<div class="nav" id="nav-articles">
<?php next_posts_link('« Ældre indlæg') ?>
<?php previous_posts_link('Nyere indlæg »') ?>
</div>
<?php else : ?>
<h1>Ingen indlæg fundet - prøv en anden søgning:</h1>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>