Commit c343f162 authored by Nessun's avatar Nessun

Merge branch 'fix/ad-height' into 'master'

Fix the height of header ad

See merge request !103
parents 848db0e3 ec4aed69
Pipeline #82254330 passed with stage
in 1 minute and 12 seconds
......@@ -1044,12 +1044,16 @@ class LibertyTemplate extends BaseTemplate {
*/
protected function buildAd( $position ) {
global $wgLibertyAdSetting;
$adFormat = "auto";
if ( $position === "header" ) {
$adFormat = "horizontal";
}
?>
<div class="<?php echo $position; ?>-ads">
<ins class="adsbygoogle"
data-ad-client="<?php echo $wgLibertyAdSetting['client']; ?>"
data-ad-slot="<?php echo $wgLibertyAdSetting[$position]; ?>"
data-ad-format="auto">
data-ad-format="<?php echo $adFormat; ?>">
</ins>
</div>
<?php
......
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