Skip to content

Commit a97de28

Browse files
committed
Add nativephp banners
1 parent 2d2df61 commit a97de28

File tree

6 files changed

+12
-8
lines changed

6 files changed

+12
-8
lines changed

config/lio.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@
22

33
return [
44
'ads' => [
5+
// [
6+
// 'url' => 'https://eventy.io/?utm_source=Laravel.io&utm_campaign=eventy&utm_medium=advertisement',
7+
// 'image' => 'eventy',
8+
// 'alt' => 'Eventy',
9+
// ],
510
[
6-
'url' => 'https://eventy.io/?utm_source=Laravel.io&utm_campaign=eventy&utm_medium=advertisement',
7-
'image' => 'eventy',
8-
'alt' => 'Eventy',
9-
'goal' => 'PSA8VL6S',
11+
'url' => 'https://nativephp.com/mobile?ref=laravel.io',
12+
'image' => 'nativephp',
13+
'alt' => 'Native PHP',
1014
],
1115
],
1216

154 KB
Loading
277 KB
Loading

resources/views/components/ads/top-text.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="h-full rounded-sm shadow-sm px-5 py-4 bg-lio-200">
22
<div class="break-words font-medium">
3-
<a href="https://www.jetbrains.com/phpstorm/laravel/?utm_source=laravel.io&utm_medium=cpc&utm_campaign=phpstorm&utm_content=forum_sticker" class="text-gray-800 hover:text-gray-600 leading-7 mt-1" target="_blank" rel="noopener noreferrer" onclick="fathom.trackGoal('EMMLWQLC', 0);">
3+
<a href="https://www.jetbrains.com/phpstorm/laravel/?utm_source=laravel.io&utm_medium=cpc&utm_campaign=phpstorm&utm_content=forum_sticker" class="text-gray-800 hover:text-gray-600 leading-7 mt-1" target="_blank" rel="noopener noreferrer" onclick="fathom.trackEvent('PhpStorm text ad click', 0);">
44
<span class="text-sm font-regular text-gray-500">(sponsored)</span>
55
Haven't tried PhpStorm yet? Get a special discount on PhpStorm + Laravel plugin bundle
66
<span class="text-sm font-regular text-gray-500">-&gt;</span>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88

99
{{-- Show the banner on bigger displays. --}}
1010
<div class="hidden lg:block w-full">
11-
<a href="{{ $long['url'] }}" target="_blank" rel="noopener noreferrer" onclick="fathom.trackGoal('{{ $long['goal'] }}', 0);">
11+
<a href="{{ $long['url'] }}" target="_blank" rel="noopener noreferrer" onclick="fathom.trackEvent('{{ $long['alt'] }} long ad click');">
1212
<img class="block mx-auto w-full" style="max-width:1200px" src="{{ asset("/images/showcase/{$long['image']}-long.png") }}" alt="{{ $long['alt'] }}">
1313
</a>
1414
</div>
1515

1616
{{-- Show the square on mobile. --}}
1717
<div class="block lg:hidden w-full">
18-
<a href="{{ $small['url'] }}" target="_blank" rel="noopener noreferrer" onclick="fathom.trackGoal('{{ $small['goal'] }}', 0);">
18+
<a href="{{ $small['url'] }}" target="_blank" rel="noopener noreferrer" onclick="fathom.trackEvent('{{ $small['alt'] }} small ad click');">
1919
<img class="block mx-auto w-full" style="max-width:300px" src="{{ asset("/images/showcase/{$small['image']}-small.png") }}" alt="{{ $small['alt'] }}">
2020
</a>
2121
</div>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
$banner = $banner['small'] ?? $banner;
66
?>
77

8-
<a href="{{ $banner['url'] }}" target="_blank" rel="noopener noreferrer" onclick="fathom.trackGoal('{{ $banner['goal'] }}', 0);">
8+
<a href="{{ $banner['url'] }}" target="_blank" rel="noopener noreferrer" onclick="fathom.trackEvent('{{ $banner['alt'] }} sidebar ad click');">
99
<img loading="lazy" class="my-4 mx-auto w-full" style="max-width:300px" src="{{ asset("/images/showcase/{$banner['image']}-small.png") }}" alt="{{ $banner['alt'] }}">
1010
</a>
1111

0 commit comments

Comments
 (0)