Skip to content

Commit a8d754f

Browse files
committedDec 10, 2024·
Add widgetbay stretched link for GTM tracking
1 parent c2cd83f commit a8d754f

File tree

5 files changed

+31
-9
lines changed

5 files changed

+31
-9
lines changed
 

‎resources/dist/app.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎resources/src/css/app.css

+14
Original file line numberDiff line numberDiff line change
@@ -680,3 +680,17 @@ html.dark .shortcode_nocookie {
680680
}
681681

682682
}
683+
684+
/** Stretched Link */
685+
.relative {
686+
position: relative;
687+
}
688+
689+
.stretched-link::after {
690+
content: "";
691+
position: absolute;
692+
inset: 0;
693+
z-index: 10;
694+
background: transparent;
695+
pointer-events: auto;
696+
}

‎resources/views/widgetbay.blade.php

+10-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
<iframe src="{{ $widgetbayLink }}" allowfullscreen="true" scrolling="no"
2-
class="{{ $heightListClass ?? 'shortcode_widgetbay' }} _iub_cs_activate"
3-
frameborder="0" loading="lazy"
4-
style="width:100%;overflow-y:hidden;
5-
">
6-
</iframe>
1+
<div class="relative">
2+
<iframe src="{{ $widgetbayLink }}" allow="fullscreen" scrolling="no"
3+
class="{{ $heightListClass ?? 'shortcode_widgetbay' }} _iub_cs_activate"
4+
frameborder="0" loading="lazy"
5+
title="Offerta di Widgetbay"
6+
style="width:100%;overflow-y:hidden;
7+
">
8+
</iframe>
9+
<a href="{{ $widgetbayLink }}" target="_blank" rel="sponsored nofollow" class="widgetbay_box stretched-link"></a>
10+
</div>

‎src/LaravelShortcodePlus.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222

2323
final class LaravelShortcodePlus
2424
{
25-
public function __construct(protected string $content = '') {}
25+
public function __construct(protected string $content = '')
26+
{
27+
}
2628

2729
public static function source(string $source): LaravelShortcodePlus
2830
{

‎src/LaravelShortcodePlusServiceProvider.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ public function configurePackage(Package $package): void
4242
->hasMigration('create_laravel-shortcode-plus_table');
4343
}
4444

45-
public function packageRegistered() {}
45+
public function packageRegistered()
46+
{
47+
}
4648

4749
public function packageBooted(): void
4850
{

0 commit comments

Comments
 (0)
Please sign in to comment.