2018-10-26 11:51:32 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* The default template for displaying content
|
|
|
|
*
|
|
|
|
* Used for both single and index/archive/search.
|
|
|
|
*
|
|
|
|
* @package FoundationPress
|
|
|
|
* @since FoundationPress 1.0.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
|
|
|
<header>
|
|
|
|
<?php
|
|
|
|
if ( is_single() ) {
|
|
|
|
the_title( '<h1 class="entry-title">', '</h1>' );
|
|
|
|
} else {
|
|
|
|
the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<?php foundationpress_entry_meta(); ?>
|
|
|
|
</header>
|
|
|
|
<div class="entry-content">
|
|
|
|
<?php the_content(); ?>
|
2018-10-30 13:16:00 +01:00
|
|
|
<?php edit_post_link( __( '(Edit)', 'foundationpress' ), '<p class="edit-link">', '</p>' ); ?>
|
2018-10-26 11:51:32 +02:00
|
|
|
</div>
|
|
|
|
<footer>
|
|
|
|
<?php
|
|
|
|
wp_link_pages(
|
|
|
|
array(
|
|
|
|
'before' => '<nav id="page-nav"><p>' . __( 'Pages:', 'foundationpress' ),
|
|
|
|
'after' => '</p></nav>',
|
|
|
|
)
|
|
|
|
);
|
|
|
|
?>
|
|
|
|
<?php $tag = get_the_tags(); if ( $tag ) { ?><p><?php the_tags(); ?></p><?php } ?>
|
|
|
|
</footer>
|
|
|
|
</article>
|