-
Notifications
You must be signed in to change notification settings - Fork 83
/
content-audio.php
47 lines (33 loc) · 1.62 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
<article <?php hybrid_post_attributes(); ?>>
<?php if ( is_singular( get_post_type() ) ) { ?>
<header class="entry-header">
<?php echo apply_atomic_shortcode( 'entry_title', the_title( '<h1 class="entry-title">', '</h1>', false ) ); ?>
<?php get_template_part('entry', 'side'); ?>
</header><!-- .entry-header -->
<div class="entry-content">
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<p class="page-links">' . '<span class="before">' . __( 'Pages:', 'bearded' ) . '</span>', 'after' => '</p>' ) ); ?>
</div><!-- .entry-content -->
<footer class="entry-footer">
<?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">' . __( '[entry-terms taxonomy="category" before="Posted in "] [entry-terms before="Tagged "]', 'bearded' ) . '</div>' ); ?>
</footer><!-- .entry-footer -->
<?php } else { ?>
<header class="entry-header">
<div class="featured-image">
<?php echo ( $audio = hybrid_media_grabber( array( 'type' => 'audio' ) ) ); ?>
</div>
<?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>
<?php get_template_part('entry', 'side'); ?>
</header><!-- .entry-header -->
<?php if ( has_excerpt() ) { ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
<?php } elseif ( empty( $audio ) ) { ?>
<div class="entry-content">
<?php the_content( __( 'Read more →', 'bearded' ) ); ?>
<?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'bearded' ), 'after' => '</p>' ) ); ?>
</div><!-- .entry-content -->
<?php } ?>
<?php } ?>
</article><!-- .hentry -->