<main> <?php include Wrapper\template_path(); ?> </main><!-- /.main --> <?php } else { ?> <!-- for other article --> <div class="col-md-8"> <!-- main post --> <main> <?php include Wrapper\template_path(); ?> </main><!-- /.main --> </div> <div class="col-md-4"> <!-- side bar --> <?php if (Setup\display_sidebar()) { ?> <aside> <?php include Wrapper\sidebar_path(); ?> </aside> <?php }
use Roots\Sage\Config; use Roots\Sage\Wrapper; ?> <!doctype html> <html class="layout__html" <?php language_attributes(); ?> > <?php get_template_part('templates/head'); ?> <body <?php body_class('layout__body'); ?> > <!-- main content --> <?php require Wrapper\template_path(); ?> <!-- footer --> <?php do_action('get_footer'); get_template_part('templates/footer'); wp_footer(); ?> </body> </html>