<?php

namespace App;

class Banner
{
    public static function ShowResponsiveAd()
    {
        #echo '<div class="responsive_ad">';
        #echo '<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>';
        #echo '<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-6457864535683080" data-ad-slot="9918154676" data-ad-format="auto"></ins>';
        #echo '<script>(adsbygoogle = window.adsbygoogle || []).push({});</script>';
        #echo '</div>';
    }

    public static function ShowBanner300x250()
    {
        echo '<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>';
        echo '<ins class="adsbygoogle" style="display:inline-block;width:300px;height:250px" data-ad-client="ca-pub-6457864535683080" data-ad-slot="7579263359"></ins>';
        echo '<script>(adsbygoogle = window.adsbygoogle || []).push({});</script>';
    }

    public static function ShowBanner728x90()
    {
        echo '<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>';
        echo '<ins class="adsbygoogle" style="display:inline-block;width:728px;height:90px" data-ad-client="ca-pub-6457864535683080" data-ad-slot="1234567890"></ins>';
        echo '<script>(adsbygoogle = window.adsbygoogle || []).push({});</script>';
    }

    public static function ShowBannerGoogle300x250()
    {
        // alias to ShowBanner300x250 for compatibility
        self::ShowBanner300x250();
    }
}
