← Back
Editing: content-quote.php
<?php // ============================================================================= // VIEWS/RENEW/CONTENT-QUOTE.PHP // ----------------------------------------------------------------------------- // Quote post output for Renew. // ============================================================================= $quote = get_post_meta( get_the_ID(), '_x_quote_quote', true ); $cite = get_post_meta( get_the_ID(), '_x_quote_cite', true ); ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="entry-wrap"> <header class="entry-header"> <?php if ( is_single() ) : ?> <div class="x-hgroup"> <h1 class="entry-title"> <?php x_icon_post_format("x-entry-title-icon"); ?> <?php echo $quote; ?> </h1> <cite class="entry-title-sub"><?php echo $cite; ?></cite> </div> <?php else : ?> <div class="x-hgroup"> <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to: "%s"', '__x__' ), the_title_attribute( 'echo=0' ) ) ); ?>"><?php echo $quote; ?></a></h2> <cite class="entry-title-sub"><?php echo $cite; ?></cite> </div> <?php endif; ?> <?php x_renew_entry_meta(); ?> </header> <?php if ( is_single() ) : ?> <?php if ( has_post_thumbnail() ) : ?> <div class="entry-featured"> <?php x_featured_image(); ?> </div> <?php endif; ?> <?php x_get_view( 'global', '_content', 'the-content' ); ?> <?php x_get_view( 'renew', '_content', 'post-footer' ); ?> <?php endif; ?> </div> </article>
Save File
Cancel