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

Procedural File: function.html_image.php

Source Location: /phpDocumentor/Smarty-2.6.0/libs/plugins/function.html_image.php

Page Details

Smarty plugin

Filesource:  Source Code for this file
Functions
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)
  • border = border width (optional, default 0)
  • height = image height (optional, default actual height)
  • image =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" border=0 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 <[email protected]>
Author:  credits to Duda <[email protected]> - wrote first image function in repository, helped with lots of functionality
Link:  http://smarty.php.net/manual/en/language.function.html.image.php {html_image} (Smarty online manual)

[ Top ]


Documentation generated on Tue, 24 Oct 2006 09:22:38 -0500 by phpDocumentor 1.3.1