Advertisement
dariodev

Themelia Theme Test Template

Feb 19th, 2018
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.37 KB | None | 0 0
  1. <?php
  2. /*
  3. * Template Name: TEST TEMPLATE
  4. */
  5. ?>
  6. <?php get_header(); // Loads the header.php template. ?>
  7.  
  8. <div <?php hybrid_attr( 'main' ); ?>>
  9.     <div <?php hybrid_attr( 'grid-container' ); ?>>
  10.         <div class="grid-100 grid-parent main-inner">
  11.             <?php hybrid_get_menu( 'breadcrumbs' ); // Loads the menu/breadcrumbs.php template. ?>
  12.  
  13.             <?php do_action('themelia_before_content'); ?>
  14.  
  15.             <main id="content" class="content grid-70 tablet-grid-66">
  16.  
  17.                 <?php if ( have_posts() ) : // Checks if any posts were found. ?>
  18.  
  19.                     <?php while ( have_posts() ) : // Begins the loop through found posts. ?>
  20.  
  21.                         <?php the_post(); // Loads the post data. ?>
  22.  
  23.                         <?php hybrid_get_content_template(); // Loads the content/*.php template. ?>
  24.  
  25.                         <?php if ( is_singular() ) : // If viewing a single post/page/CPT. ?>
  26.  
  27.                             <?php comments_template( '', true ); // Loads the comments.php template. ?>
  28.  
  29.                         <?php endif; // End check for single post. ?>
  30.  
  31.                     <?php endwhile; // End found posts loop. ?>
  32.  
  33.                     <?php locate_template( array( 'misc/loop-nav.php' ), true ); // Loads the misc/loop-nav.php template. ?>
  34.  
  35.                 <?php else : // If no posts were found. ?>
  36.  
  37.                     <?php locate_template( array( 'content/error.php' ), true ); // Loads the content/error.php template. ?>
  38.  
  39.                 <?php endif; // End check for posts. ?>
  40.  
  41.             </main><!-- #content -->
  42.  
  43.             <?php do_action('themelia_after_content'); ?>
  44.  
  45.             <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">
  46.                 <div class="sidebar-inner">
  47.                     <?php if ( is_active_sidebar( 'primary' ) ) : // If the sidebar has widgets. ?>
  48.                         <?php dynamic_sidebar( 'primary' ); // Displays the primary sidebar. ?>
  49.                     <?php endif; // End widgets check. ?>
  50.                 </div>
  51.             </aside><!-- #sidebar-primary -->
  52.  
  53.  
  54.         </div><!-- .inner .main-inner -->
  55.     </div><!-- .grid-container -->
  56. </div><!-- #main -->
  57.  
  58. <?php hybrid_get_sidebar( 'subsidiary' ); // Loads the sidebar/subsidiary.php template. ?>
  59.  
  60. <?php get_footer(); // Loads the footer.php template. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement