Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <!-- CONTENT START -->
- <div id="content">
- <!-- CONTENT LEFT START -->
- <div class="cont_left">
- <?php query_posts('posts_per_page=1&category_name=Featured&orderby=date&order=DESC'); ?>
- <?php if (have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <!-- POST BIG START -->
- <div class="post_big">
- <div class="post_big_top">
- <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
- <?php
- if ( has_post_thumbnail() ) {
- $thsrc = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), false, '' );
- $fullsrc = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'large', false, '' );
- echo ('<a href="'.$fullsrc[0].'" class="img"><img src="'.$thsrc[0].'" alt="" /></a>');
- } ?>
- <h1><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
- <div class="about_post">
- <div class="post_categ">
- <?php the_category(', ')?>
- </div>
- on
- <span><?php the_time('m.d.y') ?></span>
- by
- <?php the_author_posts_link(); ?>
- <?php the_excerpt(); ?>
- </div>
- </div>
- </div>
- <div class="clear"></div>
- <div class="post_big_bot">
- <span class="comm">
- <?php comments_popup_link('0', '1', '%'); ?> comments
- </span>
- <div class="share_buttons">
- <span class='st_twitter_hcount' st_title='{TITLE}' st_url='{URL}' displayText='share'></span><span class='st_facebook_hcount' st_title='{TITLE}' st_url='{URL}' displayText='share'></span>
- </div>
- </div>
- </div>
- <!-- POST BIG END -->
- <?php endwhile; ?>
- <?php else : ?>
- <?php endif; ?>
- <?php query_posts(array('category__not_in' => array(get_cat_id('featured'), get_cat_id('portfolio')), 'posts_per_page' => 6, 'orderby' => 'date', 'order' => 'DESC'));
- ?>
- <?php if (have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <!-- POST SMALL START -->
- <div class="post_small">
- <div class="post_big_top">
- <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
- <?php
- if ( has_post_thumbnail() ) {
- $thsrc = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), false, '' );
- $fullsrc = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'large', false, '' );
- echo ('<a href="'.$fullsrc[0].'" class="img"><img src="'.$thsrc[0].'" alt="" /></a>');
- } ?>
- <h1><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
- <div class="about_post">
- <div class="post_categ">
- <?php the_category('<span> </span>')?>
- </div>
- on
- <span><?php the_time('m/d/y') ?></span>
- by
- <?php the_author_posts_link(); ?>
- <?php the_excerpt(); ?>
- </div>
- </div>
- </div>
- <div class="clear"></div>
- <div class="post_big_bot">
- <span class="comm">
- <?php comments_popup_link('0', '1', '%'); ?>
- </span>
- <div class="share_buttons">
- <span class='st_twitter_hcount' st_title='{TITLE}' st_url='{URL}' displayText='share'></span><span class='st_facebook_hcount' st_title='{TITLE}' st_url='{URL}' displayText='share'></span>
- </div>
- </div>
- </div>
- <!-- POST SMALL END -->
- <?php endwhile; ?>
- <?php else : ?>
- <?php endif; ?>
- </div>
- <!-- CONTENT LEFT END -->
- <!-- CONTENT RIGHT START -->
- <div class="cont_right">
- <?php get_sidebar(); ?>
- </div>
- <!-- CONTENT RIGHT END -->
- </div>
- <!-- CONTENT END -->
- </div>
- <!-- PAGE END -->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement