Skip to content

Commit

Permalink
Add widgetbay stretched link for GTM tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
murdercode committed Dec 10, 2024
1 parent c2cd83f commit a8d754f
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 9 deletions.
2 changes: 1 addition & 1 deletion resources/dist/app.css

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions resources/src/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -680,3 +680,17 @@ html.dark .shortcode_nocookie {
}

}

/** Stretched Link */
.relative {
position: relative;
}

.stretched-link::after {
content: "";
position: absolute;
inset: 0;
z-index: 10;
background: transparent;
pointer-events: auto;
}
16 changes: 10 additions & 6 deletions resources/views/widgetbay.blade.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<iframe src="{{ $widgetbayLink }}" allowfullscreen="true" scrolling="no"
class="{{ $heightListClass ?? 'shortcode_widgetbay' }} _iub_cs_activate"
frameborder="0" loading="lazy"
style="width:100%;overflow-y:hidden;
">
</iframe>
<div class="relative">
<iframe src="{{ $widgetbayLink }}" allow="fullscreen" scrolling="no"
class="{{ $heightListClass ?? 'shortcode_widgetbay' }} _iub_cs_activate"
frameborder="0" loading="lazy"
title="Offerta di Widgetbay"
style="width:100%;overflow-y:hidden;
">
</iframe>
<a href="{{ $widgetbayLink }}" target="_blank" rel="sponsored nofollow" class="widgetbay_box stretched-link"></a>
</div>
4 changes: 3 additions & 1 deletion src/LaravelShortcodePlus.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@

final class LaravelShortcodePlus
{
public function __construct(protected string $content = '') {}
public function __construct(protected string $content = '')
{
}

public static function source(string $source): LaravelShortcodePlus
{
Expand Down
4 changes: 3 additions & 1 deletion src/LaravelShortcodePlusServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ public function configurePackage(Package $package): void
->hasMigration('create_laravel-shortcode-plus_table');
}

public function packageRegistered() {}
public function packageRegistered()
{
}

public function packageBooted(): void
{
Expand Down

0 comments on commit a8d754f

Please sign in to comment.