if (of_get_option('ft_show_breadcrumbs') == 1) { $bc = array('before' => '<div class="breadcrumb pull-right">', 'after' => '</div>'); breadcrumb_trail($bc); } ?> </div> </header> <?php } ?> <section class="content-area bg1"> <div class="container"> <div class="row"> <div class="col-md-9<?php if (function_exists("ft_sidebar_float")) { echo ft_sidebar_float('content', $post->ID); } ?> "> <div id="blog-list" class="clearfix"> <article class="blog-item item-bigger"> <?php // display different header depending on post format $format = get_post_format(); switch ($format) { case 'image': ?> <?php if (has_post_thumbnail()) { ?> <div class="blog-thumbnail">
<?php echo ft_pagination($wp_query->max_num_pages); ?> </div> </div> </section> <?php } else { // blog as list ?> <section class="content-area bg1"> <div class="container"> <div class="row"> <div class="col-md-9<?php if (function_exists("ft_sidebar_float")) { echo ft_sidebar_float('content', $postspage_id); } ?> "> <div id="blog-list" class="clearfix"> <?php while (have_posts()) { the_post(); $format = get_post_format(); get_template_part('format', $format); } ?> </div> <div class="lineSeparatorMasonry clearfix"></div> <div class="row navigation-blog-outer"> <div class="col-md-3 col-xs-6 text-left">
function ft_get_sidebar($postid, $sidebar) { //check if dynamic sidebar added to page $dynamicsidebars = get_post_meta($postid, '_dynamic_sidebar', true); $enableidebars = get_post_meta($postid, '_enable_sidebar', true); if ($enableidebars != 'false') { echo '<div class="thesidebar col-md-3 ' . ft_sidebar_float('sidebar', $postid) . '"><div id="blog-sidebar">'; // if dynamic sidebar added to page, use that if ($dynamicsidebars != "default" && trim($dynamicsidebars) != "") { dynamic_sidebar($dynamicsidebars); } elseif (is_active_sidebar($sidebar) && $enableidebars != 'false') { dynamic_sidebar($sidebar); } echo "</div></div>"; } }