Sparkling-Child-Theme für Klimabündnis Hamm.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

112 lines
3.1 KiB

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php
$featured_image_args = array(
'class' => 'single-featured',
);
if ( is_page_template( 'page-fullwidth.php' ) ) {
the_post_thumbnail( 'full', $featured_image_args );
} else {
the_post_thumbnail( 'full', $featured_image_args );
}
?>
<div class="post-inner-content">
<header class="entry-header page-header">
<h1 class="entry-title "><?php the_title(); ?></h1>
<div class="entry-meta">
<?php sparkling_posted_on(); ?>
<?php
/* translators: used between list items, there is a space after the comma */
$categories_list = get_the_category_list( esc_html__( ', ', 'sparkling' ) );
if ( $categories_list && sparkling_categorized_blog() ) :
?>
<!--<span class="cat-links"><i class="fa fa-folder-open"></i>
<?php //printf( esc_html__( ' %1$s', 'sparkling' ), $categories_list ); ?>
</span>
-->
<span class="cat-links"><a class="url fn n" href="<?php echo wp_get_shortlink(); ?>"><?php echo 'Kurzlink'; ?></a> </span>
<?php endif; // End if categories ?>
<?php if ( get_edit_post_link() ) : ?>
<?php
edit_post_link(
/*sprintf(
/* translators: %s: Name of current post
esc_html__( 'Edit %s', 'sparkling' ),
the_title( '<span class="screen-reader-text">"', '"</span>', false )
),*/
'<i class="fa fa-edit"></i>
<span class="edit-link">',
'</span>'
);
?>
<?php endif; ?>
</div><!-- .entry-meta -->
</header><!-- .entry-header -->
<div class="entry-content">
<?php the_content(); ?>
<?php
wp_link_pages(
array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'sparkling' ),
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
'pagelink' => '%',
'echo' => 1,
)
);
?>
</div><!-- .entry-content -->
<footer class="entry-meta">
<?php if ( has_tag() ) : ?>
<!-- tags -->
<div class="tagcloud">
<?php
$tags = get_the_tags( get_the_ID() );
foreach ( $tags as $tag ) {
echo '<a href="' . get_tag_link( $tag->term_id ) . '">' . $tag->name . '</a> ';
}
?>
</div>
<!-- end tags -->
<?php endif; ?>
</footer><!-- .entry-meta -->
</div>
<?php if ( get_the_author_meta( 'description' ) ) : ?>
<div class="post-inner-content secondary-content-box">
<!-- author bio -->
<div class="author-bio content-box-inner">
<!-- avatar -->
<div class="avatar">
<?php echo get_avatar( get_the_author_meta( 'ID' ), '60' ); ?>
</div>
<!-- end avatar -->
<!-- user bio -->
<div class="author-bio-content">
<h4 class="author-name"><a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"><?php echo get_the_author_meta( 'display_name' ); ?></a></h4>
<p class="author-description">
<?php echo get_the_author_meta( 'description' ); ?>
</p>
</div><!-- end .author-bio-content -->
</div><!-- end .author-bio -->
</div>
<?php endif; ?>
</article><!-- #post-## -->