Explorar el Código

Add class attribute to template

pdontthink hace 18 años
padre
commit
2a749adc88
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      templates/default/hyperlink.tpl

+ 2 - 1
templates/default/hyperlink.tpl

@@ -11,6 +11,7 @@
   *      + $target  - the location where the link should be opened 
   *                   (optional; may not be present)
   *      + $onclick - onClick JavaScript handler (optional; may not be present)
+  *      + $class   - CSS class name (optional; may not be present)
   *
   * @copyright © 1999-2006 The SquirrelMail Project Team
   * @license http://opensource.org/licenses/gpl-license.php GNU Public License
@@ -25,4 +26,4 @@
 extract($t);
 
 
-?><a href="<?php echo $uri ?>"<?php if (!empty($target)) echo ' target="' . $target . '"'; ?><?php if (!empty($onclick)) echo ' onclick="' . $onclick . '"'; ?>><?php echo $text; ?></a>
+?><a href="<?php echo $uri ?>"<?php if (!empty($target)) echo ' target="' . $target . '"'; ?><?php if (!empty($onclick)) echo ' onclick="' . $onclick . '"'; ?><?php if (!empty($class)) echo ' class="' . $class . '"'; ?>><?php echo $text; ?></a>