Files
Landing/wp-content/themes/upstudy/template-parts/content-page.php
T
2026-04-23 04:33:43 +03:30

60 lines
1.4 KiB
PHP

<?php
/**
* Template part for displaying page content in page.php
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package Upstudy
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'upstudy-single-page' ); ?>>
<?php
if (Upstudy::setting( 'pages_featured_image' )) {
upstudy_post_thumbnail();
}
?>
<div class="entry-content">
<?php
the_content();
if ( function_exists( 'upstudy_link_pages' ) ) :
upstudy_link_pages( array(
'before' => '<nav class="upstudy-theme-page-links">' . __( 'Pages:', 'upstudy' ) . '<ul class="pager">',
'after' => '</ul></nav>',
) );
else :
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'upstudy' ),
'after' => '</div>',
) );
endif;
?>
</div><!-- .entry-content -->
<?php if ( get_edit_post_link() ) : ?>
<footer class="entry-footer<?php do_action( 'upstudy_page_footer_wrapper_class' ); ?>">
<?php
edit_post_link(
sprintf(
wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */
__( 'Edit <span class="screen-reader-text">%s</span>', 'upstudy' ),
array(
'span' => array(
'class' => array()
)
)
),
get_the_title()
),
'<span class="edit-link">',
'</span>'
);
?>
</footer><!-- .entry-footer -->
<?php endif; ?>
</article><!-- #post-<?php the_ID(); ?> -->