Advertisement
pratikshrestha

Catch Adaptive Child Modifications

Jan 21st, 2018
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.81 KB | None | 0 0
  1. <?php
  2. /**
  3.  * The default template for displaying content
  4.  *
  5.  * Used for both single and index/archive/search
  6.  *
  7.  * @package Catch Themes
  8.  * @subpackage Catch Adaptive Pro
  9.  * @since Catch Adaptive Pro 1.0
  10.  */
  11. ?>
  12.  
  13. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  14.     <div class="archive-post-wrap">
  15.     <?php if ( '629' == get_the_ID() ) : ?>
  16.         <div class="entry-container">
  17.             <header class="entry-header">
  18.                 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  19.  
  20.                 <?php if ( 'post' == get_post_type() ) : ?>
  21.  
  22.                     <?php catchadaptive_entry_meta(); ?>
  23.  
  24.                 <?php endif; ?>
  25.             </header><!-- .entry-header -->
  26.  
  27.             <div class="entry-content">
  28.                 <?php the_content(); ?>
  29.                 <?php
  30.                     wp_link_pages( array(
  31.                         'before' => '<div class="page-links"><span class="pages">' . __( 'Pages:', 'catch-adaptive-pro' ) . '</span>',
  32.                         'after'  => '</div>',
  33.                         'link_before'   => '<span>',
  34.                         'link_after'    => '</span>',
  35.                     ) );
  36.                 ?>
  37.             </div><!-- .entry-content -->
  38.  
  39.             <footer class="entry-footer">
  40.                 <?php catchadaptive_tag_category(); ?>
  41.             </footer><!-- .entry-footer -->
  42.         </div><!-- .entry-container -->
  43.     <?php else : ?>
  44.         <?php
  45.         /**
  46.          * catchadaptive_before_entry_container hook
  47.          *
  48.          * @hooked catchadaptive_archive_content_image - 10
  49.          */
  50.         do_action( 'catchadaptive_before_entry_container' ); ?>
  51.  
  52.         <div class="entry-container">
  53.             <header class="entry-header">
  54.                 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  55.  
  56.                 <?php if ( 'post' == get_post_type() ) : ?>
  57.  
  58.                     <?php catchadaptive_entry_meta(); ?>
  59.  
  60.                 <?php endif; ?>
  61.             </header><!-- .entry-header -->
  62.  
  63.             <?php
  64.             $options = catchadaptive_get_theme_options();
  65.  
  66.             $hide_content = $options['hide_archive_content'];
  67.  
  68.             if ( ! $hide_content ) {
  69.                 if ( is_search() || 'full-content' != $options['content_layout'] ) : // Only display Excerpts for Search and if 'full-content' is not selected ?>
  70.                     <div class="entry-summary">
  71.                         <?php the_excerpt(); ?>
  72.                     </div><!-- .entry-summary -->
  73.                 <?php else : ?>
  74.                     <div class="entry-content">
  75.                         <?php the_content(); ?>
  76.                         <?php
  77.                             wp_link_pages( array(
  78.                                 'before' => '<div class="page-links"><span class="pages">' . __( 'Pages:', 'catch-adaptive-pro' ) . '</span>',
  79.                                 'after'  => '</div>',
  80.                                 'link_before'   => '<span>',
  81.                                 'link_after'    => '</span>',
  82.                             ) );
  83.                         ?>
  84.                     </div><!-- .entry-content -->
  85.                 <?php endif;
  86.             }
  87.             ?>
  88.  
  89.             <footer class="entry-footer">
  90.                 <?php catchadaptive_tag_category(); ?>
  91.             </footer><!-- .entry-footer -->
  92.         </div><!-- .entry-container -->
  93.     <?php endif; ?>
  94.     </div><!-- .archive-post-wrap -->
  95. </article><!-- #post -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement