A media renderer coded to fall-back to a simple image if we have low-fi mode turned on.

package core_rich_media

 Methods

If we are rendering in low-fi, result to simple image fall-back.

fallback_render(mixed $url, mixed $url_safe, array $attributes, boolean $as_admin, \?MEMBER $source_member, \?mixed $click_url = null) : \?Tempcode

Parameters

$url

mixed

URL to render

$url_safe

mixed

URL to render (no sessions etc)

$attributes

array

Attributes (e.g. width, height, length)

$as_admin

boolean

Whether there are admin privileges, to render dangerous media types

$source_member

\?MEMBER

Member to run as (null: current member)

$click_url

\?mixed

URL to route clicks through to (null: no special URL)

Returns

\?TempcodeRendered version (null: do not render)