| Server IP : 213.186.33.4 / Your IP : 216.73.216.222 Web Server : Apache System : Linux webm005.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : karinebmkh ( 644538) PHP Version : 8.4.22 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/karinebmkh/www2/wp-content/themes/glaza/templates/ |
Upload File : |
<?php
if ( ! function_exists( 'glaza_single_page' ) ):
function glaza_single_page() {
$settings = glaza_page_default_settings();
if ( empty( $settings['sidebar_position'] ) || 'none' == $settings['sidebar_position'] ) {
$class_name = 'site-content single-wrap none-sidebar';
} else {
$class_name = 'site-content single-wrap has-sidebar is-sidebar-' . $settings['sidebar_position'];
}; ?>
<?php glaza_breadcrumb(); ?>
<?php if ( ! $settings['width'] ) : ?>
<div class="<?php echo esc_attr( $class_name ); ?>">
<?php else : ?>
<div class="<?php echo esc_attr( $class_name ); ?>" style="max-width: <?php echo intval( $settings['width'] ); ?>px">
<?php endif; ?>
<div class="wrap container clearfix">
<main id="main" class="site-main single-inner" role="main">
<?php while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php if ( ! empty( $settings['page_title'] ) && 'none' != $settings['page_title'] ) : ?>
<header class="page-header entry-header is-centered post-title size-1">
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
</header>
<?php endif; ?>
<div class="entry single-entry entry-content">
<?php the_content(); ?>
<div class="clearfix"></div>
<?php wp_link_pages( array(
'before' => '<div class="page-links pagination-wrap pagination-number">' . glaza_translate( 'pages' ),
'link_before' => '<span class="page-numbers">',
'link_after' => '</span>',
'type' => 'plain',
'after' => '</div>',
) ); ?>
</div>
</article>
<?php comments_template();
endwhile; ?>
</main>
<?php if ( ! empty( $settings['sidebar_position'] ) && 'none' != $settings['sidebar_position'] ) :
glaza_render_sidebar( $settings['sidebar_name'] );
endif; ?>
</div>
</div>
<?php
}
endif;