Florianschmidtwelzow has uploaded a new change for review. https://gerrit.wikimedia.org/r/253035
Change subject: Wrap timeline images and map into a div element ...................................................................... Wrap timeline images and map into a div element The div element has the "timeline-wrapper" class to allow styling this specific part of the content. Bug: T118601 Change-Id: I09c5b168e02a9a3aff30d59671986cfc086cf8c9 --- M Timeline.php 1 file changed, 4 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/timeline refs/changes/35/253035/1 diff --git a/Timeline.php b/Timeline.php index 07f1ecf..03f44a8 100644 --- a/Timeline.php +++ b/Timeline.php @@ -220,9 +220,11 @@ $map = easyTimelineFixMap( $map ); $url = "{$wgUploadPath}/timeline/{$hash}.png"; - $txt = $map . + $txt = "<div class=\"timeline-wrapper\">" . + $map . "<img usemap=\"#timeline_" . htmlspecialchars( $hash ) . "\" " . - "src=\"" . htmlspecialchars( $url ) . "\">"; + "src=\"" . htmlspecialchars( $url ) . "\">" . + "</div>"; if( $expired ) { // Replacing an older file, we may need to purge the old one. -- To view, visit https://gerrit.wikimedia.org/r/253035 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I09c5b168e02a9a3aff30d59671986cfc086cf8c9 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/timeline Gerrit-Branch: master Gerrit-Owner: Florianschmidtwelzow <florian.schmidt.stargatewis...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits