53 lines
1.5 KiB
PHP
53 lines
1.5 KiB
PHP
<?php
|
|
/**
|
|
* Template part for displaying single downloads.
|
|
*
|
|
* @link https://codex.wordpress.org/Template_Hierarchy
|
|
*
|
|
* @package themotion
|
|
*/
|
|
|
|
?>
|
|
|
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
|
|
|
<?php
|
|
if ( has_post_thumbnail() ) {
|
|
echo '<a href="' . esc_url( get_permalink() ) . '" class="post-thumbnail" rel="bookmark">';
|
|
the_post_thumbnail();
|
|
echo '</a>';
|
|
}
|
|
?>
|
|
|
|
<header class="entry-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>' );
|
|
}
|
|
$post_id = get_the_ID();
|
|
themotion_post_info( 'download_categories',$post_id );
|
|
themotion_post_info( 'download_tags',$post_id );
|
|
// echo '<a href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '" class="entry-author">' . get_the_author() . '</a>';
|
|
edit_post_link( __( 'Edit', 'themotion' ), '<span class="edit-link">', '</span>' ); ?>
|
|
</header><!-- .entry-header -->
|
|
<div class="entry-content">
|
|
<?php
|
|
|
|
the_content( sprintf(
|
|
/* translators: %s: Name of current post. */
|
|
wp_kses( __( 'Continue reading %s <span class="meta-nav">→</span>', 'themotion' ), array( 'span' => array( 'class' => array() ) ) ),
|
|
the_title( '<span class="screen-reader-text">"', '"</span>', false )
|
|
) );
|
|
|
|
wp_link_pages( array(
|
|
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'themotion' ),
|
|
'after' => '</div>',
|
|
) );
|
|
|
|
?>
|
|
</div><!-- .entry-content -->
|
|
|
|
</article><!-- #post-## -->
|