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

Procedural File: function.html_image.php

Source Location: /bblog/smarty_plugins/function.html_image.php ( Revision Log )

Page Details

Smarty plugin

Functions
smarty_function_html_image  [line 36]

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
Examples: {html_image file="images/masthead.gif"} Output: <img src="images/masthead.gif" width=400 height=23>

Parameters:
array   $params: 
Smarty   &$smarty: 

API Tags:
Uses:  smarty_function_escape_special_chars()

Information Tags:
Version:  1.0
Author:  Monte Ohrt <at ohrt dot com monte at ohrt dot com>
Author:  credits to Duda <duda@big.hu> - wrote first image function in repository, helped with lots of functionality
Link:  {html_image} (Smarty online manual)

[ Top ]