-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdesk-mess-mirrored-link.php
105 lines (80 loc) · 2.87 KB
/
desk-mess-mirrored-link.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?php
/**
* Desk Mess Mirrored Link loop
* Displays the post-format => link loop content.
*
* @package Desk_Mess_Mirrored
* @since 2.2.3
*
* @link http://buynowshop.com/themes/desk-mess-mirrored/
* @link https://github.com/Cais/desk-mess-mirrored/
* @link https://wordpress.org/themes/desk-mess-mirrored/
*
* @author Edward Caissie <edward.caissie@gmail.com>
* @copyright Copyright (c) 2009-2016, Edward Caissie
*
* @version 2.2.4
* @date April 13, 2014
* Added `dmm_post_meta_link_edit()` function with filter hooks for DRY purposes
*
* @version 2.4
* @date May 16, 2015
* Improved i18n implementation
* Extracted out code for `dmm_single_view_author_link` function for all post-formats templates
*/
?>
<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<div class="transparent glyph"><?php dmm_link_glyph(); ?></div>
<?php if ( ! post_password_required() && ( comments_open() || ( get_comments_number() > 0 ) ) ) { ?>
<div class="post-comments">
<?php comments_popup_link( __( '0', 'desk-mess-mirrored' ), __( '1', 'desk-mess-mirrored' ), '%', '', '-' ); ?>
</div>
<?php } ?>
<h1>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(
array(
'before' => __( 'Permalink to: ', 'desk-mess-mirrored' ),
'after' => ''
)
); ?>"><?php the_title(); ?></a>
</h1>
<div class="postdata">
<?php if ( is_home() || is_front_page() ) {
printf(
__( 'Posted by %1$s on %2$s in %3$s', 'desk-mess-mirrored' ),
get_the_author(),
get_the_time( get_option( 'date_format' ) ),
get_the_category_list( ', ' )
);
if ( ! post_password_required() && ! comments_open() && ( is_home() || is_front_page() ) ) {
/** Only displays when comments are closed */
echo '<br />';
comments_popup_link( '', '', '', '', __( 'with Comments closed', 'desk-mess-mirrored' ) );
}
} else {
printf(
__( 'Posted by %1$s on %2$s @ %3$s<br />in %4$s', 'desk-mess-mirrored' ),
get_the_author(),
get_the_time( get_option( 'date_format' ) ),
get_the_time( get_option( 'time_format' ) ),
get_the_category_list( ', ' )
);
}
dmm_post_meta_link_edit(); ?>
</div>
<?php if ( is_home() || is_front_page() && has_post_thumbnail() ) {
the_post_thumbnail( 'thumbnail', array( 'class' => 'alignleft' ) );
}
the_content( __( 'Read more...', 'desk-mess-mirrored' ) ); ?>
<div class="clear"><!-- For inserted media at the end of the post --></div>
<?php wp_link_pages(
array(
'before' => '<p id="wp-link-pages"><strong>' . __( 'Pages:', 'desk-mess-mirrored' ) . '</strong> ',
'after' => '</p>',
'next_or_number' => 'number'
)
);
dmm_single_view_author_link(); ?>
<p class="single-meta"><?php the_tags(); ?></p>
</div> <!-- .post #post-ID -->
<?php comments_template();