Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <div id="main">
- <?php if(get_option('pyre_featured_slider') == 'On' && get_option('pyre_featured_tag')): ?>
- <?php
- $featured_posts = new WP_Query(array(
- 'showposts' => get_option('pyre_featured_posts'),
- 'orderby' => 'post_date',
- ));
- ?>
- <div id="featured-wrapper">
- <div class="rightwidget">
- <?php get_sidebar('right'); ?>
- </div>
- <div class="slider-item">
- <?php while($featured_posts->have_posts()): $featured_posts->the_post(); ?>
- <?php $do_not_duplicate = $post->ID; ?>
- <?php $image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'slider-image'); ?>
- <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php echo $image[0]; ?>" alt="<?php the_title(); ?>" title="#htmlcaption_<?php echo $post->ID; ?>"/></a>
- <?php endwhile; ?>
- </div>
- <?php while($featured_posts->have_posts()): $featured_posts->the_post(); ?>
- <div id="htmlcaption_<?php echo $post->ID; ?>" class="slider-text nivo-html-caption">
- <span class="auth"><?php the_author_posts_link(); ?></span>
- <span class="date"><?php the_time('F d, Y'); ?></span>
- <span class="auth"><?php the_category(', '); ?></span>
- <span class="commentscap"><?php comments_popup_link('0', '1', '%'); ?></span>
- <div class="slider-heading">
- <h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
- <p><?php echo string_limit_words(get_the_excerpt(), 20); ?></p>
- <?php if(function_exists('kc_add_social_share')) kc_add_social_share(); ?>
- </div>
- </div>
- <?php endwhile; ?>
- </div>
- <?php endif; ?>
- <div id="items-wrapper">
- <?php $count = 1; ?>
- <?php $other_posts = new WP_Query(array(
- 'orderby' => 'post_date',
- 'offset' => 1,
- ));
- ?>
- <?php while($other_posts->have_posts()): $other_posts->the_post(); ?>
- <?php if($count == 3): $count = 1; endif; if($count == 2): $class = 'last'; else: $class = ''; endif; ?>
- <div class="item <?php echo $class; ?>">
- <?php if(has_post_thumbnail()): ?>
- <div class="item-thumb">
- <?php
- if(has_post_format('video') || has_post_format('audio') || has_post_format('gallery')) {
- $icon = '<span class="thumb-icon ' . get_post_format($post->ID) . '"></span>';
- } else {
- $icon = '';
- }
- echo $icon;
- ?>
- <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_post_thumbnail('archive-image'); ?></a>
- <span class="comments"><?php comments_popup_link('0', '1', '%'); ?></span>
- <?php if(get_post_meta($post->ID, 'pyre_overall_score', true)): ?>
- <span class="item-review"><img src="<?php echo get_template_directory_uri(); ?>/images/stars/<?php echo get_post_meta($post->ID, 'pyre_overall_score', true); ?>.png" alt="<?php the_title(); ?> Overall Score" /></span>
- <?php endif; ?>
- </div>
- <?php endif; ?>
- <h3><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
- <span class="categorynew"><?php the_category(', '); ?></span><p><?php echo string_limit_words(get_the_excerpt(), 25); ?></p>
- <div class="item-meta">
- <span class="category">By <?php the_author_posts_link(); ?> </span>
- <span class="date"> on <?php the_time('F d, Y'); ?></span>
- <br>
- <?php if(function_exists('kc_add_social_share')) kc_add_social_share(); ?>
- </div>
- </div>
- <?php $count++; endwhile; ?>
- </div>
- <?php kriesi_pagination($pages = '', $range = 2); ?>
- </div>
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement