Skip to content

Commit 8d7f843

Browse files
committed
Replace banners
1 parent 077c76c commit 8d7f843

File tree

7 files changed

+19
-66
lines changed

7 files changed

+19
-66
lines changed
67 KB
Loading
68.2 KB
Loading

resources/views/layouts/_ads.blade.php

Lines changed: 0 additions & 16 deletions
This file was deleted.

resources/views/layouts/_ads/_ad_sense.blade.php

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,12 @@
1-
@if (! isset($disableAds))
2-
@if ($adSenseClient = config('services.google.ad_sense.client'))
3-
<div class="container mx-auto text-center overflow-hidden">
4-
<ins class="adsbygoogle footer-ad"
5-
data-ad-client="{{ $adSenseClient }}"
6-
data-ad-slot="{{ config('services.google.ad_sense.unit_footer') }}"
7-
data-ad-format="fluid"></ins>
8-
<script>
9-
(adsbygoogle = window.adsbygoogle || []).push({});
10-
</script>
11-
</div>
12-
@endif
1+
<a
2+
href="https://devsquad.com"
3+
target="_blank"
4+
rel="noopener noreferrer"
5+
>
6+
{{-- Show the banner on bigger displays. --}}
7+
<img class="hidden md:block my-4 mx-auto w-full" style="max-width:1200px" src="{{ asset('/images/ads/devsquad-long.jpg') }}" alt="Devsquad">
8+
{{-- Show the square on mobile. --}}
9+
<img class="md:hidden my-4 mx-auto w-full" style="max-width:300px" src="{{ asset('/images/ads/devsquad-small.jpg') }}" alt="Devsquad">
10+
</a>
1311

14-
@if (config('app.debug'))
15-
<div class="container mx-auto text-center overflow-hidden bg-green-light" style="max-width:950px;height:88px">
16-
</div>
17-
@endif
18-
19-
@include('layouts._ads._cta', ['text' => 'Your banner here?'])
20-
@endif
12+
@include('layouts._ads._cta', ['text' => 'Your banner here too?'])
Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,9 @@
1-
@if (! isset($disableAds))
2-
@if ($adSenseClient = config('services.google.ad_sense.client'))
3-
<div style="margin-top:25px">
4-
<ins class="adsbygoogle sidebar-ad"
5-
style="display:block"
6-
data-ad-client="{{ $adSenseClient }}"
7-
data-ad-slot="{{ config('services.google.ad_sense.unit_forum_sidebar') }}"
8-
data-ad-format="rectangle"></ins>
9-
<script>
10-
(adsbygoogle = window.adsbygoogle || []).push({});
11-
</script>
12-
</div>
13-
@endif
1+
<a
2+
href="https://devsquad.com"
3+
target="_blank"
4+
rel="noopener noreferrer"
5+
>
6+
<img class="my-4 mx-auto w-full" style="max-width:300px" src="{{ asset('/images/ads/devsquad-small.jpg') }}" alt="Devsquad">
7+
</a>
148

15-
@if (config('app.debug'))
16-
<div class="container mx-auto text-center overflow-hidden bg-green-light" style="max-width:300px;height:250px;margin-top:25px">
17-
</div>
18-
@endif
19-
20-
@include('layouts._ads._cta', ['text' => 'Your banner here?'])
21-
@endif
9+
@include('layouts._ads._cta', ['text' => 'Your banner here too?'])

resources/views/layouts/base.blade.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
@include('layouts._favicons')
2929
@include('layouts._social')
3030
@include('layouts._google_analytics')
31-
@include('layouts._ads._ad_sense')
3231

3332
@livewireStyles
3433
</head>
@@ -42,7 +41,6 @@
4241

4342
@include('layouts._footer')
4443

45-
@include('layouts._ads')
4644
@include('layouts._fathom')
4745

4846
@livewireScripts

0 commit comments

Comments
 (0)