File Editor
Directories:
.. (Back)
Files:
_content-post-header.php
_index-featured.php
_index.php
_post-slider.php
content-audio.php
content-gallery.php
content-image.php
content-link.php
content-page.php
content-portfolio.php
content-quote.php
content-video.php
content.php
template-blank-1.php
template-blank-2.php
template-blank-3.php
template-blank-4.php
template-blank-5.php
template-blank-6.php
template-blank-7.php
template-blank-8.php
template-layout-content-sidebar.php
template-layout-full-width.php
template-layout-portfolio.php
template-layout-sidebar-content.php
woocommerce.php
wp-404.php
wp-bbpress.php
wp-buddypress.php
wp-comments.php
wp-index.php
wp-page.php
wp-sidebar.php
wp-single-x-portfolio.php
wp-single.php
Create New File
Create
Edit File: content-link.php
<?php // ============================================================================= // VIEWS/ETHOS/CONTENT-LINK.PHP // ----------------------------------------------------------------------------- // Link post output for Ethos. // ============================================================================= $is_index_featured_layout = get_post_meta( get_the_ID(), '_x_ethos_index_featured_post_layout', true ) == 'on' && ! is_single(); $link = get_post_meta( get_the_ID(), '_x_link_url', true ); ?> <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() ) : ?> <div class="entry-featured"> <?php if ( ! is_single() ) : ?> <?php x_ethos_featured_index(); ?> <?php else : ?> <?php x_featured_image(); ?> <?php endif; ?> </div> <?php endif; ?> <div class="entry-wrap"> <?php x_get_view( 'ethos', '_content', 'post-header' ); ?> <?php if ( is_single() ) : ?> <div class="link"> <a href="<?php echo $link; ?>" title="<?php echo esc_attr( sprintf( __( 'Shared link from post: "%s"', '__x__' ), the_title_attribute( 'echo=0' ) ) ); ?>" <?php x_output_target_blank(); ?>><?php echo $link; ?></a> </div> <?php x_get_view( 'global', '_content', 'the-content' ); ?> <?php else : ?> <?php x_get_view( 'global', '_content' ); ?> <?php endif; ?> </div> <?php endif; ?> </article>
Save Changes
Rename File
Rename