Functions

captioned_image

Returns an image element with captions.

package

Default

Arguments

$image

mixed

$size

string

$responsive

boolean

« More »

get_image_data

Return all relevant data for an image as an array.

package

Default

Arguments

$image

mixed

$size

string

« More »

image

Returns an image element.

Usage: <?=\rnb\media\image($image, 'your-size')?>

package

Default

Arguments

$image

mixed

$size

string

$responsive

boolean

« More »

inline_svg

Return an inline svg element, contained in a wrapper div.

package

Default

Arguments

$name

mixed

« More »

themeresource

Returns URl for local resource, relative to theme root.

Usage: <?=\rnb\media\themeresource($image, 'your-size')?>

package

Default

Arguments

$resource

string

$mode

string

Determines wether to return server side or client side path.

« More »