-
Notifications
You must be signed in to change notification settings - Fork 14
/
content-page.php
42 lines (29 loc) · 1.67 KB
/
content-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
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article" itemscope itemtype="http://schema.org/BlogPosting">
<?php if ( has_post_thumbnail() ): ?>
<div class="postimglist maybeImgCopyright">
<a href="<?php the_permalink(); ?>" class="postimglist-a"><?php the_post_thumbnail('medium'); ?></a>
<?php $imgcopyright = get_post_meta(get_post_thumbnail_id(), '_copyright', true);
if ($imgcopyright) { ?>
<p class="caption imgCopyright"><?php echo make_clickable($imgcopyright);?></p>
<?php } ?>
</div>
<?php endif; ?>
<header class="article-header">
<h2 class="h2"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
</header>
<section class="entry-content clearfix" itemprop="articleBody">
<?php the_excerpt(); ?>
<p><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>" class="readmore">Weiterlesen »</a></p>
</section>
</article>
<?php else : ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article" itemscope itemtype="http://schema.org/BlogPosting">
<header class="article-header">
<h1 class="page-title" itemprop="headline"><?php the_title(); ?></h1>
</header>
<section class="entry-content clearfix" itemprop="articleBody">
<?php the_content(); ?>
</section>
</article>
<?php endif; ?>