57 lines
1.2 KiB
PHP
57 lines
1.2 KiB
PHP
<?php
|
|
/**
|
|
* Template part for displaying single posts
|
|
*
|
|
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
|
*
|
|
* @package Oficina_de_Suport_de_Xarxaprod
|
|
*/
|
|
|
|
?>
|
|
|
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
|
|
|
<header class="entry-header">
|
|
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
|
|
|
|
<?php if ( ! is_page() ) : ?>
|
|
<div class="entry-meta">
|
|
<?php ofsupxxp_entry_meta(); ?>
|
|
</div><!-- .entry-meta -->
|
|
<?php endif; ?>
|
|
</header><!-- .entry-header -->
|
|
|
|
<?php ofsupxxp_post_thumbnail(); ?>
|
|
|
|
<div class="entry-content prose">
|
|
<?php
|
|
the_content(
|
|
sprintf(
|
|
wp_kses(
|
|
/* translators: %s: Name of current post. Only visible to screen readers. */
|
|
__( 'Continue reading<span class="sr-only"> "%s"</span>', 'ofisuport' ),
|
|
array(
|
|
'span' => array(
|
|
'class' => array(),
|
|
),
|
|
)
|
|
),
|
|
get_the_title()
|
|
)
|
|
);
|
|
|
|
wp_link_pages(
|
|
array(
|
|
'before' => '<div>' . __( 'Pages:', 'ofisuport' ),
|
|
'after' => '</div>',
|
|
)
|
|
);
|
|
?>
|
|
</div><!-- .entry-content -->
|
|
|
|
<footer class="entry-footer">
|
|
<?php ofsupxxp_entry_footer(); ?>
|
|
</footer><!-- .entry-footer -->
|
|
|
|
</article><!-- #post-${ID} -->
|