$r .= $rcObj->usertalklink ;
# Comment
- if ( $rc_comment != '' && $rc_type != RC_MOVE && $rc_type != RC_MOVE_OVER_REDIRECT ) {
- $rc_comment=$this->skin->formatComment($rc_comment, $rcObj->getTitle());
- $r .= $wgContLang->emphasize( ' ('.$rc_comment.')' );
+ if ( $rc_type != RC_MOVE && $rc_type != RC_MOVE_OVER_REDIRECT ) {
+ $r .= $this->skin->commentBlock( $rc_comment, $rcObj->getTitle() );
}
if ($rcObj->numberofWatchingusers > 0) {
$r .= $rcObj->lastlink ;
$r .= ') . . '.$rcObj->userlink ;
$r .= $rcObj->usertalklink ;
- if ( $rc_comment != '' ) {
- $rc_comment=$this->skin->formatComment($rc_comment, $rcObj->getTitle());
- $r .= $wgContLang->emphasize( ' ('.$rc_comment.')' ) ;
- }
+ $r .= $this->skin->commentBlock( $rc_comment, $rcObj->getTitle() );
$r .= "<br />\n" ;
}
$r .= "</div>\n" ;
if($userTalkLink) $s.=' ('.$userTalkLink.')';
# Add comment
- if ( '' != $rc_comment && '*' != $rc_comment && $rc_type != RC_MOVE && $rc_type != RC_MOVE_OVER_REDIRECT ) {
- $rc_comment = $this->skin->formatComment($rc_comment,$rc->getTitle());
- $s .= $wgContLang->emphasize(' (' . $rc_comment . ')');
+ if ( $rc_type != RC_MOVE && $rc_type != RC_MOVE_OVER_REDIRECT ) {
+ $s .= $this->skin->commentBlock( $rc_comment, $rc->getTitle() );
}
if ($rc->numberofWatchingusers > 0) {
* @access public
*/
function commentBlock( $comment, $title = NULL ) {
- if( $comment == '' ) {
+ if( $comment == '' || $comment == '*' ) {
return '';
} else {
$formatted = $this->formatComment( $comment, $title );
- return " <em>($formatted)</em>";
+ return " <span class='comment'>($formatted)</span>";
}
}
$s .= $isminor ? ' <span class="minor">'.$message['minoreditletter'].'</span>': '' ;
- if ( '' != $c && '*' != $c ) {
- $c = $this->mSkin->formatcomment( $c, $this->mTitle );
- $s .= " <em>($c)</em>";
- }
+ $s .= $this->mSkin->commentBlock( $c, $this->mTitle );
if ($notificationtimestamp && ($ts >= $notificationtimestamp)) {
$s .= wfMsg( 'updatedmarker' );
}
}
$histlink='('.$sk->makeKnownLinkObj( $page, $messages['hist'], 'action=history' ) . ')';
- if( $comment ) {
- $comment = '<em>(' . $sk->formatComment( $comment, $page ) . ')</em> ';
- }
+ $comment = $sk->commentBlock( $comment, $page );
$d = $wgLang->timeanddate( $ts, true );
if ($isminor) {
wfProfileOut( $fname );
}
-/**
- *
- */
-function ucCountLink( $lim, $d ) {
- global $wgUser, $wgContLang, $wgRequest;
-
- $target = $wgRequest->getText( 'target' );
- $sk = $wgUser->getSkin();
- $s = $sk->makeKnownLink( $wgContLang->specialPage( "Contributions" ),
- "{$lim}", "target={$target}&days={$d}&limit={$lim}" );
- return $s;
-}
-
-/**
- *
- */
-function ucDaysLink( $lim, $d ) {
- global $wgUser, $wgContLang, $wgRequest;
-
- $target = $wgRequest->getText( 'target' );
- $sk = $wgUser->getSkin();
- $s = $sk->makeKnownLink( $wgContLang->specialPage( 'Contributions' ),
- "{$d}", "target={$target}&days={$d}&limit={$lim}" );
- return $s;
-}
-
/**
* Generates a form used to restrict display of contributions
* to a specific namespace
wfMsg( "unblocklink" ) . "</a>";
$wgOut->addHTML( " ({$ublink})" );
}
- if ( "" != $block->mReason ) {
- $wgOut->addHTML( " <em>(" . $sk->formatComment( $block->mReason ) .
- ")</em>" );
- }
+ $wgOut->addHTML( $sk->commentBlock( $block->mReason ) );
$wgOut->addHTML( "</li>\n" );
}
$titleLink = $this->skin->makeBrokenLinkObj( $title );
}
$userLink = $this->skin->makeLinkObj( $user, htmlspecialchars( $s->user_name ) );
- if( '' === $s->log_comment ) {
- $comment = '';
- } else {
- $comment = '(<em>' . $this->skin->formatComment( $s->log_comment ) . '</em>)';
- }
+ $comment = $this->skin->commentBlock( $s->log_comment );
$paramArray = LogPage::extractParams( $s->log_params );
$action = LogPage::actionText( $s->log_type, $s->log_action, $titleLink, $paramArray );
$ut = $result->user_text;
$length = wfMsg( "nbytes", $wgLang->formatNum( $result->length ) );
- $c = $skin->formatComment($result->comment );
if ( $u == 0 ) { # not by a logged-in user
$ul = $ut;
$s = "{$d} {$link} ({$length}) . . {$ul}";
- if ( "" != $c && "*" != $c ) {
- $s .= " <em>({$c})</em>";
- }
+ $s .= $skin->commentBlock( $result->comment );
return $s;
}
Title::makeTitle( NS_USER, $row->ar_user_text ),
$userLink );
}
- $comment = $sk->formatComment( $row->ar_comment );
- $wgOut->addHTML( "<li>$checkBox $pageLink . . $userLink (<i>$comment</i>)</li>\n" );
+ $comment = $sk->commentBlock( $row->ar_comment );
+ $wgOut->addHTML( "<li>$checkBox $pageLink . . $userLink $comment</li>\n" );
}
$revisions->free();
# Last modified date
. ' . . '.$wgLang->timeanddate($result->value)
# Link to username
- . ' . . '.$skin->makeLinkObj( Title::makeTitle( NS_USER, $result->img_user_text ), $result->img_user_text);
-
+ . ' . . '.$skin->makeLinkObj( Title::makeTitle( NS_USER, $result->img_user_text ), $result->img_user_text)
# If there is a description, show it
- if($result->img_description != '') {
- $return .= ' <i>(' . $skin->formatComment( $result->img_description ) . ')</i>';
- }
+ . $skin->commentBlock( $result->img_description );
+
return $return;
}
padding: 2px 4px;
}
+span.comment {
+ font-style: italic;
+}
div.gallerytext {
font-size: 94%;
padding: 2px 4px;
-}
\ No newline at end of file
+}
+
+span.comment {
+ font-style: italic;
+}