XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
function.html_image.php File Reference

Go to the source code of this file.

Namespaces

namespace  Smarty
 

Functions

 smarty_function_html_image ($params, &$smarty)
 

Function Documentation

smarty_function_html_image (   $params,
$smarty 
)

Smarty {html_image} function plugin

Type: function
Name: html_image
Date: Feb 24, 2003
Purpose: format HTML tags for the image
Input:

  • file = file (and path) of image (required)
  • height = image height (optional, default actual height)
  • width = image width (optional, default actual width)
  • basedir = base directory for absolute paths, default is environment variable DOCUMENT_ROOT
  • path_prefix = prefix for path output (optional, default empty)

Examples: {html_image file="/images/masthead.gif"} Output:

{html_image} (Smarty online manual) Monte Ohrt

Author
credits to Duda duda@.nosp@m.big..nosp@m.hu - wrote first image function in repository, helped with lots of functionality
Version
1.0
Parameters
array
Smarty
Returns
string smarty_function_escape_special_chars()

Definition at line 37 of file function.html_image.php.

References $_SERVER, $file, $GLOBALS, smarty_core_is_secure(), and smarty_function_escape_special_chars().

Here is the call graph for this function: