-
Notifications
You must be signed in to change notification settings - Fork 30
/
home.php
117 lines (101 loc) · 3.34 KB
/
home.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<?php get_header(); ?>
<div class="section teaser">
<div class="row">
<?php get_sidebar( 'teaser' ); ?>
</div>
</div>
<div class="section content" id="main-content">
<div class="row">
<div class="content-primary">
<div class="skin">
<?php
$i = 0; $col = 0; $col_count = 3;
$cols = array();
while (have_posts() && $i<3) : the_post();
$i++;
if($col >= $col_count) $col = 0;
ob_start();
?>
<div class="post" id="post-'<?php the_ID(); ?>'">
<div class="post-title">
<h2>
<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>">
<?php the_title(); ?>
</a>
</h2>
</div>
<div class="post-info">
<div class="commentbubble">
<?php comments_popup_link( '0', '1', '%', 'comments-link', '-');?>
</div>
<div class="cal-icon">
<span class="day"><?php the_time('j'); ?></span>
<span class="month"><?php the_time('m.'); ?></span>
<span class="year"><?php the_time('Y'); ?></span>
</div>
</div>
<div class="post-entry">
<? // Weiche für den ersten Artikel
if ($i==1) {
the_content_rss('', FALSE, '', 80); ?>
<a href="<? the_permalink() ?>"><strong><?php the_title(); ?></strong> weiterlesen</a>
<? } else {
the_content('weiterlesen'); } ?>
</div>
</div>
<hr />
<?php
$output = ob_get_contents();
ob_end_clean();
$cols[$col++] .= $output;
endwhile;
?>
<div class="columns">
<?php
foreach($cols as $key => $col)
echo '<div class="column column' . $key . '">' . $col . '</div>';
?>
</div>
<?php if ( ! have_posts() ) : ?>
<h2><?php _e( 'Nicht gefunden', 'twentyten' ); ?></h2>
<p><?php _e( 'Entschuldigung, aber es wurde nichts gefunden. :(', 'twentyten' ); ?></p>
<?php get_search_form(); ?>
<?php endif; ?>
<div class="startpage-widget-area">
<div class="first-startpage-widget-area">
<div class="skin">
<div xmlns="http://www.w3.org/1999/xhtml" class="widget">
<h3>Weitere Artikel</h3>
<ul>
<?php $postslist = get_posts('numberposts=5&order=DESC&offset=3'); foreach ($postslist as $post) : setup_postdata($post); ?>
<li><a title="Post: <?php the_title(); ?>" href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
<span class="date"><?php the_time('d.m.Y') ?></span></li>
<?php endforeach; ?>
</ul>
<a href="<?php echo home_url( '/' ); ?>category/pm/" class="all-articles">alle Artikel</a>
</div>
</div>
</div>
<div class="second-startpage-widget-area">
<div class="skin">
<?php if ( is_active_sidebar( 'second-startpage-widget-area' ) ) : ?>
<?php dynamic_sidebar( 'second-startpage-widget-area' ); ?>
<?php endif; ?>
</div>
</div>
</div>
</div>
</div>
<div class="content-aside">
<div class="skin">
<?php get_sidebar(); ?>
</div>
</div>
</div>
</div>
<div class="section subcontent">
<div class="row">
<?php get_sidebar( 'subcontent' ); ?>
</div>
</div>
<?php get_footer(); ?>