mirror of
https://gh.wpcy.net/https://github.com/elementor/hello-theme.git
synced 2026-05-04 15:42:20 +08:00
* New: Add Github actions lint + build [ARCH-38] * move to right folder * remove if * change name * remove unused code * fix * fix lint js * fix phplint + temp * change php * remove temp
35 lines
806 B
PHP
35 lines
806 B
PHP
<?php
|
|
/**
|
|
* The template for displaying singular post-types: posts, pages and user-defined custom post types.
|
|
*
|
|
* @package HelloElementor
|
|
*/
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit; // Exit if accessed directly.
|
|
}
|
|
?>
|
|
<?php
|
|
while ( have_posts() ) :
|
|
the_post();
|
|
?>
|
|
|
|
<main <?php post_class( 'site-main' ); ?> role="main">
|
|
<?php if ( apply_filters( 'hello_elementor_page_title', true ) ) : ?>
|
|
<header class="page-header">
|
|
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
|
|
</header>
|
|
<?php endif; ?>
|
|
<div class="page-content">
|
|
<?php the_content(); ?>
|
|
<div class="post-tags">
|
|
<?php the_tags( '<span class="tag-links">' . __( 'Tagged ', 'hello-elementor' ), null, '</span>' ); ?>
|
|
</div>
|
|
<?php wp_link_pages(); ?>
|
|
</div>
|
|
|
|
<?php comments_template(); ?>
|
|
</main>
|
|
|
|
<?php
|
|
endwhile;
|