PHP Class Jetpack_Tiled_Gallery_Grouper, jetpack-wp-galleries

Mostrar archivo Open project: Automattic/jetpack-wp-galleries

Public Properties

Property Type Description
$margin
$shapes This list is ordered. If you put a shape that's likely to occur on top, it will happen all the time.

Public Methods

Method Description
__construct ( $attachments, $shapes = [] )
apply_content_width ( $width ) todo: do not stretch images
calculate_group_sizes ( $row )
calculate_image_sizes ( $group )
get_current_row_size ( )
get_grouped_images ( )
get_images_with_sizes ( $attachments )
overwrite_shapes ( $shapes )
read_row ( )

Method Details

__construct() public method

public __construct ( $attachments, $shapes = [] )

apply_content_width() public method

todo: do not stretch images
public apply_content_width ( $width )

calculate_group_sizes() public method

public calculate_group_sizes ( $row )

calculate_image_sizes() public method

public calculate_image_sizes ( $group )

get_current_row_size() public method

get_grouped_images() public method

public get_grouped_images ( )

get_images_with_sizes() public method

public get_images_with_sizes ( $attachments )

overwrite_shapes() public method

public overwrite_shapes ( $shapes )

read_row() public method

public read_row ( )

Property Details

$margin public_oe property

public $margin

$shapes public_oe property

This list is ordered. If you put a shape that's likely to occur on top, it will happen all the time.
public $shapes