-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathallarticles.php
79 lines (63 loc) · 2.5 KB
/
allarticles.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?php
/**
* @package WordPress
* @subpackage DE-Minimal
Template Name: All-Articles
*/
get_header();?>
<div class="background">
<?php query_posts('showposts=-1&cat=-46'); ?>
<?php if (have_posts()) : ?>
<div class="entry">
<h1>Alle Artikel</h1>
<?php if ( function_exists('wp_tag_cloud') ) : ?>
<div class="tagcloud">
<h4>Meine Tags</h4>
<?php wp_tag_cloud('smallest=8&largest=22'); ?>
</div>
<?php endif; ?>
</div>
<div class="artikellist">
<?php $count = 1 ?><?php while(have_posts()) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" class="post">
<div class="entry">
<h4>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<div class="info" style="width: 20%; float: left;">
<?php the_time('d.m.Y'); ?>
<br />
<?php if (in_category( 'bilder')): ?>
<div class="photo">
<?php elseif (is_linked_list()): ?>
<div class="link">
<?php else: ?>
<div class="blogpost">
<?php endif; ?>
<span class="icon1"><i class="icon-file-alt"></i></span>
<span class="icon2"><i class="icon-camera"></i></span>
<span class="icon3"><i class="icon-star"></i></span>
</div>
</div>
<div class="title"><?php the_title(); ?></div>
</a>
</h4>
</div>
</div>
<?php $count = $count + 1; ?>
<?php endwhile; ?>
<?php else :
if ( is_category() ) { // If this is a category archive
printf("<h2 class='center'>Sorry, but there aren't any posts in the %s category yet.</h2>", single_cat_title('',false));
} else if ( is_date() ) { // If this is a date archive
echo("<h2>Sorry, but there aren't any posts with this date.</h2>");
} else if ( is_author() ) { // If this is a category archive
$userdata = get_userdatabylogin(get_query_var('author_name'));
printf("<h2 class='center'>Sorry, but there aren't any posts by %s yet.</h2>", $userdata->display_name);
} else {
echo("<h2 class='center'>No posts found.</h2>");
}
get_search_form();
endif; ?>
</div>
</div>
<?php get_footer(); ?>