Smutty
MVC Framework
View Code: function.label
Browse: All · Classes · Plugins
1
<?php
2
3
/**
4
* returns the html for a form label
5
*
6
* @param array $params parameters
7
* @param Smarty $smarty smarty object
8
* @return the element html
9
*
10
*/
11
13
14
$smarty->depend( 'modifier', 'escape' );
15
16
return Smutty_Smarty::htmlElement( 'label', array(
17
'for' => Smutty_Smarty::getFieldName($params['for']),
18
'class' => $params['class'],
19
'id' => $params['id']
20
), $smarty ) .
21
smarty_modifier_escape( $params['text'] ) .
22
'</label>';
23
24
}
25
26
28
echo smutty_function_label( $params, $smarty );
29
}
30
31
?>
The code shown here is the code that is currently running this site. If you want to view the latest SVN version of the code then go to the Subversion repository.