Happy New Year
[squirrelmail.git] / templates / default / span.tpl
CommitLineData
b0215f91 1<?php
2
3/**
4 * span.tpl
5 *
6 * Template for constructing a span tag.
7 *
8 * The following variables are available in this template:
6edb574e 9 * + $value - The contents that belong inside the span
10 * + $class - CSS class name (optional; may not be present)
11 * + $id - ID name (optional; may not be present)
12 * + $aAttribs - Any extra attributes: an associative array, where
13 * keys are attribute names, and values (which are
14 * optional and might be null) should be placed
15 * in double quotes as attribute values (optional;
16 * may not be present)
b0215f91 17 *
c4faef33 18 * @copyright 1999-2020 The SquirrelMail Project Team
b0215f91 19 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
20 * @version $Id$
21 * @package squirrelmail
22 * @subpackage templates
23 */
24
25
26// retrieve the template vars
27//
28extract($t);
29
30
6edb574e 31echo '<span';
32if (!empty($class)) echo ' class="' . $class . '"';
33if (!empty($id)) echo ' id="' . $id . '"';
34foreach ($aAttribs as $key => $value) {
35 echo ' ' . $key . (is_null($value) ? '' : '="' . $value . '"');
36}
37echo '>' . $value . '</span>';
38
39