Index: trunk/extensions/SemanticResultFormats/Timeline/SRF_Timeline.php |
— | — | @@ -95,7 +95,7 @@ |
96 | 96 | $result .= '<span class="smwtlcomment">' . wfMsgForContent( 'smw_iq_nojs' ) . ' ' . $link->getText( $outputmode, $this->mLinker ) . '</span>'; // note for people without JavaScript |
97 | 97 | |
98 | 98 | foreach ( $this->m_tlbands as $band ) { |
99 | | - $result .= '<span class="smwtlband">' . htmlspecialchars( $band ) . '</span>'; |
| 99 | + $result .= '<span class="smwtlband" style="display:none;">' . htmlspecialchars( $band ) . '</span>'; |
100 | 100 | // just print any "band" given, the JavaScript will figure out what to make of it |
101 | 101 | } |
102 | 102 | |
— | — | @@ -212,7 +212,7 @@ |
213 | 213 | if ( $hastime ) { |
214 | 214 | $result .= Html::rawElement( |
215 | 215 | 'span', |
216 | | - array( 'class' => 'smwtlevent' ), |
| 216 | + array( 'class' => 'smwtlevent', 'style' => 'display:none;' ), |
217 | 217 | $curmeta . Html::element( |
218 | 218 | 'span', |
219 | 219 | array( 'class' => 'smwtlcoloricon' ), |
— | — | @@ -223,7 +223,7 @@ |
224 | 224 | |
225 | 225 | if ( $isEventline ) { |
226 | 226 | foreach ( $events as $event ) { |
227 | | - $result .= '<span class="smwtlevent"><span class="smwtlstart">' . $event[0] . '</span><span class="smwtlurl">' . $event[1] . '</span><span class="smwtlcoloricon">' . $curcolor . '</span>'; |
| 227 | + $result .= '<span class="smwtlevent" style="display:none;" ><span class="smwtlstart">' . $event[0] . '</span><span class="smwtlurl">' . $event[1] . '</span><span class="smwtlcoloricon">' . $curcolor . '</span>'; |
228 | 228 | if ( $curarticle != '' ) $result .= '<span class="smwtlprefix">' . $curarticle . ' </span>'; |
229 | 229 | $result .= $curdata . '</span>'; |
230 | 230 | $positions[$event[2]] = $event[0]; |
— | — | @@ -239,14 +239,14 @@ |
240 | 240 | |
241 | 241 | switch ( $this->m_tlpos ) { |
242 | 242 | case 'start': |
243 | | - $result .= '<span class="smwtlposition">' . $positions[0] . '</span>'; |
| 243 | + $result .= '<span class="smwtlposition" style="display:none;" >' . $positions[0] . '</span>'; |
244 | 244 | break; |
245 | 245 | case 'end': |
246 | | - $result .= '<span class="smwtlposition">' . $positions[count( $positions ) - 1] . '</span>'; |
| 246 | + $result .= '<span class="smwtlposition" style="display:none;" >' . $positions[count( $positions ) - 1] . '</span>'; |
247 | 247 | break; |
248 | 248 | case 'today': break; // default |
249 | 249 | case 'middle': default: |
250 | | - $result .= '<span class="smwtlposition">' . $positions[ceil( count( $positions ) / 2 ) - 1] . '</span>'; |
| 250 | + $result .= '<span class="smwtlposition" style="display:none;" >' . $positions[ceil( count( $positions ) / 2 ) - 1] . '</span>'; |
251 | 251 | break; |
252 | 252 | } |
253 | 253 | } |