]> scripts.mit.edu Git - autoinstallsdev/wordpress.git/blobdiff - wp-content/themes/twentytwelve/content-link.php
Wordpress 3.5
[autoinstallsdev/wordpress.git] / wp-content / themes / twentytwelve / content-link.php
diff --git a/wp-content/themes/twentytwelve/content-link.php b/wp-content/themes/twentytwelve/content-link.php
new file mode 100644 (file)
index 0000000..31e4ec9
--- /dev/null
@@ -0,0 +1,26 @@
+<?php
+/**
+ * The template for displaying posts in the Link post format
+ *
+ * @package WordPress
+ * @subpackage Twenty_Twelve
+ * @since Twenty Twelve 1.0
+ */
+?>
+
+       <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
+               <header><?php _e( 'Link', 'twentytwelve' ); ?></header>
+               <div class="entry-content">
+                       <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?>
+               </div><!-- .entry-content -->
+
+               <footer class="entry-meta">
+                       <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>
+                       <?php if ( comments_open() ) : ?>
+                       <div class="comments-link">
+                               <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
+                       </div><!-- .comments-link -->
+                       <?php endif; // comments_open() ?>
+                       <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
+               </footer><!-- .entry-meta -->
+       </article><!-- #post -->