Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (have_posts()) : while (have_posts()) : the_post();
- $count++;
- $image_thumb = '';
- if (has_post_thumbnail(get_the_ID(), 'blog_ft')) {
- $image_id = get_post_thumbnail_id(get_the_ID());
- $image_thumb = wp_get_attachment_image_src($image_id, 'blog_ft', true);
- }
- ?>
- <!-- Begin each blog post -->
- <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <div class="post_wrapper" <?php if (empty($featured_posts_arr) && $count == 1 && is_home()) { ?>style="margin-top:15px;"<?php } ?>>
- <div class="post_inner_wrapper" <?php if (empty($image_thumb)) { ?>style="margin-top:10px"<?php } ?>>
- <?php
- if (!empty($image_thumb)) {
- ?>
- <div class="one_half">
- <div class="post_img">
- <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
- <img src="<?php echo $image_thumb[0]; ?>" alt="" class="home_category_ft"/>
- </a>
- </div>
- </div>
- <div class="post_header_wrapper">
- <div class="post_header">
- <h3>
- <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
- </h3>
- </div>
- </div>
- <div class="one_half last">
- <p>
- <?php
- echo pp_substr(strip_tags(strip_shortcodes(get_the_content())), 800);
- ?>
- </p>
- </div>
- <?php if (function_exists('kc_add_social_share')) kc_add_social_share(); ?>
- <div class="tag-container">
- <?php
- $posttags = get_the_tags();
- if ($posttags) {
- echo "<span>TAGS: </span>";
- $taglist = "";
- foreach ($posttags as $tag) {
- $taglist .= $tag->name . ', ';
- }
- echo "<label>" . rtrim($taglist, ", ") . "</label>";
- }
- ?>
- </div>
- <?php
- }
- ?>
- <?php
- if (empty($image_thumb)) {
- ?>
- <div class="post_header_wrapper">
- <div class="post_header">
- <h3>
- <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
- </h3>
- </div>
- </div>
- <div class="one_half last">
- <p>
- <?php
- echo pp_substr(strip_tags(strip_shortcodes(get_the_content())), 800);
- ?>
- </p>
- </div>
- <?php if (function_exists('kc_add_social_share')) kc_add_social_share(); ?>
- <div class="tag-container">
- <?php
- $posttags = get_the_tags();
- if ($posttags) {
- echo "<span>TAGS: </span>";
- $taglist = "";
- foreach ($posttags as $tag) {
- $taglist .= $tag->name . ', ';
- }
- echo "<label>" . rtrim($taglist, ", ") . "</label>";
- }
- ?>
- </div>
- <?php
- }
- ?>
- </div>
- </div>
- </div>
- <br class="clear"/>
- <!-- End each blog post -->
- <?php
- endwhile;
- endif;
- ?>
- <div class="pagination">
- <?php
- if (function_exists("wpapi_pagination")) {
- wpapi_pagination($wp_query->max_num_pages);
- }
- ?>
- </div>
- <?php
- echo '<div class="foot-menu-con">';
- echo '<div class="foot-banner-span">
- <span>SIMILAR STUFF</span>
- </div>';
- if (has_nav_menu('footer-menu')) {
- // User has assigned menu to this location;
- // output it
- wp_nav_menu(array('theme_location' => 'footer-menu'));
- }
- echo '</div>';
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement