Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- * Template Name: TEST TEMPLATE
- */
- ?>
- <?php get_header(); // Loads the header.php template. ?>
- <div <?php hybrid_attr( 'main' ); ?>>
- <div <?php hybrid_attr( 'grid-container' ); ?>>
- <div class="grid-100 grid-parent main-inner">
- <?php hybrid_get_menu( 'breadcrumbs' ); // Loads the menu/breadcrumbs.php template. ?>
- <?php do_action('themelia_before_content'); ?>
- <main id="content" class="content grid-70 tablet-grid-66">
- <?php if ( have_posts() ) : // Checks if any posts were found. ?>
- <?php while ( have_posts() ) : // Begins the loop through found posts. ?>
- <?php the_post(); // Loads the post data. ?>
- <?php hybrid_get_content_template(); // Loads the content/*.php template. ?>
- <?php if ( is_singular() ) : // If viewing a single post/page/CPT. ?>
- <?php comments_template( '', true ); // Loads the comments.php template. ?>
- <?php endif; // End check for single post. ?>
- <?php endwhile; // End found posts loop. ?>
- <?php locate_template( array( 'misc/loop-nav.php' ), true ); // Loads the misc/loop-nav.php template. ?>
- <?php else : // If no posts were found. ?>
- <?php locate_template( array( 'content/error.php' ), true ); // Loads the content/error.php template. ?>
- <?php endif; // End check for posts. ?>
- </main><!-- #content -->
- <?php do_action('themelia_after_content'); ?>
- <aside class="sidebar sidebar-primary grid-30 tablet-grid-33" role="complementary" id="sidebar-primary" aria-label="Primary Sidebar" itemscope="itemscope" itemtype="http://schema.org/WPSideBar">
- <div class="sidebar-inner">
- <?php if ( is_active_sidebar( 'primary' ) ) : // If the sidebar has widgets. ?>
- <?php dynamic_sidebar( 'primary' ); // Displays the primary sidebar. ?>
- <?php endif; // End widgets check. ?>
- </div>
- </aside><!-- #sidebar-primary -->
- </div><!-- .inner .main-inner -->
- </div><!-- .grid-container -->
- </div><!-- #main -->
- <?php hybrid_get_sidebar( 'subsidiary' ); // Loads the sidebar/subsidiary.php template. ?>
- <?php get_footer(); // Loads the footer.php template. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement