Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $option = get_option('trt_options'); ?>
- <div class="lay1">
- <h3 class="completefilms">Completed Films</h3>
- <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
- <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
- <div class="post_image">
- <!--CALL TO POST IMAGE-->
- <?php if ( has_post_thumbnail() ) : ?>
- <div class="imgwrap">
- <?php if($option["trt_diss_date"] == "1"){ ?><?php } else { ?>
- <div class="date_meta" id="linkpost"><a href="<?php the_permalink();?>"><?php the_title(); ?></a></div>
- <div class="block_comm"><?php if (!empty($post->post_password)) { ?>
- <?php } else { ?><div class="comments">
- <?php the_tags('Films>', ', ', ''); ?>
- </div><?php } ?><a href="<?php echo get_tag_link($tag_id); ?>"></a></div>
- <?php } ?>
- <a href="<?php the_permalink();?>"><?php the_post_thumbnail('medium'); ?></a></div>
- <?php elseif($photo = trt_get_images('numberposts=1', true)): ?>
- <div class="imgwrap">
- <?php if($option["trt_diss_date"] == "1"){ ?><?php } else { ?>
- <div class="date_meta"><?php the_title(); ?></div>
- <div class="block_comm"><?php if (!empty($post->post_password)) { ?>
- <?php } else { ?><div class="comments">
- <?php the_tags('Films>', ', ', ''); ?>
- </div><?php } ?></a></div>
- <?php } ?>
- <a href="<?php the_permalink();?>"><?php echo wp_get_attachment_image($photo[0]->ID ,'medium'); ?></a></div>
- <?php else : ?>
- <div class="imgwrap">
- <?php if($option["trt_diss_date"] == "1"){ ?><?php } else { ?>
- <div class="date_meta"><?php the_title(); ?></div>
- <div class="block_comm"><?php if (!empty($post->post_password)) { ?>
- <?php } else { ?><div class="comments">
- <?php the_tags('Films>', ', ', ''); ?>
- </div><?php } ?></a></div>
- <?php } ?>
- <a href="<?php the_permalink();?>"><img src="<?php echo get_template_directory_uri(); ?>/images/blank_img.png" alt="<?php the_title_attribute(); ?>" class="trt_thumbnail"/></a></div>
- <?php endif; ?>
- </div>
- <div class="post_content">
- </div>
- </div>
- <?php endwhile; else: ?>
- <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
- <?php endif; ?>
- </div>
- <div class="lay1_page"><?php if (function_exists("trt_paginate")) {
- trt_paginate();
- }
- ?> </div><div class="hidden_nav"><?php paginate_links(); ?></div>
- <br style="clear:both" />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement