Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <div id="content">
- <?php
- $postct = get_option('dion_postnum');
- $args=array('post_type' => 'videos','post_status'=> 'publish','posts_per_page' => $postct,'caller_get_posts' =>1,'paged' =>$paged,);
- query_posts($args);
- if (have_posts()) : while (have_posts()) : the_post();
- ?>
- <div class="box rounded <?php if (++$counter % 4 == 0) { echo "lastbox"; }?>" id="post-<?php the_ID(); ?>">
- <div class="postcover">
- <?php $trailer = get_post_meta($post->ID, 'trailer_value', $single = true) ?>
- <?php $poster = get_post_meta($post->ID, 'poster_value', $single = true) ?>
- <?php $imdb = get_post_meta($post->ID, 'imdb_value', $single = true) ?>
- <center>
- <a href="<?php echo $trailer; ?>" rel="prettyPhoto" ><img src="http://serija.gledajiti.com/wp-content/uploads/2011/11/youtube.png" alt="" heigh="20" ></a>
- <a href="<?php echo $imdb; ?>" target="_blank"><img src="http://serija.gledajiti.com/wp-content/uploads/2011/11/imdb.png" alt="Линк до IMBD" /></a>
- <?php echo fblike_get_iframe(get_permalink($post->ID)) ?>
- </center>
- <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>" ><img class="poster" src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php echo $poster; ?>&h=270&w=200&zc=1" alt=""/></a>
- </div>
- <div class="boxtitle">
- <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Линк до <?php the_title(); ?>"><?php the_title(); ?></a></h2>
- <center><h6><?php echo get_the_term_list($post->ID, 'genre', 'Жанр:', ', ', ''); ?></h6></center>
- </div>
- </div>
- <?php endwhile; ?>
- <div class="clear"></div>
- <center><div id="navigation">
- <?php
- if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
- ?>
- <?php wp_reset_query();?>
- <?php else : ?>
- <div class="title"><h2>Oops.. Nothing Found !</h2></div>
- <div class="cover"> <p>I think what you are looking for is not here or it has been moved. Please try a different search..</p> </div>
- <?php endif; ?>
- </div>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement