# Sub-entries
$lines = [];
+ $filterClasses = [];
foreach ( $block as $i => $rcObj ) {
$line = $this->getLineData( $block, $rcObj, $queryParams );
if ( !$line ) {
}
}
+ // Roll up filter-based CSS classes
+ $filterClasses = array_merge( $filterClasses, $this->getHTMLClassesForFilters( $rcObj ) );
+ // Add classes for change tags separately, getHTMLClassesForFilters() doesn't add them
+ $this->getTags( $rcObj, $filterClasses );
+ $filterClasses = array_unique( $filterClasses );
+
$lines[] = $line;
}
// Further down are some assumptions that $block is a 0-indexed array
// with (count-1) as last key. Let's make sure it is.
$block = array_values( $block );
+ $filterClasses = array_values( $filterClasses );
if ( empty( $block ) || !$lines ) {
// if we can't show anything, don't display this block altogether
'articleLink' => $articleLink,
'charDifference' => $charDifference,
'collectedRcFlags' => $this->recentChangesFlags( $collectedRcFlags ),
+ 'filterClasses' => $filterClasses,
'languageDirMark' => $this->getLanguage()->getDirMark(),
'lines' => $lines,
'logText' => $logText,
}
$line = Html::openElement( 'table', $attribs ) . Html::openElement( 'tr' );
+ // Highlight block
+ $line .= Html::rawElement( 'td', [],
+ $this->getHighlightsContainerDiv()
+ );
+
$line .= Html::rawElement( 'td', [], '<span class="mw-enhancedchanges-arrow-space"></span>' );
$line .= Html::rawElement( 'td', [ 'class' => 'mw-changeslist-line-prefix' ], $prefix );
- $line .= '<td class="mw-enhanced-rc">';
+ $line .= '<td class="mw-enhanced-rc" colspan="2">';
if ( isset( $data['recentChangesFlags'] ) ) {
$line .= $this->recentChangesFlags( $data['recentChangesFlags'] );
}
if ( isset( $data['timestampLink'] ) ) {
- $line .= ' ' . $data['timestampLink'];
+ $line .= "\u{00A0}" . $data['timestampLink'];
unset( $data['timestampLink'] );
}
- $line .= ' </td>';
+ $line .= "\u{00A0}</td>";
$line .= Html::openElement( 'td', [
'class' => 'mw-changeslist-line-inner',
// Used for reliable determination of the affiliated page