Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 58 lines (39 sloc) 2.291 kB
2aa8890 Importing the initial My Life theme files and folders.
greenshady authored
1 <?php
2 /**
3 * Link Content Template
4 *
5 * Template used to show posts with the 'link' post format.
6 *
7 * @package MyLife
8 * @subpackage Template
9 * @since 0.1.0
10 * @author Justin Tadlock <justin@justintadlock.com>
7d67bf4 @justintadlock Bring copyright version up to date and version bump to 0.3.0.
authored
11 * @copyright Copyright (c) 2011 - 2013, Justin Tadlock
2aa8890 Importing the initial My Life theme files and folders.
greenshady authored
12 * @link http://themehybrid.com/themes/my-life
13 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
14 */
15
16 do_atomic( 'before_entry' ); // my-life_before_entry ?>
17
18 <div id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
19
20 <?php do_atomic( 'open_entry' ); // my-life_open_entry ?>
21
22 <?php if ( is_singular() ) { ?>
23
24 <?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>
25
26 <?php echo apply_atomic_shortcode( 'byline', '<div class="byline">' . __( '[post-format-link] published on [entry-published] [entry-comments-link before=" | "] [entry-edit-link before=" | "]', 'my-life' ) . '</div>' ); ?>
27
28 <div class="entry-content">
29 <?php the_content(); ?>
30 <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'my-life' ), 'after' => '</p>' ) ); ?>
31 </div><!-- .entry-content -->
32
33 <?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">' . __( '[entry-terms taxonomy="category" before="Posted in "] [entry-terms before="Tagged "]', 'my-life' ) . '</div>' ); ?>
34
35 <?php } else { ?>
36
37 <?php if ( get_the_title() ) { ?>
38
1e0242a @justintadlock Bring code up to date with latest version of Hybrid Core.
authored
39 <h2 class="entry-title"><a href="<?php echo esc_url( post_format_tools_url_grabber() ); ?>" title="<?php the_title_attribute(); ?>"><?php printf( '%s <span class="meta-nav">&rarr;</span>', the_title( '', '', false ) ); ?></a></h2>
2aa8890 Importing the initial My Life theme files and folders.
greenshady authored
40
41 <?php } else { ?>
42
43 <div class="entry-content">
44 <?php the_content(); ?>
45 <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'my-life' ), 'after' => '</p>' ) ); ?>
46 </div><!-- .entry-content -->
47
48 <?php } ?>
49
50 <?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">' . __( '[post-format-link] published on [entry-published] [entry-permalink before="| "] [entry-comments-link before="| "] [entry-edit-link before="| "]', 'my-life' ) . '</div>' ); ?>
51
52 <?php } ?>
53
54 <?php do_atomic( 'close_entry' ); // my-life_close_entry ?>
55
56 </div><!-- .hentry -->
57
58 <?php do_atomic( 'after_entry' ); // my-life_after_entry ?>
Something went wrong with that request. Please try again.