// If they're one and the same we don't really need to show the post content BECAUSE ... // that's just a url and we're already using that url as a href for the title link above BUT ... // if they're NOT the same I think we should show that content. if (strlen($link_url) != strlen($link_content)) { // Let's make any bare URL a clickable link, too. add_filter('the_content', 'make_clickable'); ?> <div class="entry-content"> <?php the_content(__('Continue reading <span class="meta-nav">→</span>', 'pinktouch')); ?> <?php wp_link_pages(array('before' => '<div class="page-link">' . __('Pages:', 'pinktouch'), 'after' => '</div>')); ?> <?php if (get_the_author_meta('description') && is_singular()) { pinktouch_author_info(); } ?> </div><!-- .entry-content --> <?php } ?> </div><!-- .content --> <?php pinktouch_post_data(); ?> </div><!-- /.post.text -->
<div class="entry-content"> <?php if ( post_password_required() || is_singular() ) : ?> <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'pinktouch' ) ); ?> <?php else : ?> <?php $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, 'large' ); ?> <div class="gallery-thumb"> <a href="<?php the_permalink(); ?>"><?php echo $image_img_tag; ?></a> </div><!-- .gallery-thumb --> <p class="gallery-info"><em><?php printf( _n( 'This gallery contains <a %1$s>%2$s photo</a>.', 'This gallery contains <a %1$s>%2$s photos</a>.', $total_images, 'pinktouch' ), 'href="' . get_permalink() . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'pinktouch' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"', number_format_i18n( $total_images ) ); ?></em></p> <?php endif; ?> <?php the_excerpt(); ?> <?php endif; ?> <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'pinktouch' ), 'after' => '</div>' ) ); ?> <?php if ( get_the_author_meta( 'description' ) && is_singular() ) pinktouch_author_info(); ?> </div><!-- .entry-content --> </div><!-- .content --> <?php pinktouch_post_data(); ?> </div><!-- /.post -->