6 * Template for constructing a span tag.
8 * The following variables are available in this template:
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;
18 * @copyright © 1999-2006 The SquirrelMail Project Team
19 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
21 * @package squirrelmail
22 * @subpackage templates
26 // retrieve the template vars
32 if (!empty($class)) echo ' class="' . $class . '"';
33 if (!empty($id)) echo ' id="' . $id . '"';
34 foreach ($aAttribs as $key => $value) {
35 echo ' ' . $key . (is_null($value) ? '' : '="' . $value . '"');
37 echo '>' . $value . '</span>';