forked from kre8tiv/Joseph-knows-best
-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-home-sticky.php
120 lines (74 loc) · 2.88 KB
/
page-home-sticky.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
118
<?php
/*
Template Name: Startseite mit Sticky-Posts
*/
?>
<?php get_header(); ?>
<section id="content"><div class="inner wrap clearfix">
<?php if (!is_paged()) { ?>
<div id="teaser" class="clearfix">
<div class="josephbeuys clearfix">
<?php $args = array(
'posts_per_page' => 3,
'post__in' => get_option( 'sticky_posts' ),
'ignore_sticky_posts' => 1
);
query_posts($args);
?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content-list-home', get_post_format() ); ?>
<?php endwhile; ?>
</div>
</div>
<?php } ?>
<section class="actionbox clearfix">
<?php dynamic_sidebar('homeone'); ?>
</section>
<div class="ninecol first clearfix" role="main">
<div class="responsive-tabs home-tabs">
<h2><span>Aktuelles</span></h2>
<div class="tab clearfix">
<?php wp_reset_query(); ?>
<?php
if ( get_query_var('paged') ) { $paged = get_query_var('paged'); }
elseif ( get_query_var('page') ) { $paged = get_query_var('page'); }
else { $paged = 1; }
$postsperpage = get_option('posts_per_page');
query_posts('posts_per_page='. $postsperpage .'&ignore_sticky_posts=1&paged=' . $paged);
?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content-list', get_post_format() ); ?>
<?php endwhile; ?>
</div>
<h2><span>Termine</span></h2>
<div class="tab clearfix">
<?php echo do_shortcode('[wpcalendar]'); ?>
</div>
<h2><span>Presse</span></h2>
<div class="tab clearfix">
<?php wp_reset_query(); ?>
<?php
$postsperpage = get_option('posts_per_page');
query_posts('posts_per_page=20&ignore_sticky_posts=1&category_name=presse');
?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content-list-small', get_post_format() ); ?>
<?php endwhile; ?>
</div>
<h2><span>Beschlüsse</span></h2>
<div class="tab clearfix">
<?php wp_reset_query(); ?>
<?php
$postsperpage = get_option('posts_per_page');
query_posts('posts_per_page=20&ignore_sticky_posts=1&category_name=beschluesse');
?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content-list-small', get_post_format() ); ?>
<?php endwhile; ?>
</div>
</div>
</div>
<script>jQuery(document).ready(function() { RESPONSIVEUI.responsiveTabs(); }) </script>
<?php get_sidebar(); ?>
</div></section>
<?php get_footer(); ?>