Commit fdd9262a authored by Nessun's avatar Nessun

Fix ad size

parent cc1fca21
Pipeline #85841581 passed with stage
in 1 minute and 20 seconds
......@@ -1043,12 +1043,15 @@ class LibertyTemplate extends BaseTemplate {
protected function buildAd( $position ) {
global $wgLibertyAdSetting;
$adFormat = "auto";
$fullWidthResponsive = "true";
if ( $position === "header" ) {
$adFormat = "horizontal";
$fullWidthResponsive = "false";
}
?>
<div class="<?php echo $position; ?>-ads">
<ins class="adsbygoogle"
data-full-width-responsive="<?php echo $fullWidthResponsive; ?>"
data-ad-client="<?php echo $wgLibertyAdSetting['client']; ?>"
data-ad-slot="<?php echo $wgLibertyAdSetting[$position]; ?>"
data-ad-format="<?php echo $adFormat; ?>">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment