* used Html static functions instead og Xml. (r89260#c17418)
This commit is contained in:
parent
1ef2f71ccf
commit
ca33b4903d
1 changed files with 8 additions and 8 deletions
|
|
@ -693,25 +693,25 @@ class Html {
|
|||
$icon = $wgStylePath.'/common/images/'.$icon;
|
||||
}
|
||||
|
||||
$s = Xml::openElement( 'div', array( 'class' => "mw-infobox $class") );
|
||||
$s = Html::openElement( 'div', array( 'class' => "mw-infobox $class") );
|
||||
|
||||
$s .= Xml::openElement( 'div', array( 'class' => 'mw-infobox-left' ) ).
|
||||
$s .= Html::openElement( 'div', array( 'class' => 'mw-infobox-left' ) ).
|
||||
Html::element( 'img',
|
||||
array(
|
||||
'src' => $icon,
|
||||
'alt' => $alt,
|
||||
)
|
||||
).
|
||||
Xml::closeElement( 'div' );
|
||||
Html::closeElement( 'div' );
|
||||
|
||||
$s .= Xml::openElement( 'div', array( 'class' => 'mw-infobox-right' ) ).
|
||||
$s .= Html::openElement( 'div', array( 'class' => 'mw-infobox-right' ) ).
|
||||
$text.
|
||||
Xml::closeElement( 'div' );
|
||||
$s .= Xml::element( 'div', array( 'style' => 'clear: left;' ), ' ' );
|
||||
Html::closeElement( 'div' );
|
||||
$s .= Html::element( 'div', array( 'style' => 'clear: left;' ), ' ' );
|
||||
|
||||
$s .= Xml::closeElement( 'div' );
|
||||
$s .= Html::closeElement( 'div' );
|
||||
|
||||
$s .= Xml::element( 'div', array( 'style' => 'clear: left;' ), ' ' );
|
||||
$s .= Html::element( 'div', array( 'style' => 'clear: left;' ), ' ' );
|
||||
|
||||
return $s;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue