Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Template part for displaying posts
- *
- * @link https://codex.wordpress.org/Template_Hierarchy
- *
- * @package Catch_Wheels
- */
- ?>
- <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <div class="hentry-inner">
- <?php catch_wheels_archive_image(); ?>
- <div class="entry-container">
- <?php if ( is_sticky() ) { ?>
- <span class="sticky-label"><?php esc_html_e( 'Featured', 'catch-wheels-pro' ); ?></span>
- <?php } ?>
- <header class="entry-header">
- <?php
- $show_content = catch_wheels_get_content_layout();
- $show_meta = get_theme_mod( 'catch_wheels_archive_meta_show', 'show-meta' );
- if ( 'show-meta' === $show_meta ) : ?>
- <div class="entry-category">
- <?php catch_wheels_entry_category(); ?>
- </div><!-- .entry_category -->
- <?php endif;
- if ( is_singular() ) :
- the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
- else :
- the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>');
- if ( 'show-meta' === $show_meta ) : ?>
- <div class="entry-meta">
- <?php echo get_the_date(); ?>
- <?php catch_wheels_posted_by(); ?>
- </div><!-- .entry-meta -->
- <?php endif;
- endif; ?>
- </header><!-- .entry-header -->
- <?php
- if ( 'full-content' === $show_content || 'full-content-image-top' === $show_content ) {
- $content = apply_filters( 'the_content', get_the_content() );
- $content = str_replace( ']]>', ']]>', $content );
- echo '<div class="entry-content">' . $content . '</div><!-- .entry-content -->';
- } else {
- echo '<div class="entry-summary"><p>' . get_the_excerpt() . '</p></div><!-- .entry-summary -->';
- } ?>
- </div> <!-- .entry-container -->
- </div> <!-- .hentry-inner -->
- </article><!-- #post-<?php //the_ID(); ?> -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement