responsive_mobile_post_thumbnail

Creates the post thumbnail used throughout the templates.

Description

responsive_mobile_post_thumbnail( (string) $size = 'post-thumbnail', (null) $attr = null ); 

Parameters (2)

0. $size — Optional. (string) => 'post-thumbnail'
The size.
1. $attr — Optional. (null) => null
The attr.

Usage

  1. if ( !function_exists( 'responsive_mobile_post_thumbnail' ) ) { 
  2. require_once '/includes/functions-template-tags.php'; 
  3.  
  4. // The size. 
  5. $size = 'post-thumbnail'; 
  6.  
  7. // The attr. 
  8. $attr = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = responsive_mobile_post_thumbnail($size, $attr); 
  12.  

Defined (1)

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

/includes/functions-template-tags.php  
  1. function responsive_mobile_post_thumbnail( $size = 'post-thumbnail', $attr = null ) { 
  2. $size = apply_filters( 'responsive_mobile_filter_the_post_thumbnail_size', $size ); 
  3. $attr = apply_filters( 'responsive_mobile_filter_the_post_thumbnail_attr', $attr ); 
  4. ?> 
  5. <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"> 
  6. <?php the_post_thumbnail( $size, $attr ); ?> 
  7. </a> 
  8. <?php