Index: trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_SpecialQueryCreator.php |
— | — | @@ -37,7 +37,7 @@ |
38 | 38 | $html_output = $this->makeResults( $p ); |
39 | 39 | if ( $this->uiCore->getQueryString() != "" ) { |
40 | 40 | if ( $this->usesNavigationBar() ) { |
41 | | - $html_output .= Html::rawElement( 'div', array( 'class' => 'smw-qc-navbar' ), |
| 41 | + $html_output .= Html::rawElement( 'div', array( 'class' => 'smwqcnavbar' ), |
42 | 42 | $this->getNavigationBar ( $this->uiCore->getLimit(), $this->uiCore->getOffset(), $this->uiCore->hasFurtherResults() ) |
43 | 43 | ); // ? can we preload offset and limit? |
44 | 44 | } |
— | — | @@ -45,7 +45,7 @@ |
46 | 46 | $html_output .= Html::rawElement( 'div', array( 'class' => 'smw-qc-result' ), $this->uiCore->getHTMLResult() ); |
47 | 47 | |
48 | 48 | if ( $this->usesNavigationBar() ) { |
49 | | - $html_output .= Html::rawElement( 'div', array( 'class' => 'smw-qc-navbar' ), |
| 49 | + $html_output .= Html::rawElement( 'div', array( 'class' => 'smwqcnavbar' ), |
50 | 50 | $this->getNavigationBar ( $this->uiCore->getLimit(), $this->uiCore->getOffset(), $this->uiCore->hasFurtherResults() ) |
51 | 51 | ); // ? can we preload offset and limit? |
52 | 52 | } |
— | — | @@ -297,7 +297,7 @@ |
298 | 298 | foreach ( $additional_POs as $key => $value ) { |
299 | 299 | if ( is_array( $property_values ) and array_key_exists( $key, $property_values ) ) { |
300 | 300 | // make a element for additional properties |
301 | | - $result .= Html::openElement( 'div', array( 'id' => "sort_div_$i", 'class' => 'smw-sort' ) ); |
| 301 | + $result .= Html::openElement( 'div', array( 'id' => "sort_div_$i", 'class' => 'smwsort' ) ); |
302 | 302 | $result .= '<span class="smw-remove"><a href="javascript:removePOInstance(\'sort_div_' . $i . '\')"><img src="' . $smwgScriptPath . '/skins/images/close-button.png" alt="' . wfMsg( 'smw_qui_delete' ) . '"></a></span>'; |
303 | 303 | $result .= wfMsg( 'smw_qui_property' ); |
304 | 304 | $result .= Html::input( 'property[' . $i . ']', $property_values[$key], 'text', array( 'size' => '35', 'id' => "property$i" ) ) . "\n"; |
— | — | @@ -322,7 +322,7 @@ |
323 | 323 | $i++; |
324 | 324 | } |
325 | 325 | if ( is_array( $category_values ) and array_key_exists( $key, $category_values ) ) { |
326 | | - $result .= Html::openElement( 'div', array( 'id' => "sort_div_$i", 'class' => 'smw-sort' ) ); |
| 326 | + $result .= Html::openElement( 'div', array( 'id' => "sort_div_$i", 'class' => 'smwsort' ) ); |
327 | 327 | $result .= '<span class="smw-remove"><a href="javascript:removePOInstance(\'sort_div_' . $i . '\')"><img src="' . $smwgScriptPath . '/skins/images/close-button.png" alt="' . wfMsg( 'smw_qui_delete' ) . '"></a></span>' . |
328 | 328 | 'Category (optional)' . // todo: i18n |
329 | 329 | Xml::input( "category[$i]", '20', $category_values[$key], array( 'id' => "category$i" ) ) . " " . |
— | — | @@ -337,7 +337,7 @@ |
338 | 338 | // END: create form elements already submitted earlier via form |
339 | 339 | |
340 | 340 | // create hidden form elements to be cloned later |
341 | | - $hidden_property = Html::openElement( 'div', array( 'id' => 'property_starter', 'class' => 'smw-sort', 'style' => 'display:none' ) ) . |
| 341 | + $hidden_property = Html::openElement( 'div', array( 'id' => 'property_starter', 'class' => 'smwsort', 'style' => 'display:none' ) ) . |
342 | 342 | '<span class="smw-remove"><a><img src="' . $smwgScriptPath . '/skins/images/close-button.png" alt="' . wfMsg( 'smw_qui_delete' ) . '"></a></span>' . |
343 | 343 | wfMsg( 'smw_qui_property' ) . |
344 | 344 | Xml::input( "property_num", '35' ) . " " . |
— | — | @@ -350,7 +350,7 @@ |
351 | 351 | Xml::closeElement( 'div' ); |
352 | 352 | $hidden_property = json_encode( $hidden_property ); |
353 | 353 | |
354 | | - $hidden_category = Html::openElement( 'div', array( 'id' => 'category_starter', 'class' => 'smw-sort', 'style' => 'display:none' ) ) . |
| 354 | + $hidden_category = Html::openElement( 'div', array( 'id' => 'category_starter', 'class' => 'smwsort', 'style' => 'display:none' ) ) . |
355 | 355 | '<span class="smw-remove"><a><img src="' . $smwgScriptPath . '/skins/images/close-button.png" alt="' . wfMsg( 'smw_qui_delete' ) . '"></a></span>' . |
356 | 356 | 'Category (optional)' . // todo: i18n |
357 | 357 | Xml::input( "category_num", '20' ) . " " . |
— | — | @@ -359,7 +359,7 @@ |
360 | 360 | Xml::closeElement( 'div' ); |
361 | 361 | $hidden_category = json_encode( $hidden_category ); |
362 | 362 | |
363 | | - $property_dialog_box = Xml::openElement( 'div', array( 'id' => 'prop-dialog', 'title' => 'Property Options', 'class' => 'smw-prop-dialog' ) ) . // todo i18n |
| 363 | + $property_dialog_box = Xml::openElement( 'div', array( 'id' => 'prop-dialog', 'title' => 'Property Options', 'class' => 'smwpropdialog' ) ) . // todo i18n |
364 | 364 | Xml::inputLabel( 'Property:', '', 'd-property', 'd-property' ) . '<br/>' . // todo i18n |
365 | 365 | Xml::inputLabel( 'Label:', '', 'd-property-label', 'd-property-label' ) . '<br/>' . // todo i18n |
366 | 366 | '<label for="d-format">Format:</label> ' . Html::openElement( 'select', array( 'name' => 'd-format', 'id' => 'd-format' ) ) . // todo i18n |
— | — | @@ -370,7 +370,7 @@ |
371 | 371 | // Xml::inputLabel( 'Limit:', 'd-property-limit', 'd-property-limit' ) . '<br/>' . // todo i18n |
372 | 372 | '<input type="hidden" name="d-property-code" id="d-property-code">' . |
373 | 373 | Xml::closeElement( 'div' ); |
374 | | - $category_dialog_box = Xml::openElement( 'div', array( 'id' => 'cat-dialog', 'title' => 'Category Options', 'class' => 'smw-cat-dialog' ) ) . // todo i18n |
| 374 | + $category_dialog_box = Xml::openElement( 'div', array( 'id' => 'cat-dialog', 'title' => 'Category Options', 'class' => 'smwcatdialog' ) ) . // todo i18n |
375 | 375 | Xml::inputLabel( 'Category:', '', 'd-category', 'd-category' ) . '<br/>' . // todo i18n |
376 | 376 | Xml::inputLabel( 'Label:', '', 'd-category-label', 'd-category-label' ) . '<br/>' . // todo i18n |
377 | 377 | Xml::inputLabel( 'Yes:', '', 'd-category-yes', 'd-category-yes' ) . '<br/>' . // todo i18n |
Index: trunk/extensions/SemanticMediaWiki/skins/SMW_custom.css |
— | — | @@ -131,22 +131,35 @@ |
132 | 132 | } |
133 | 133 | |
134 | 134 | /* ui buttons for QueryUI */ |
135 | | -.smw-sort input, .smw-sort a, .smw-sort select, .smw-sort checkbox{ |
| 135 | +.smwsort input, .smwsort a, .smwsort select, .smwsort checkbox{ |
136 | 136 | margin-left: 5px; |
137 | 137 | margin-bottom: 5px; |
138 | 138 | } |
| 139 | + |
139 | 140 | span.smw-remove a img{ |
140 | 141 | text-decoration: none; |
141 | 142 | margin-right: 5px; |
142 | 143 | vertical-align: -3px; |
143 | 144 | } |
144 | 145 | |
145 | | -.smw-prop-dialog input, .smw-prop-dialog select{ |
| 146 | +.smwpropdialog input, .smwpropdialog select{ |
146 | 147 | margin-top: 10px; |
147 | 148 | margin-right: 5px; |
| 149 | + margin-left: 5px; |
148 | 150 | } |
149 | 151 | |
| 152 | +.smwcatdialog input, .smwcatdialog select{ |
| 153 | + margin-top: 10px; |
| 154 | + margin-right: 5px; |
| 155 | + margin-left: 5px; |
| 156 | +} |
150 | 157 | |
| 158 | +/* Query Creator */ |
| 159 | +div.smwqcnavbar{ |
| 160 | + padding-bottom: 5px; |
| 161 | + padding-top: 5px; |
| 162 | +} |
| 163 | + |
151 | 164 | /* search, browse, RDF icons */ |
152 | 165 | |
153 | 166 | span.smwsearchicon { /*FIXME: this was only used for Factbox docu, should be removed from code*/ |