Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="content">
- <div class="lay3">
- <div class="lay3_wrap">
- <?php if(have_posts()): ?><?php while(have_posts()): ?><?php the_post(); ?>
- <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
- <?php if ( znn_get_custom_field_value('videolink') != "") { ?>
- <div class="post_image">
- <iframe width="254" height="180" src="http://www.youtube.com/embed/<?php znn_get_custom_field_value('videolink', true); ?>?rel=0&autohide=1&showinfo=0" frameborder="0"></iframe>
- </div>
- <?php } else { ?>
- <div class="post_image">
- <!--CALL TO POST IMAGE-->
- <?php if ( has_post_thumbnail() ) : ?>
- <div class="imgwrap">
- <div class="date_meta"><?php the_time('d'); ?><?php the_time('S'); ?> <?php the_time('M'); ?></div>
- <div class="block_comm"><?php if (!empty($post->post_password)) { ?>
- <?php } else { ?><div class="comments"><?php comments_popup_link( __('0</br>Comment', 'zenon'), __('1</br>Comment', 'zenon'), __('%</br>Comments', 'zenon'), '', __('Off' , 'zenon')); ?></div><?php } ?></div>
- <a href="<?php the_permalink();?>"><?php the_post_thumbnail('medium'); ?></a></div>
- <?php elseif($photo = znn_get_images('numberposts=1', true)): ?>
- <div class="imgwrap">
- <div class="date_meta"><?php the_time('d'); ?><?php the_time('S'); ?> <?php the_time('M'); ?></div>
- <div class="block_comm"><?php if (!empty($post->post_password)) { ?>
- <?php } else { ?><div class="comments"><?php comments_popup_link( __('0</br>Comment', 'zenon'), __('1</br>Comment', 'zenon'), __('%</br>Comments', 'zenon'), '', __('Off' , 'zenon')); ?></div><?php } ?></div>
- <a href="<?php the_permalink();?>"><?php echo wp_get_attachment_image($photo[0]->ID ,'medium'); ?></a></div>
- <?php else : ?>
- <div class="imgwrap">
- <div class="date_meta"><?php the_time('d'); ?><?php the_time('S'); ?> <?php the_time('M'); ?></div>
- <div class="block_comm"><?php if (!empty($post->post_password)) { ?>
- <?php } else { ?><div class="comments"><?php comments_popup_link( __('0</br>Comment', 'zenon'), __('1</br>Comment', 'zenon'), __('%</br>Comments', 'zenon'), '', __('Off' , 'zenon')); ?></div><?php } ?></div>
- <a href="<?php the_permalink();?>"><img src="<?php echo get_template_directory_uri(); ?>/images/blank_img.png" alt="<?php the_title_attribute(); ?>" class="znn_thumbnail"/></a></div>
- <?php endif; ?>
- </div>
- <?php } ?>
- <div class="lay3_bridge"></div>
- <div class="post_content">
- <h2 class="postitle"><a href="<?php the_permalink();?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
- <?php the_excerpt(); ?>
- </div>
- </div>
- <?php endwhile ?>
- <?php endif ?>
- </div>
- <?php if (function_exists("znn_paginate")) {znn_paginate();} ?>
- </div>
- <?php get_sidebar();?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment