>
';
the_excerpt();
echo '
';
}
else {
echo '';
if (post_password_required()) {
the_content(__('Continue reading
→','kippis'));
}
else {
$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,'thumbnail');
echo '
';
echo '
';
printf(_n('This gallery contains %2$s photo.','This gallery contains %2$s photos.',$total_images,'kippis')
,'href="' . esc_url(get_permalink()) . '" title="' . sprintf(esc_attr__('Permalink to %s','kippis'),the_title_attribute('echo=0')) . '" rel="bookmark"',number_format_i18n($total_images));
echo '
';
}
the_excerpt();
}
wp_link_pages(array('before' => '
' . __('Pages:','kippis' ) . '','after' => '
'));
echo '
';
}
echo '