Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <section id="latestnews">
- <h2><a class="homepagetitle" href="/news/">News</a></h2>
- <div class="newscol">
- <?php query_posts('category_name=news&showposts=6'); ?>
- <?php while (have_posts()) : the_post(); ?>
- <div class="newsbox">
- <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
- <?php if(get_video_thumbnail()!=null) { echo '<img src="'.get_video_thumbnail().'" alt="'.the_title().'" class="video-thumbnail">'; } elseif(has_post_thumbnail()) { the_post_thumbnail(); }; ?>
- <?php if(get_video_thumbnail()!=null) echo '<img src="/img/play-button.png" alt="play video" width="40px" class="overlay">'; ?>
- </a>
- <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><h3><?php the_title(); ?></h3></a>
- <?php the_excerpt(); ?>
- </div>
- <?php endwhile;?>
- <?php rewind_posts(); ?>
- </div><!-- .newscol -->
- </section>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement