echo '</div>'; } if ($b_counter == 2) { echo '</div>'; echo '</div>'; // row } if ($b_counter >= 3) { echo '</div>'; } // col if ($post_format == 'gallery' && $has_gallery == true) { if ($b_counter >= 3 && $b_counter % 2 != 0) { echo '<div class="single-post col-xs-12 col-sm-6 col-md-3 col-lg-3 wow fadeInUp" data-wow-delay="1s">'; echo '<div class="post-desc-wrapper"> <div class="block-poston">' . tutannet_posted_on() . '</div> <h3 class="post-title"><a post-title="' . get_the_title() . '" rel="' . get_the_ID() . '" href="' . get_the_permalink() . '" >' . get_the_title() . '</a></h3> <div class="post-content">' . get_the_excerpt() . '</div> </div>'; echo '</div>'; } } if ($b_counter > 3 && $b_counter == $total_posts_block_news) { echo '</div>'; } // row ?> <?php }
<header class="entry-header"> <?php the_title(sprintf('<h1 class="entry-title"><a href="%s" rel="bookmark">', esc_url(get_permalink())), '</a></h1>'); ?> <?php if ('post' == get_post_type()) { ?> <div class="entry-meta"> <?php if (is_author() || is_tag() || is_archive()) { echo get_the_category_list(); } ?> <?php tutannet_posted_on(); ?> <?php do_action('tutannet_post_meta'); ?> </div><!-- .entry-meta --> <?php } ?> </header><!-- .entry-header --> <div class="entry-content"> <?php if (has_post_thumbnail()) { $image_id = get_post_thumbnail_id(); $big_image_path = wp_get_attachment_image_src($image_id, 'tutannet-singlepost-default', true);
function tutannet_gallery_post() { global $post; // Only do this on singular items if (!is_singular()) { return false; } // Retrieve the first gallery in the post $gallery = get_post_gallery_images($post); $image_list = ' <div class="col-sx-12 col-sm-12 col-md-4 col-lg-4 post-desc-wrapper"> <div class="block-poston">' . tutannet_posted_on() . '</div> <h3 class="post-title"><a post-title="' . get_the_title() . '" rel="' . get_the_ID() . '" href="' . get_the_permalink() . '" >' . get_the_title() . '</a></h3> <div class="post-content">' . get_the_excerpt() . '</div> </div> <div class="col-xs-12 col-sm-12 col-md-8 col-lg-8 gallery_post_img_wrapper"> <div class="col-xs-6 col-sm-6 col-md-12 col-lg-12 gallery_post_img_left_wrapper"> <div class="col-sm-12 col-lg-6 gallery_post_img"> <img src="' . $gallery[0] . '"/> </div> <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6 gallery_post_img"> <img src="' . $gallery[1] . '"/> </div> </div> <div class="col-xs-6 col-sm-6 col-md-12 col-lg-12 gallery_post_img_right_wrapper"> <img src="' . $gallery[2] . '"/> </div> </div>'; $content .= $image_list; echo $content; }