Jetpack_Tiled_Gallery_Rectangular_Item

The Jetpack by WordPress.com Jetpack Tiled Gallery Rectangular Item class.

Defined (1)

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

/modules/tiled-gallery/tiled-gallery/tiled-gallery-item.php  
  1. class Jetpack_Tiled_Gallery_Rectangular_Item extends Jetpack_Tiled_Gallery_Item { 
  2. public function __construct( $attachment_image, $needs_attachment_link, $grayscale ) { 
  3. parent::__construct( $attachment_image, $needs_attachment_link, $grayscale ); 
  4. $this->img_src_grayscale = jetpack_photon_url( $this->img_src, array( 'filter' => 'grayscale' ) ); 
  5.  
  6. $this->size = 'large'; 
  7.  
  8. if ( $this->image->width < 250 ) 
  9. $this->size = 'small';