<section id="post-<?php the_ID(); ?>" <?php post_class('page-template sidebar-layout'); ?>>

    <?php if ( has_post_thumbnail() ) : ?>
        <div class="page-thumbnail">
            <?php the_post_thumbnail('medium_large'); ?>
        </div>
    <?php endif; ?>

    <div class="container">
        <div class="row">
            <!-- Sidebar -->
            <div class="col-md-3 sidebar">
                    <?php dynamic_sidebar('sidebar-3'); ?>
            </div>
            <!-- Contenuto principale -->
            <div class="col-md-7 entry-content">
                <section class="entry-header">
                    <h1 class="entry-title"><?php the_title(); ?></h1>
                </section><!-- .entry-header -->

                <?php
                // Mostra il contenuto completo della pagina
                the_content();

                // Paginazione per pagine divise in più pagine
                wp_link_pages( array(
                    'before' => '<div class="page-links">' . __( 'Pages:', 'nexo' ),
                    'after'  => '</div>',
                ) );
                ?>
            </div><!-- .col-md-8 -->
        </div><!-- .row -->
    </div><!-- .container -->

</section>
