Skip to content
This repository has been archived by the owner on Aug 12, 2023. It is now read-only.

Functions

Junaid Bhura edited this page Nov 6, 2017 · 6 revisions

Functions

fly_get_image_size( $size_name )

Parameters

  • $size_name (string)(required) : The name of the image size

Return Value

Returns an array with the details of the size:

array(
	'size' => array(
		0 => integer (width)
		1 => integer (height)
	),
	'crop' => true
)

fly_get_all_image_sizes()

Return Value

Returns an array of all sizes:

array(
	'size_1' => array(
		'size' => array(
			0 => integer (width)
			1 => integer (height)
		),
		'crop' => true
	),
	'size_2' => array(
		'size' => array(
			0 => integer (width)
			1 => integer (height)
		),
		'crop' => array(
			0 => string (crop X)
			1 => string (crop Y)
		)
	)
)
Clone this wiki locally