catchresponsive_archive_content_image

Template for Featured Image in Archive Content.

Description

catchresponsive_archive_content_image(); 

To override this in a child theme simply create your own catchresponsive_archive_content_image(), and that function will be used instead.


Usage

  1. if ( !function_exists( 'catchresponsive_archive_content_image' ) ) { 
  2. require_once '/inc/catchresponsive-core.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = catchresponsive_archive_content_image(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/inc/catchresponsive-core.php  
  1. function catchresponsive_archive_content_image() { 
  2.  
  3. $featured_image = $options['content_layout']; 
  4.  
  5. if ( has_post_thumbnail() && 'excerpt-image-left' == $featured_image ) { 
  6. ?> 
  7. <figure class="featured-image"> 
  8. <a rel="bookmark" href="<?php the_permalink(); ?>"> 
  9. <?php 
  10. the_post_thumbnail( 'catchresponsive-square' ); 
  11. ?> 
  12. </a> 
  13. </figure> 
  14. <?php