Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 234c0fea1b
Fetching contributors…

Cannot retrieve contributors at this time

75 lines (74 sloc) 3.784 kb
<?php
/**
* Shades loop
*
* Standard loop for all non-supported post-formats
*
* @package Shades
* @since 1.7
*
* @link http://buynowshop.com/themes/shades/
* @link https://github.com/Cais/shades/
* @link http://wordpress.org/extend/themes/shades/
*
* @author Edward Caissie <edward.caissie@gmail.com>
* @copyright Copyright (c) 2009-2012, Edward Caissie
*/
/** Check if the content is being displayed on a "page" */
if ( is_page() ) { ?>
<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<h1>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute( array('before' => 'Permalink to: ', 'after' => '')); ?>"><?php the_title(); ?></a>
</h1>
<div class="postdata">
<?php
printf( __( 'Posted by %1$s on %2$s', 'shades' ), get_the_author(), get_the_time( get_option( 'date_format' ) ) );
comments_popup_link( __( ' with no Comments', 'shades' ), __( ' with 1 Comment', 'shades' ), __( ' with % Comments', 'shades' ), '', __( '', 'shades' ) );
the_shortlink( __( 'Short Link', 'shades' ), '', ' &#124; ', '' );
edit_post_link( __( 'Edit', 'shades' ), __( ' &#124; ', 'shades' ), __( '', 'shades' ) ); ?>
</div><!-- .postdata -->
<?php the_content( __( 'Read more... ', 'shades' ) ); ?>
<div class="clear"></div><!-- For inserted media at the end of the post -->
<?php wp_link_pages( array( 'before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number' ) ); ?>
</div><!-- .post #post-ID -->
<?php
} else {
/* Otherwise show the "post" content */ ?>
<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<h1>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute( array('before' => 'Permalink to: ', 'after' => '')); ?>"><?php the_title(); ?></a>
<?php if ( ! is_single() ) { ?>
<div class="post-comments">
<?php comments_popup_link( __( 'No Comments', 'shades' ), __( '1 Comment', 'shades' ), __( '% Comments', 'shades' ), '', __( 'Comments closed', 'shades' ) ); ?>
</div>
<?php } ?>
</h1>
<div class="postdata">
<?php
if ( is_page() ) {
printf( __( 'Posted by %1$s on %2$s', 'shades' ), get_the_author(), get_the_time( get_option( 'date_format' ) ) );
} else {
printf( __( '%1$s by %2$s on %3$s', 'shades' ), shades_use_posted(), get_the_author(), get_the_time( get_option( 'date_format' ) ) );
_e( ' in ', 'shades' ); the_category( ', ' );
}
the_shortlink( __( 'Short Link', 'shades' ), '', ' &#124; ', '' );
edit_post_link( __( 'Edit', 'shades' ), __( ' &#124; ', 'shades' ), __( '', 'shades' ) ); ?>
</div><!-- .postdata -->
<?php
if ( is_home() || is_front_page() && has_post_thumbnail() ) {
the_post_thumbnail( 'thumbnail', array( 'class' => 'alignleft' ) );
}
if ( is_home() || is_front_page() || is_single() ) {
the_content( __( 'Read more... ', 'shades' ) ); ?>
<div class="clear"></div><!-- For inserted media at the end of the post -->
<?php
wp_link_pages( array( 'before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number' ) );
} else {
the_excerpt();
}
if ( is_single() ) { ?>
<div id="author_link"><?php _e( '... other posts by ', 'shades' ); ?><?php the_author_posts_link(); ?></div>
<?php } ?>
<p class="tags"><?php the_tags(); ?></p>
</div> <!-- .post #post-ID -->
<?php } ?>
Jump to Line
Something went wrong with that request. Please try again.