<?php /** * The template for displaying single post * * This is the template that displays all pages by default. * Please note that this is the WordPress construct of pages and that * other "pages" on your WordPress site will use a different template. * */ get_header(); $post_id = get_the_ID(); $sidebar = kt_get_single_sidebar(); $layout = kt_post_option(null, '_kt_blog_post_layout', 'single_layout', 1, false); $imageSize = kt_option('single_image_size', 'full'); if ($layout == 6) { $sidebar['sidebar'] = ''; } ?> <div class="container"> <?php do_action('kt_before_main'); $main_column = $sidebar['sidebar'] ? '8' : '12'; $sidebar_class = $sidebar['sidebar'] ? 'sidebar-' . $sidebar['sidebar'] : 'no-sidebar'; $pull_class = $sidebar['sidebar'] == 'left' ? 'pull-right' : ''; ?> <?php if (!post_password_required() && $layout == 4) { ?> <div class="entry-thumb-fullwidth"><?php kt_post_thumbnail($imageSize, 'img-responsive', false);
function kt_slideshows_position_callback() { if (is_page()) { kt_show_slideshow(); } elseif (is_singular('post')) { $layout = kt_post_option(null, '_kt_blog_post_layout', 'single_layout', 1, false); if (!post_password_required() && $layout == 3) { echo '<div class="entry-thumb-fullwidth">'; kt_post_thumbnail('full', 'img-responsive', false); echo '</div>'; } } }
the_ID(); ?> --> <div class="post-single-addons <?php echo esc_attr('post-layout-' . $layout); ?> "> <?php if (kt_post_option(null, '_kt_author_info', 'single_author', 1)) { // Author bio. get_template_part('templates/author-bio'); } if (kt_post_option(null, '_kt_prev_next', 'single_next_prev', 0)) { kt_post_nav(); } if (kt_post_option(null, '_kt_related_acticles', 'single_related', 1)) { kt_related_article(null, kt_option('single_related_type', 'categories')); } // If comments are open or we have at least one comment, load up the comment template. if (shortcode_exists('fbcomments')) { echo '<div class="kt_facebook_comment">' . do_shortcode('[fbcomments]') . '</div>'; } else { if (comments_open() || get_comments_number()) { comments_template(); } } ?> </div>