$shortSummary = substr($shortSummary,
0,
Notice::maxContent() - (mb_strlen($url) + 2));
- $shortSummary .= '…';
$content = $shortSummary . ' ' . $url;
// We mark up the attachment link specially for the HTML output
$attachUrl = common_local_url('attachment',
array('attachment' => $attachment->id));
$rendered = common_render_text($shortSummary) .
- ' ' .
- '<a href="' .
- htmlspecialchars($attachUrl) .
- '" class="attachment more">' .
- // TRANS: expansion link for too-long remote messages
- htmlspecialchars(_m('more')) .
+ '<a href="' . htmlspecialchars($attachUrl) .'"'.
+ ' class="attachment more"' .
+ ' title="'. htmlspecialchars(_m('Show more')) . '">' .
+ '…' .
'</a>';
}
}
.notice .attachment.more {
padding-left:0;
}
-.notice .attachment.more:before {
-content:'( ';
-}
-.notice .attachment.more:after {
-content:' )';
-}
.notice .attachment img {
position:absolute;
top:18px;