← Back
Editing: content-audio.php
<?php // ============================================================================= // VIEWS/ETHOS/CONTENT-AUDIO.PHP // ----------------------------------------------------------------------------- // Audio post output for Ethos. // ============================================================================= $is_index_featured_layout = get_post_meta( get_the_ID(), '_x_ethos_index_featured_post_layout', true ) == 'on' && ! is_single(); ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <?php if ( $is_index_featured_layout ) : ?> <?php x_ethos_featured_index(); ?> <?php else : ?> <?php if ( has_post_thumbnail() && ! is_single() ) : ?> <div class="entry-featured"> <?php x_ethos_featured_index(); ?> </div> <?php elseif ( has_post_thumbnail() && is_single() ) : ?> <div class="entry-featured"> <div class="entry-thumb"> <?php echo get_the_post_thumbnail( get_the_ID(), 'entry', NULL ); ?> </div> <?php x_featured_audio(); ?> </div> <?php endif; ?> <div class="entry-wrap"> <?php x_get_view( 'ethos', '_content', 'post-header' ); ?> <?php if ( ! has_post_thumbnail() && is_single() ) : ?> <div class="entry-featured"> <?php x_featured_audio(); ?> </div> <?php endif; ?> <?php x_get_view( 'global', '_content' ); ?> </div> <?php endif; ?> </article>
Save File
Cancel