arc-hive-wordpress-theme/template-parts/content.php

41 lines
1.1 KiB
PHP
Raw Permalink Normal View History

<?php
/**
* The default template for displaying content
*
* Used for both single and index/archive/search.
*
2021-04-28 01:20:47 +02:00
* @package arcHIVE-theme
* @since arcHIVE-theme 1.0.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header>
<?php
//https://developer.wordpress.org/reference/functions/permalink_anchor/
if ( is_single() ) {
permalink_anchor();the_title( '<h1 class="entry-title">', '</h1>' );
} else {
permalink_anchor();the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
}
?>
2021-04-29 00:56:02 +02:00
<?php //foundationpress_entry_meta(); ?>
</header>
<div class="entry-content">
<?php the_content(); ?>
<?php edit_post_link( __( '(Edit)', 'foundationpress' ), '<span class="edit-link">', '</span>' ); ?>
</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>