wp/wp-content/themes/twentytwelve/content-status.php
author ymh <ymh.work@gmail.com>
Thu, 07 Nov 2013 00:08:07 +0000
changeset 1 f6eb5a861d2f
parent 0 d970ebf37754
permissions -rw-r--r--
remove unnessary files. Make timthumb work
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
<?php
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
/**
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
 * The template for displaying posts in the Status post format
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
 *
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
 * @package WordPress
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
 * @subpackage Twenty_Twelve
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
 * @since Twenty Twelve 1.0
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
 */
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
?>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
	<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
		<div class="entry-header">
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
			<header>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
				<h1><?php the_author(); ?></h1>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
				<h2><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a></h2>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    16
			</header>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    17
			<?php
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    18
			/**
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    19
			 * Filter the status avatar size.
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    20
			 *
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    21
			 * @since Twenty Twelve 1.0
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    22
			 *
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    23
			 * @param int $size The height and width of the avatar in pixels.
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    24
			 */
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    25
			$status_avatar = apply_filters( 'twentytwelve_status_avatar', 48 );
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    26
			echo get_avatar( get_the_author_meta( 'ID' ), $status_avatar );
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    27
			?>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    28
		</div><!-- .entry-header -->
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    29
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    30
		<div class="entry-content">
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    31
			<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    32
		</div><!-- .entry-content -->
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    33
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    34
		<footer class="entry-meta">
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    35
			<?php if ( comments_open() ) : ?>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    36
			<div class="comments-link">
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    37
				<?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    38
			</div><!-- .comments-link -->
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    39
			<?php endif; // comments_open() ?>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    40
			<?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    41
		</footer><!-- .entry-meta -->
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    42
	</article><!-- #post -->