Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * The default template for displaying content
- *
- * Used for both single and index/archive/search
- *
- * @package Catch Themes
- * @subpackage Catch Adaptive Pro
- * @since Catch Adaptive Pro 1.0
- */
- ?>
- <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <div class="archive-post-wrap">
- <?php if ( '629' == get_the_ID() ) : ?>
- <div class="entry-container">
- <header class="entry-header">
- <h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
- <?php if ( 'post' == get_post_type() ) : ?>
- <?php catchadaptive_entry_meta(); ?>
- <?php endif; ?>
- </header><!-- .entry-header -->
- <div class="entry-content">
- <?php the_content(); ?>
- <?php
- wp_link_pages( array(
- 'before' => '<div class="page-links"><span class="pages">' . __( 'Pages:', 'catch-adaptive-pro' ) . '</span>',
- 'after' => '</div>',
- 'link_before' => '<span>',
- 'link_after' => '</span>',
- ) );
- ?>
- </div><!-- .entry-content -->
- <footer class="entry-footer">
- <?php catchadaptive_tag_category(); ?>
- </footer><!-- .entry-footer -->
- </div><!-- .entry-container -->
- <?php else : ?>
- <?php
- /**
- * catchadaptive_before_entry_container hook
- *
- * @hooked catchadaptive_archive_content_image - 10
- */
- do_action( 'catchadaptive_before_entry_container' ); ?>
- <div class="entry-container">
- <header class="entry-header">
- <h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
- <?php if ( 'post' == get_post_type() ) : ?>
- <?php catchadaptive_entry_meta(); ?>
- <?php endif; ?>
- </header><!-- .entry-header -->
- <?php
- $options = catchadaptive_get_theme_options();
- $hide_content = $options['hide_archive_content'];
- if ( ! $hide_content ) {
- if ( is_search() || 'full-content' != $options['content_layout'] ) : // Only display Excerpts for Search and if 'full-content' is not selected ?>
- <div class="entry-summary">
- <?php the_excerpt(); ?>
- </div><!-- .entry-summary -->
- <?php else : ?>
- <div class="entry-content">
- <?php the_content(); ?>
- <?php
- wp_link_pages( array(
- 'before' => '<div class="page-links"><span class="pages">' . __( 'Pages:', 'catch-adaptive-pro' ) . '</span>',
- 'after' => '</div>',
- 'link_before' => '<span>',
- 'link_after' => '</span>',
- ) );
- ?>
- </div><!-- .entry-content -->
- <?php endif;
- }
- ?>
- <footer class="entry-footer">
- <?php catchadaptive_tag_category(); ?>
- </footer><!-- .entry-footer -->
- </div><!-- .entry-container -->
- <?php endif; ?>
- </div><!-- .archive-post-wrap -->
- </article><!-- #post -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement