From 83765b1b0d17d1dc7f92a8bf554d5904a292e6c8 Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Sun, 9 Nov 2008 17:49:55 +0000 Subject: [PATCH] Add some CSS classes for easier styling --- includes/ChangesList.php | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/includes/ChangesList.php b/includes/ChangesList.php index f453687e1d..c438b58a78 100644 --- a/includes/ChangesList.php +++ b/includes/ChangesList.php @@ -114,10 +114,10 @@ class ChangesList { protected function insertMove( &$s, $rc ) { # Diff - $s .= '(' . $this->message['diff'] . ') ('; + $s .= '(' . $this->message['diff'] . ') ('; # Hist $s .= $this->skin->makeKnownLinkObj( $rc->getMovedToTitle(), $this->message['hist'], 'action=history' ) . - ') . . '; + ') . . '; # "[[x]] moved to [[y]]" $msg = ( $rc->mAttribs['rc_type'] == RC_MOVE ) ? '1movedto2' : '1movedto2_redir'; @@ -142,7 +142,7 @@ class ChangesList { protected function insertLog(&$s, $title, $logtype) { $logname = LogPage::logName( $logtype ); - $s .= '(' . $this->skin->makeKnownLinkObj($title, $logname ) . ')'; + $s .= '(' . $this->skin->makeKnownLinkObj( $title, $logname ) . ')'; } protected function insertDiffHist(&$s, &$rc, $unpatrolled) { @@ -163,14 +163,14 @@ class ChangesList { $rcidparam ), '', '', ' tabindex="'.$rc->counter.'"'); } - $s .= '('.$diffLink.') ('; + $s .= '('.$diffLink.') ('; # History link $s .= $this->skin->makeKnownLinkObj( $rc->getTitle(), $this->message['hist'], wfArrayToCGI( array( 'curid' => $rc->mAttribs['rc_cur_id'], 'action' => 'history' ) ) ); - $s .= ') . . '; + $s .= ') . . '; } protected function insertArticleLink(&$s, &$rc, $unpatrolled, $watched) { @@ -184,10 +184,13 @@ class ChangesList { $articlelink = $this->skin->makeKnownLinkObj( $rc->getTitle(), '', $params ); $articlelink = ''.$articlelink.''; } else { - $articlelink = ' '. $this->skin->makeKnownLinkObj( $rc->getTitle(), '', $params ); + $articlelink = ' '. $this->skin->makeKnownLinkObj( $rc->getTitle(), '', $params ); } - if( $watched ) + if( $watched ) { $articlelink = "{$articlelink}"; + } else { + $articlelink = '' . $articlelink . ''; + } global $wgContLang; $articlelink .= $wgContLang->getDirMark(); @@ -204,12 +207,15 @@ class ChangesList { } /** Insert links to user page, user talk page and eventually a blocking link */ - public function insertUserRelatedLinks(&$s, &$rc) { - if ( $this->isDeleted($rc,Revision::DELETED_USER) ) { - $s .= ' ' . wfMsgHtml('rev-deleted-user') . ''; + public function insertUserRelatedLinks( &$s, &$rc ) { + if ( $this->isDeleted( $rc,Revision::DELETED_USER ) ) { + $s .= ' ' . wfMsgHtml( 'rev-deleted-user' ) . ''; } else { - $s .= $this->skin->userLink( $rc->mAttribs['rc_user'], $rc->mAttribs['rc_user_text'] ); - $s .= $this->skin->userToolLinks( $rc->mAttribs['rc_user'], $rc->mAttribs['rc_user_text'] ); + $s .= '' . + $this->skin->userLink( $rc->mAttribs['rc_user'], $rc->mAttribs['rc_user_text'] ) . + '' . + $this->skin->userToolLinks( $rc->mAttribs['rc_user'], $rc->mAttribs['rc_user_text'] ) . + ''; } } @@ -769,7 +775,7 @@ class EnhancedChangesList extends ChangesList { // FIXME: css style might be more appropriate return '' . $link . ''; } else { - return $link; + return '' . $link . ''; } } -- 2.20.1