dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32035b9
)
* Shortcut for common use case
author
Niklas Laxström
<nikerabbit@users.mediawiki.org>
Sat, 19 Apr 2008 13:51:01 +0000
(13:51 +0000)
committer
Niklas Laxström
<nikerabbit@users.mediawiki.org>
Sat, 19 Apr 2008 13:51:01 +0000
(13:51 +0000)
includes/Xml.php
patch
|
blob
|
history
diff --git
a/includes/Xml.php
b/includes/Xml.php
index
9d5233a
..
5bb64fe
100644
(file)
--- a/
includes/Xml.php
+++ b/
includes/Xml.php
@@
-195,6
+195,10
@@
class Xml {
return self::element( 'span', array( 'class' => $class ) + $attribs, $text );
}
+ public static function wrapClass( $text, $class, $tag='span', $attribs=array() ) {
+ return self::tags( $tag, array( 'class' => $class ) + $attribs, $text );
+ }
+
/**
* Convenience function to build an HTML text input field
* @return string HTML