query($showposts); while ($featuredPosts->have_posts()) : $featuredPosts->the_post(); $notin[] = $post->ID; endwhile; $posts = pbt_theme_option('number_posts'); if(empty($posts)) $posts = 6; $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; if (is_active_widget('widget_myFeature')) { $args = array( 'post__not_in'=>$notin, 'posts_per_page'=>$posts, 'paged'=>$paged ); } else { $args = array( 'posts_per_page'=>$posts, 'paged'=>$paged ); } query_posts($args); if(pbt_theme_option('latest_story')=="on" && $paged < 2) { echo '
'.__('Latest Story', "magazine-basic").'
'; } } ?>

post_count; echo '

'.$num. __(' search results for', "magazine-basic").' "'; the_search_query(); echo '"

'; } ?> '; $i=1; } if($x!=1) { $classes = 'twopost twopost'; if($i==5) { $i = 3; } $classes .= $i; $i++; $wordlimit = pbt_theme_option('excerpt_two'); } } if($optionlayout==3 && $paged < 2 && is_home()) { if($x==2) { echo '
'; $i=1; } if($x>1 && $x<4) { $classes = 'twopost twopost'; if($i==5) { $i = 3; } $classes .= $i; $i++; $wordlimit = pbt_theme_option('excerpt_two'); } if($x==4) { echo '
'; $i=1; } if($x>3) { $classes = 'threepost threepost'; if($i==7) { $i = 4; } $classes .= $i; $i++; $wordlimit = pbt_theme_option('excerpt_three'); } } if($optionlayout==4 && $paged < 2 && is_home()) { if($x==2) { echo '
'; $i=1; } if($x>1) { $classes = 'threepost threepost'; if($i==7) { $i = 4; } $classes .= $i; $i++; $wordlimit = pbt_theme_option('excerpt_three'); } } ?>
> '; the_content(); echo '
'; } else { ?>

'; if(pbt_theme_option('dates_posts')=='on') { echo '
'; the_time(get_option('date_format')); echo '
'; } if(pbt_theme_option('authors_posts')=='on') { _e("By", "magazine-basic"); echo ' '; the_author_posts_link(); } echo '
'; } echo '
'; $subtitle = get_post_meta($post->ID, 'subtitle', true); if($subtitle) echo '

'.$subtitle.'

'; the_content(__('Read more »', "magazine-basic")); wp_link_pages(array('before' => '

'.__('Pages', "magazine-basic").': ', 'after' => '

', 'next_or_number' => 'number')); the_tags(__('

Tags: ', "magazine-basic"), ', ', '

'); echo '
'; } } else { if(function_exists('has_post_format') && has_post_format('aside')) { // new aside post format echo '
'; pbt_theme_excerpt($wordlimit); echo '
'; } elseif(function_exists('has_post_format') && has_post_format('link')) { // new link post format echo '
'; the_content(__('Read more »', "magazine-basic")); echo '
'; } else { ?>

" rel="bookmark">

'; if(is_home()) { if(pbt_theme_option('dates_index') == 'on') { echo '
'; the_time(get_option('date_format')); echo '
'; } if(pbt_theme_option('authors_index') == 'on') { _e("By", "magazine-basic"); echo ' '; the_author_posts_link(); } } else { if(pbt_theme_option('dates_cats') == 'on') { echo '
'; the_time(get_option('date_format')); echo '
'; } if(pbt_theme_option('authors_cats') == 'on') { _e("By", "magazine-basic"); echo ' '; the_author_posts_link(); } } echo '
'; echo '
'; if(function_exists('has_post_format') && has_post_format('gallery')) { // new gallery post format $images = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999 ) ); if ( $images ) : $total_images = count( $images ); $image = array_shift( $images ); $image_img_tag = wp_get_attachment_image( $image->ID, 'full' ); ?>

%2$s photo.', 'This gallery contains %2$s photos.', $total_images, "magazine-basic" ), 'href="' . get_permalink() . '" title="' . sprintf( esc_attr__( 'Permalink to %s', "magazine-basic" ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"', number_format_i18n( $total_images ) ); ?>

'; the_content(__('Read more »', "magazine-basic")); echo '
'; } else { if(pbt_theme_option('excerpt_content')!=2) { if(function_exists('has_post_thumbnail') && has_post_thumbnail()) { echo ''; the_post_thumbnail('thumbnail', array('class' => 'alignleft')); echo ''; } else { echo pbt_resize(get_option('thumbnail_size_w'),get_option('thumbnail_size_h')); } /*if(function_exists('has_post_thumbnail') && has_post_thumbnail()) { echo ''; if($x==1) { the_post_thumbnail(array(150,150), array('class' => 'alignleft')); } elseif($x>1 && $x<4) { the_post_thumbnail(array(100,100), array('class' => 'alignleft')); } else { the_post_thumbnail(array(80,80), array('class' => 'alignleft')); } echo ''; } else { if($x==1) { echo pbt_resize(150,150); } elseif($x>1 && $x<4) { echo pbt_resize(100,100); } else { echo pbt_resize(80,80); } }*/ pbt_theme_excerpt($wordlimit); } else { the_content(__('Read more »', "magazine-basic")); } } } echo '
'; } } ?>
1 && $paged < 2 && is_home()) echo ''; ?> 3 && $paged < 2 && is_home()) echo ''; ?> 1 && $paged < 2 && is_home()) echo ''; ?>