Skip to content

Commit

Permalink
extension url from config
Browse files Browse the repository at this point in the history
  • Loading branch information
thomersch committed Nov 30, 2020
1 parent fd1b2d3 commit a9ec6e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion includes/OSMCALWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ public static function renderCalendar( $input, array $args, Parser $parser, PPFr
$out .= '</table>';

if ($banner) {
$out .= '<div class="osmcal-banner"><a href="https://osmcal.org"><img src="/extensions/OSMCALWikiWidget/resources/osmcal-icon.png" alt="OSMCAL Logo" width="24" height="24"> Add your event to OpenStreetMap Calendar</div></a>';
global $wgExtensionAssetsPath;

$out .= '<div class="osmcal-banner"><a href="https://osmcal.org"><img src="'. $wgExtensionAssetsPath .'/OSMCALWikiWidget/resources/osmcal-icon.png" alt="OSMCAL Logo" width="24" height="24"> Add your event to OpenStreetMap Calendar</div></a>';
}
return $out;
}
Expand Down

0 comments on commit a9ec6e0

Please sign in to comment.