Methods summary
public static
|
#
getPhotoUrl( mixed $photo, mixed $size = null, mixed $absolute = false )
|
public static
|
|
public static
|
|
public static
|
|
private static
|
|
public static
|
|
public static
string
|
|
public static
|
|
protected static
|
#
_generateThumb( mixed $path, mixed $type, mixed $width, mixed $height, mixed $sharpen = false )
|
public static
|
#
generateThumb( mixed $main_thumbnail_info, mixed $original_path, mixed $size, mixed $sharpen = false, mixed $max_size = false )
|
public static
|
|
public static
|
#
parseSize( string $size )
Parsing size-code (e.g. 500x400, 500, 96x96, 200x0) into key-value array with
info about this size
Parsing size-code (e.g. 500x400, 500, 96x96, 200x0) into key-value array with
info about this size
Parameters
See
Client-side has the same function with the same realization
Returns
array
|
public static
|
#
getRealSizesOfThumb( array $photo, string $size = null )
Calculate real size of photo thumbnail
Calculate real size of photo thumbnail
Parameters
- $photo
array $photo Key-value object with photo info
- $size
string $size string size-code or key-value object returned by parseSize
See
Client-side has the same function with the same realization
Returns
array Key-value object with width and height values
|
public static
|
|
public static
|
#
getEmbedImgHtml( mixed $photo, mixed $size, mixed $attributes = array(), mixed $style = true )
|
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
#
getRatingHtml( mixed $rating, mixed $size = 10, mixed $show_when_zero = false )
|
public static
|
|
public static
|
|
public static
|
|