Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if( is_front_page() ) : ?>
- <?php query_posts("posts_per_page=3&category_name=featured");?>
- <?php while (have_posts()) : the_post(); ?>
- <div class="featureportfolio<?php echo $i++;?>">
- <a href="<?php the_permalink() ?>" rel="bookmark" class="title">
- <?php the_post_thumbnail('thumbnail'); ?>
- </a>
- <div class="info">
- <a href="<?php the_permalink() ?>" rel="bookmark" class="title"><?php the_title(); ?></a>
- </div>
- </div>
- <?php endwhile;?>
- <?php endif; ?>
- <div class="clear"></div>
- <?php wp_reset_query(); ?>
- <?php /* Main Loop */ ?>
- <?php global $framework; ?>
- <div id="post-<?php the_ID(); ?>" <?php post_class('post format-standard'); ?>>
- <div class="post-header">
- <?php if ( has_post_thumbnail()) { ?>
- <?php if((is_single() || is_page()) && $framework->get_option('post_thumbnails_on_single') == 'on') { ?>
- <div class="thumbnail alignleft">
- <?php the_post_thumbnail('thumbnail'); ?>
- </div> <!-- /.thumbnail -->
- <?php } else if((is_home() || is_archive()) && $framework->get_option('post_thumbnails_on_index') == 'on') { ?>
- <div class="thumbnail alignleft">
- <a class="thumbnail-link fademe" href="<?php the_permalink() ?>" title="<?php the_title(); ?>">
- <?php the_post_thumbnail('thumbnail'); ?>
- </a>
- </div> <!-- /.thumbnail -->
- <?php } // end if ?>
- <?php } //end if ?>
- <div class="title-wrap">
- <?php if(is_single() || is_page()) { ?>
- <h1 class="post-title"><?php the_title(); ?></h1>
- <?php } else { ?>
- <h2 class="post-title">
- <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a>
- </h2>
- <?php } // end if ?>
- <div class="post-header-meta">
- <?php if(strlen(trim(get_the_title())) === 0) { ?>
- <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><span class="the-time"><?php the_time('F j, Y'); ?></span></a>
- <?php } else { ?>
- <span class="the-time"><?php the_time('F j, Y'); ?></span>
- <?php } // end if/else ?>
- <?php if(comments_open()) { ?>
- <span class="the-comment-link">— <?php comments_popup_link(__('0 Comments','standard'), __('1 Comment','standard'), __('% Comments','standard'), '', ''); ?></span>
- <?php } // end if ?>
- </div><!-- /.post-header-meta -->
- </div><!-- /.title-wrap -->
- <div class="clear"></div>
- </div> <!-- /.post-header -->
- <?php if ( is_search() ) { ?>
- <div id="content-<?php the_ID(); ?>" class="entry-summary">
- <?php the_excerpt(); ?>
- <div class="clear"></div>
- </div><!-- /.entry-summary -->
- <?php } else { ?>
- <div id="content-<?php the_ID(); ?>" class="entry-content">
- <div class="content">
- <?php the_content(__('Continue Reading...','standard')); ?>
- </div>
- <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'standard' ) . '</span>', 'after' => '</div>' ) ); ?>
- <div class="clear"></div>
- </div><!-- /.entry-content -->
- <?php if( !is_front_page() ) : ?>
- <center><script type="text/javascript"><!--
- google_ad_client = "ca-pub-6100602944884394";
- /* Bottom Post Ad */
- google_ad_slot = "9592556020";
- google_ad_width = 468;
- google_ad_height = 60;
- //-->
- </script>
- <script type="text/javascript"
- src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
- </script></center>
- <?php endif; ?>
- <div class="post-meta">
- <?php if(!isset($_GET['attachment_id'])) { ?>
- <?php _e('Tagged In','standard'); ?>
- <span class="the-category"><?php the_category(', '); ?></span>
- <span class="the-tags"><?php the_tags('', ', ', ''); ?> </span>
- <?php } ?>
- </div> <!-- /.post-meta -->
- <?php } // end if ?>
- </div> <!-- /#post- -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement