'; $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 {
?>
';
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 '
';
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 '
';
} else {
echo pbt_resize(get_option('thumbnail_size_w'),get_option('thumbnail_size_h'));
}
/*if(function_exists('has_post_thumbnail') && has_post_thumbnail()) {
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 '