-
Notifications
You must be signed in to change notification settings - Fork 14
/
page.php
29 lines (20 loc) · 913 Bytes
/
page.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
<?php get_header(); ?>
<div id="main" class="ninecol first clearfix" role="main">
<?php if ( has_post_thumbnail() ): ?>
<?php $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full' );
$url = $thumb['0']; ?>
<a href="<?php echo $url ?>" class="postimg fancybox"><?php the_post_thumbnail('titelbild'); ?></a>
<?php
$imgexc = get_post(get_post_thumbnail_id())->post_excerpt;
if ($imgexc != "") {
?><p class="caption"><span><i class="fas fa-image"></i> <?php echo $imgexc;?></span></p><?php
}
?>
<?php endif; ?>
<?php while (have_posts()): the_post(); ?>
<?php kr8_template_part('content', get_post_type()) ;?>
<?php comments_template(); ?>
<?php endwhile; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>