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