File: /var/www/Application/wp-content/themes/zoomy/page.php
<?php
/**
* The template for displaying all pages.
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other 'pages' on your WordPress site may use a
* different template.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package zoomy
*/
get_header();
$opt = get_option('zoomy_opt');
$page_spacing = ! function_exists( 'get_field' ) ? 'pt-90' : '';
$comment_open = comments_open() ? 'mt-90 mb-90' : 'mb-70';
while ( have_posts() ) : the_post();
?>
<div <?php post_class('page_wrapper '.$page_spacing.''); ?>>
<div class="container">
<?php
the_content();
wp_link_pages(array(
'before' => '<div class="page-links"><span class="page-links-title">' . esc_html__( 'Pages:', 'zoomy' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
'pagelink' => '<span class="screen-reader-text">' . esc_html__( 'Page', 'zoomy' ) . ' </span>%',
'separator' => '<span class="screen-reader-text">, </span>',
));
?>
<div class="page-comment-wrapper-area <?php echo esc_attr($comment_open); ?>">
<?php // If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
?>
</div>
</div>
</div>
<?php
endwhile; // End of the loop.
wp_reset_postdata();
get_footer();