Advertisement
catchmahesh

content-cat.php

Jun 4th, 2017
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.75 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 Gridalicious
  9.  * @since Gridalicious 1.0
  10.  */
  11. ?>
  12.  
  13. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  14.     <div class="archive-post-wrap">
  15.         <?php
  16.         /**
  17.          * gridalicious_before_entry_container hook
  18.          *
  19.          * @hooked gridalicious_archive_content_image - 10
  20.          */
  21.         do_action( 'gridalicious_before_entry_container' ); ?>
  22.  
  23.         <div class="entry-container">
  24.             <header class="entry-header">
  25.                 <h1 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
  26.  
  27.                 <?php if ( 'post' == get_post_type() ) : ?>
  28.  
  29.                     <?php gridalicious_entry_meta(); ?>
  30.  
  31.                 <?php endif; ?>
  32.             </header><!-- .entry-header -->
  33.  
  34.             <?php
  35.             $options = gridalicious_get_theme_options();
  36.  
  37.             if ( is_search() || 'full-content' != $options['content_layout'] ) : // Only display Excerpts for Search and if 'full-content' is not selected ?>
  38.                 <div class="entry-summary">
  39.                     <?php the_excerpt(); ?>
  40.                 </div><!-- .entry-summary -->
  41.             <?php else : ?>
  42.                 <div class="entry-content">
  43.                     <?php the_content(); ?>
  44.                     <?php
  45.                         wp_link_pages( array(
  46.                             'before' => '<div class="page-links"><span class="pages">' . __( 'Pages:', 'gridalicious-pro' ) . '</span>',
  47.                             'after'  => '</div>',
  48.                             'link_before'   => '<span>',
  49.                             'link_after'    => '</span>',
  50.                         ) );
  51.                     ?>
  52.                 </div><!-- .entry-content -->
  53.             <?php endif; ?>
  54.  
  55.             <footer class="entry-footer">
  56.                 <?php gridalicious_tag_category(); ?>
  57.             </footer><!-- .entry-footer -->
  58.         </div><!-- .entry-container -->
  59.     </div><!-- .archive-post-wrap -->
  60. </article><!-- #post -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement