Return the path to an image, using the default image if the image does
not exist in the current theme.
public static img ( string $name = null, mixed $options = [] ) : Horde_Themes_Image | ||
$name | string | The image name. If null, will return the image directory. |
$options | mixed | Additional options. If a string, is taken to be the 'app' parameter. If an array, the following options are available: - app: (string) Use this application instead of the current app. - nohorde: (boolean) If true, do not fallback to horde for image. - noview: (boolean) If true, do not load images from view-specific directories. (Since 2.4.0) - theme: (string) Use this theme instead of the Horde default. |
return | Horde_Themes_Image | An object which contains the URI and filesystem location of the image. |