forked from ThemeAwesome/WP-Forge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
content-audio.php
55 lines (55 loc) · 2.75 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
<?php
/**
* The template for displaying posts in the Audio post format on index and archive pages
* @since WP-Forge 5.5.1.7
* @version 6.3.0.1
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php if( get_theme_mod( 'wpforge_cat_display','yes' ) == 'yes') { ?>
<?php if( get_theme_mod( 'wpforge_cat_position','top' ) == 'top') { ?>
<?php wpforge_entry_meta_categories(); ?>
<?php } // end if ?>
<?php } // end if ?>
<div class="entry-meta-header">
<a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'audio' ) ); ?>" title="View all Audio Posts"><span class="genericon genericon-audio"></span> <?php echo get_post_format_string( 'audio' ); ?></a>
<?php wpforge_entry_meta_header(); ?>
<?php if ( comments_open() ) : ?>
<span class="genericon genericon-comment"></span> <?php comments_popup_link( '<span class="leave-reply">' . __( 'Comment', 'wp-forge' ) . '</span>', __( '1 Comment', 'wp-forge' ), __( '% Comments', 'wp-forge' ) ); ?>
<?php endif; // comments_open() ?>
<?php edit_post_link( __( 'Edit', 'wp-forge' ), '<span class="edit-link"><span class="genericon genericon-edit"></span> ', '</span>' ); ?>
</div><!-- end .entry-meta-header -->
<?php the_post_thumbnail(); ?>
<?php if ( is_single() ) : ?>
<h1 class="entry-title-post"><?php the_title(); ?></h1>
<?php else : ?>
<h1 class="entry-title-post">
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'wp-forge' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
</h1>
<?php endif; // is_single() ?>
</header><!-- .entry-header -->
<?php if ( is_search() ) : // Only display Excerpts for Search ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
<?php else : ?>
<div class="entry-content-post">
<?php the_content( __( 'Continue reading <span class="meta-nav">»</span>', 'wp-forge' ) ); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'wp-forge' ), 'after' => '</div>' ) ); ?>
</div><!-- .entry-content -->
<?php endif; ?>
<footer class="entry-meta">
<div class="entry-meta-footer">
<?php if( get_theme_mod( 'wpforge_cat_display' ) == 'yes') { ?>
<?php if( get_theme_mod( 'wpforge_cat_position' ) == 'bottom') { ?>
<?php wpforge_bottom_meta_categories(); ?>
<?php } // end if ?>
<?php } // end if ?>
<?php if( get_theme_mod( 'wpforge_tag_display','yes' ) == 'yes') { ?>
<?php wpforge_entry_meta_footer(); ?>
<?php } // end if ?>
</div><!-- end .entry-meta-footer -->
<?php get_template_part( 'content', 'author' ); ?>
</footer><!-- .entry-meta -->
</article><!-- #post -->