Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <div id="left">
- <span class="section-title">Latest Article</span><br /><br />
- <!--Latest Post Loop-->
- <?php if (have_posts()) : ?>
- <?php
- query_posts('posts_per_page=1&cat=-3');
- while (have_posts()) : the_post();
- $postimageurl = get_post_meta($post->ID, 'image', true);
- $hastag = get_post_meta($post->ID, 'featured_hashtag', true);
- ?>
- <div id="latest" <?php post_class() ?> >
- <div id="post-left">
- <a href="<?php the_permalink(); ?>" rel="bookmark"><img src="<?php echo $postimageurl; ?>" alt="<?php the_title(); ?>" /></a>
- <div class="post-over">
- <h2><a href="<?php the_permalink(); ?>" title="Read: <?php the_title(); ?> "><?php the_title(); ?></a></h2>
- <span class="author">by <?php the_author() ?></span>
- </div>
- <span class="hastag">
- # <?php echo $hastag; ?>
- </span>
- </div>
- <div id="post-right">
- <?php
- digg_digg_twitter_generate('Normal','lalawag');
- echo "<br /><br />";
- digg_digg_generate('Normal');
- echo "<br /><br />";
- digg_digg_fbshare_generate('Normal');
- ?>
- </div>
- <div style="clear:both;"></div>
- <!--End Recent post div-->
- </div>
- <?php endwhile; ?>
- <?php endif; ?>
- <div id="popular">
- <span class="section-title">Popular Articles</span><br /><br />
- <!--Pop. post loop-->
- <?php if (have_posts()) : ?>
- <?php
- query_posts('posts_per_page=3&cat=3');
- while (have_posts()) : the_post();
- $custom_image = get_post_meta($post->ID, 'image_square', true);
- $custom_title = get_post_meta($post->ID, 'featured_title', true);
- ?>
- <div class="pop-single">
- <a href="<?php the_permalink(); ?>" rel="bookmark"><img src="<?php echo $custom_image; ?>" width="50" height="50" alt="<?php the_title(); ?>" /></a>
- <h4><a href="<?php the_permalink(); ?>" title="Read Popular Article: <?php the_title(); ?>"><?php echo $custom_title; ?></a></h4>
- </div>
- <?php endwhile; ?>
- <div style="clear:both;"></div>
- <!--End Popular Div-->
- </div>
- <?php endif; ?>
- <div id="recent">
- <span class="section-title">Recent Articles</span><br /><br />
- <!--Recent Post loop-->
- <?php if (have_posts()) : ?>
- <?php
- query_posts('cat=-3&offset=1');
- while (have_posts()) : the_post();
- $squareimage = get_post_meta($post->ID, 'image_square', true);
- ?>
- <div class="single">
- <a href="<?php the_permalink(); ?>"><img src="<?php echo $squareimage; ?>" width="100" height="100" alt="<?php the_title(); ?>"/></a>
- <div class="single-content">
- <h2><a href="<?php the_permalink(); ?>" title="Read: <?php the_title(); ?>"><?php the_title(); ?></a></h2><br /><br />
- by <?php the_author() ?> / <?php the_date(); ?> / <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?>
- </div>
- <div style="clear:both;"></div>
- </div>
- <?php endwhile; ?>
- <div class="navigation">
- <div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
- <div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
- </div>
- <?php endif; ?>
- </div>
- <!--Dont Edit Below-->
- </div>
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement