<?php /** * The template for displaying all pages. * */ get_header(); ?> <div id="content" class="<?php echo get_class_of_component('content', smartadapt_option('smartadapt_layout')); ?> " role="main"> <?php while (have_posts()) { the_post(); ?> <?php get_template_part('content', 'page'); ?> <?php comments_template('', true); ?> <?php } // end of the loop. ?>
<?php /** * The template for displaying image attachments. */ get_header(); ?> <div id="content" class="<?php echo get_class_of_component('content'); ?> " role="main"> <?php while (have_posts()) { the_post(); ?> <article id="post-<?php the_ID(); ?> " <?php post_class('image-attachment'); ?> > <header class="entry-header"> <h2 class="entry-title"><?php the_title(); ?> </h2> <footer class="entry-meta image-info">
<section id="sidebar" class="<?php echo get_class_of_component('sidebar'); ?> "> <ul id="secondary" class="widget-area medium-block-grid-2 small-block-grid-1 large-block-grid-1" role="complementary"> <?php if (is_archive()) { dynamic_sidebar('sidebar-4'); } else { if (is_single()) { dynamic_sidebar('sidebar-5'); } else { dynamic_sidebar('sidebar-1'); } } ?> </ul><!-- #secondary --> </section><!-- #sidebar .widget-area -->
</div> </div> </div> </div> <div id="wrapper" class="row"> <?php //if sidebar is large-1 the left side if (check_position_of_component('sidebar', 'left')) { get_sidebar(); } ?> <div id="page" role="main" class="<?php echo get_class_of_component('page'); ?> "> <?php maxflat_get_header(); //display header info or header image maxflat_breadcrumb(); ?> <div id="main" class="row"> <nav id="mobile-navigation" class="columns large-16 show-for-small" role="navigation"> <?php //display mobile menu maxflat_mobile_menu(array('theme_location' => 'categories')); ?>
<section id="sidebar" class="<?php echo get_class_of_component('sidebar', smartadapt_option('smartadapt_layout')); ?> "> <?php if (is_active_sidebar('sidebar-1')) { ?> <div id="secondary" class="widget-area" role="complementary"> <?php if (is_archive()) { dynamic_sidebar('sidebar-4'); } else { if (is_single()) { dynamic_sidebar('sidebar-5'); } else { dynamic_sidebar('sidebar-1'); } } ?> </div><!-- #secondary --> <?php } ?> </section><!-- #sidebar .widget-area -->
<div class="<?php echo get_class_of_component('menu'); ?> "> <nav id="site-navigation" class="main-navigation hide-for-small" role="navigation"> <a class="assistive-text" href="#content" title="<?php esc_attr_e('Skip to content', 'harmonux'); ?> "><?php _e('Skip to content', 'harmonux'); ?> </a> <?php //fixed menu option $fixed = __HARMONUX::option('harmonux_menu_fixed'); ?> <div class="harmonux-nav-menu <?php echo $fixed == '1' ? ' fixed-menu' : ''; ?> "> <?php wp_nav_menu(array('theme_location' => 'categories', 'container' => false)); ?> </div> </nav> <!-- #site-navigation --> <ul class="widget-area smartlib-under-menu-widget-area">