]> git.pld-linux.org Git - packages/Smarty.git/blame - Smarty-function.html_input_image.php
Up to 2.6.33 (2021-10-23)
[packages/Smarty.git] / Smarty-function.html_input_image.php
CommitLineData
6fffd356
ER
1<?php
2/**
3 * Smarty plugin
4 * @package Smarty
5 * @subpackage plugins
6 */
7
8
9/**
10 * Smarty {html_image} function plugin
11 *
12 * Type: function<br>
13 * Name: html_input_image<br>
14 * Date: Feb 24, 2003<br>
15 * Purpose: format HTML tags for the image<br>
16 * Input:<br>
17 * - file = file (and path) of image (required)
18 * - height = image height (optional, default actual height)
19 * - width = image width (optional, default actual width)
20 * - basedir = base directory for absolute paths, default
21 * is environment variable DOCUMENT_ROOT
22 * - path_prefix = prefix for path output (optional, default empty)
23 *
24 * Examples: {html_input_image file="/images/masthead.gif"}
25 * Output: <input type="image" src="/images/masthead.gif" width=400 height=23>
26 * @link http://smarty.php.net/manual/en/language.function.html.input_image.php {html_input_image}
27 * (Smarty online manual)
28 * @author Monte Ohrt <monte at ohrt dot com>
29 * @author credits to Duda <duda@big.hu> - wrote first image function
30 * in repository, helped with lots of functionality
31