Constructs a correctly-pathed tag to an image.
public static tag ( mixed $src, array $opts = [] ) : string | ||
$src | mixed | The image file (either a string or a Horde_Themes_Image object). |
$opts | array | Additional options: - alt: (string) Text describing the image. - attr: (mixed) Any additional attributes for the image tag. Can be a pre-built string or an array of key/value pairs that will be assembled and html-encoded. - fullsrc: (boolean) TODO - imgopts: (array) TODO |
return | string | The full image tag. |