Index: trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_QueryUI.php |
— | — | @@ -525,9 +525,11 @@ |
526 | 526 | } |
527 | 527 | $result .= Html::openElement( |
528 | 528 | 'div', |
529 | | - array( 'id' => 'smwmainlabel', |
| 529 | + array( |
| 530 | + 'id' => 'smwmainlabel', |
530 | 531 | 'class' => 'smwsort', |
531 | | - 'style' => "display:$formDisplay;" ) |
| 532 | + 'style' => array( 'display' => $formDisplay ) |
| 533 | + ) |
532 | 534 | ) . |
533 | 535 | Html::openElement( 'span', |
534 | 536 | array( 'class' => 'smwquisortlabel' ) ) . |
— | — | @@ -1728,7 +1730,7 @@ |
1729 | 1731 | $resultHtml .= Html::rawElement( |
1730 | 1732 | 'div', |
1731 | 1733 | array( |
1732 | | - 'style' => 'background: ' . ( $flipStyle ? 'white' : '#dddddd' ) . ';' |
| 1734 | + 'style' => array( 'background' => $flipStyle ? 'white' : '#dddddd' ) ) |
1733 | 1735 | ), |
1734 | 1736 | $rowHtml |
1735 | 1737 | ); |
Index: trunk/extensions/SemanticMediaWiki/includes/queryprinters/SMW_QP_List.php |
— | — | @@ -106,7 +106,14 @@ |
107 | 107 | // Set up floating divs, if there's more than one column |
108 | 108 | if ( $this->mColumns > 1 ) { |
109 | 109 | $column_width = floor( 100 / $this->mColumns ); |
110 | | - $result .= '<div style="float: left; width: ' . $column_width . '%">' . "\n"; |
| 110 | + |
| 111 | + $result .= Html::openElement( |
| 112 | + 'div', |
| 113 | + array( |
| 114 | + 'style' => array( 'float' => 'left', 'width' => "$column_width%" ) |
| 115 | + ) |
| 116 | + ); |
| 117 | + |
111 | 118 | $rows_per_column = ceil( $res->getCount() / $this->mColumns ); |
112 | 119 | $rows_in_cur_column = 0; |
113 | 120 | } |
Index: trunk/extensions/SemanticMediaWiki/includes/queryprinters/SMW_QP_Category.php |
— | — | @@ -69,9 +69,14 @@ |
70 | 70 | $cur_first_char = $wgContLang->firstChar( $sortkey == '' ? $content[0]->getDBkey() : $sortkey ); |
71 | 71 | |
72 | 72 | if ( $rowindex % $rows_per_column == 0 ) { |
73 | | - $result .= "\n <div style=\"float: left; width: $column_width%;\">\n"; |
74 | | - if ( $cur_first_char == $prev_first_char ) |
| 73 | + $result .= Html::openElement( 'div', array( 'style' => array( |
| 74 | + 'float' => 'left', |
| 75 | + 'width' => "$column_width%" |
| 76 | + ) ) ); |
| 77 | + |
| 78 | + if ( $cur_first_char == $prev_first_char ) { |
75 | 79 | $result .= " <h3>$cur_first_char " . wfMsg( 'listingcontinuesabbrev' ) . "</h3>\n <ul>\n"; |
| 80 | + } |
76 | 81 | } |
77 | 82 | |
78 | 83 | // if we're at a new first letter, end |