forked from korbinian/Piratenkleider
-
Notifications
You must be signed in to change notification settings - Fork 1
/
sidebar-teaser.php
33 lines (31 loc) · 781 Bytes
/
sidebar-teaser.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
<div class="first-teaser-widget-area">
<?php
query_posts('category_name=Slider&post_per_page=3');
echo "<div class='flexslider'>";
echo "<ul class='slides'>";
if ( have_posts() ) while ( have_posts() ) : the_post();
echo "<li class='slide'>";
if (has_post_thumbnail()) the_post_thumbnail('full');
echo "<div class='caption'>";
echo "<h3>Topthema</h3>";
echo "<h2>";
echo "<a href=";
the_permalink();
echo ">";
echo short_title('…', 6);
echo "</a>";
echo "</h2>";
echo "</div>";
echo "</li>";
endwhile;
echo "</ul>";
echo "</div>";
wp_reset_query(); ?>
</div>
<div class="second-teaser-widget-area">
<div class="skin">
<?php if ( is_active_sidebar( 'second-teaser-widget-area' ) ) : ?>
<?php dynamic_sidebar( 'second-teaser-widget-area' ); ?>
<?php endif; ?>
</div>
</div>