Smarty
[ class tree: Smarty ] [ index: Smarty ] [ all elements ]

Procedural File: function.html_image.php

Source Location: /includes/classes/Smarty/plugins/function.html_image.php



Page Details:

Smarty plugin



Tags:

filesource:  Source Code for this file








smarty_function_html_image [line 37]

string smarty_function_html_image( array $params, Smarty &$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: <img src="/images/masthead.gif" width=400 height=23>




Tags:

author:  credits to Duda <duda@big.hu> - wrote first image function in repository, helped with lots of functionality
author:  Monte Ohrt <at ohrt dot com monte at ohrt dot com>
version:  1.0
link:  http://smarty.php.net/manual/en/language.function.html.image.php {html_image} (Smarty online manual)
uses:  smarty_function_escape_special_chars()


Parameters

array   $params  
Smarty   &$smarty  
[ Top ]



Documentation generated on Fri, 18 Jul 2008 21:45:20 +0200 by phpDocumentor 1.4.1