Jetpack_Tiled_Gallery_Three

The Jetpack by WordPress.com Jetpack Tiled Gallery Three class.

Defined (1)

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

/modules/tiled-gallery/tiled-gallery/tiled-gallery-shape.php  
  1. class Jetpack_Tiled_Gallery_Three extends Jetpack_Tiled_Gallery_Shape { 
  2. public $shape = array( 1, 1, 1 ); 
  3.  
  4. public function is_possible() { 
  5. $ratio = $this->sum_ratios( 3 ); 
  6. $has_enough_images = $this->images_left >= 3 && ! in_array( $this->images_left, array( 4, 6 ) ); 
  7. return $has_enough_images && $this->is_not_as_previous( 3 ) && 
  8. ( ( $ratio < 2.5 ) || ( $ratio < 5 && $this->next_images_are_symmetric() ) || $this->is_wide_theme() );