-
Notifications
You must be signed in to change notification settings - Fork 0
/
content-audio.php
90 lines (86 loc) · 3.45 KB
/
content-audio.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
<?php
/**
* The template for displaying posts in the Audio Post Format on index and archive pages
*
* Learn more: http://codex.wordpress.org/Post_Formats
*
* @package WordPress
* @subpackage Weaver II
* @since Weaver II 1.0
*/
weaverii_trace_template(__FILE__);
global $weaverii_cur_post_id;
$weaverii_cur_post_id = get_the_ID();
weaverii_per_post_style();
?>
<article id="post-<?php the_ID(); ?>" <?php post_class('content-audio ' . weaverii_post_count_class()); ?>>
<?php
if (!weaverii_compact_post()) {
?>
<header class="entry-header">
<?php weaverii_entry_header(__( 'Audio','weaver-ii'));
weaverii_comments_popup_link(); ?>
</header><!-- .entry-header -->
<?php
if (weaverii_show_only_title()) {
echo("\t</article><!-- #post -->\n");
return;
}
}
?>
<div class="entry-content cf">
<?php echo weaverii_the_contnt_featured(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:','weaver-ii') . '</span>', 'after' => '</div>' ) ); ?>
</div><!-- .entry-content -->
<?php
if (!weaverii_compact_post()
&& !weaverii_is_checked_post_opt('hide_bottom_post_meta')
&& !weaverii_is_checked_page_opt('ttw_hide_pp_infobot')) {
?>
<footer class="entry-utility">
<div class="entry-utility">
<?php
printf( __( '<a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span></span>','weaver-ii'),
esc_url( get_permalink() ),
get_the_date( 'c' ),
get_the_date(),
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
sprintf( esc_attr__( 'View all posts by %s','weaver-ii'), get_the_author() ),
get_the_author()
);
?>
</div><!-- .entry-utility -->
<div class="entry-utility">
<?php
/* translators: used between list items, there is a space after the comma */
$categories_list = get_the_category_list( __( ', ','weaver-ii') );
if ( $categories_list ):
?>
<span class="cat-links">
<?php printf( __( '<span class="%1$s">Posted in</span> %2$s','weaver-ii'), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list ); ?>
</span>
<?php endif; // End if categories ?>
<?php
/* translators: used between list items, there is a space after the comma */
$tags_list = get_the_tag_list( '', __( ', ','weaver-ii') );
if ( $tags_list ): ?>
<span class="tag-links">
<?php printf( __( '<span class="%1$s">Tagged</span> %2$s','weaver-ii'), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?>
</span>
<?php endif; // End if $tags_list ?>
<?php if ( comments_open() ) : ?>
<span class="comments-link"><?php comments_popup_link( '<span class="leave-reply">' . __( 'Reply','weaver-ii') . '</span>', __( '<strong>1</strong> Reply','weaver-ii'), __( '<strong>%</strong> Replies','weaver-ii') ); ?></span>
<?php endif; // End if comments_open() ?>
</div><!-- .entry-utility -->
<?php
weaverii_compact_link('check');
edit_post_link( __( 'Edit','weaver-ii'), '<span class="edit-link">', '</span>' );
?>
</footer><!-- #entry-utility -->
<?php
} else {
weaverii_compact_link();
edit_post_link( __( 'Edit','weaver-ii'), '<span class="edit-link">', '</span>' );
}
weaverii_inject_area('postpostcontent'); // inject post comment body ?>
</article><!-- #post-<?php the_ID(); ?> -->