Fix PHP notice - $use_js was removed from the core in revision 13713
[squirrelmail.git] / templates / default / label.tpl
CommitLineData
0177059f 1<?php
2
3/**
4 * label.tpl
5 *
6 * Template for constructing a label tag.
7 *
8 * The following variables are available in this template:
9 * + $for - the ID to which the label applies (optional; may not be present)
10 * + $text - text (or other code) that goes inside the label
11 * + $aAttribs - Any extra attributes: an associative array, where
12 * keys are attribute names, and values (which are
13 * optional and might be null) should be placed
14 * in double quotes as attribute values (optional;
15 * may not be present)
16 *
d4e46166 17 * @copyright &copy; 1999-2009 The SquirrelMail Project Team
0177059f 18 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
19 * @version $Id$
20 * @package squirrelmail
21 * @subpackage templates
22 */
23
24
25// retrieve the template vars
26//
27extract($t);
28
29
30echo '<label';
31if (!empty($for)) echo ' for="' . $for . '"';
32foreach ($aAttribs as $key => $value) {
33 echo ' ' . $key . (is_null($value) ? '' : '="' . $value . '"');
34}
35echo '>' . $text . '</label>';
36
37