Skip to content

Commit a53087f

Browse files
committed
Enabled custom CSS to be applied
Enabled custom CSS to be applied to buttons on the LittleLink page. CSS that is entered in the database will be applied directly to buttons. See: https://blog.littlelink-custom.com/upcoming-features/
1 parent 1884cd2 commit a53087f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

resources/views/littlelink.blade.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,10 @@ function get_operating_system() {
195195
@if($link->button_id === 0)
196196
<div style="--delay: {{ $initial++ }}s" class="button-entrance"><a class="button button-title button hvr-grow hvr-icon-wobble-vertical" href="{{ route('clickNumber') . '/' . $link->id . '/' . $link->link}}" target="_blank">
197197
{{ $link->title }}</a></div>
198-
@elseif($link->name === "custom")
198+
@elseif($link->name === "custom" and $link->custom_css === "")
199199
<div style="--delay: {{ $initial++ }}s" class="button-entrance"><a class="button button-{{ $link->name }} button hvr-grow hvr-icon-wobble-vertical" href="{{ route('clickNumber') . '/' . $link->id . '/' . $link->link}}" target="_blank"><img class="icon hvr-icon" src="{{ asset('\/littlelink/icons\/') . $linkName }}.svg">{{ $link->title }}</a></div>
200+
@elseif($link->name === "custom" and $link->custom_css != "")
201+
<div style="--delay: {{ $initial++ }}s" class="button-entrance"><a class="button button hvr-grow hvr-icon-wobble-vertical" style="{{ $link->custom_css }}" href="{{ route('clickNumber') . '/' . $link->id . '/' . $link->link}}" target="_blank"><img class="icon hvr-icon" src="{{ asset('\/littlelink/icons\/') . $linkName }}.svg">{{ $link->title }}</a></div>
200202
@elseif($link->name === "buy me a coffee")
201203
<div style="--delay: {{ $initial++ }}s" class="button-entrance"><a class="button button-coffee button hvr-grow hvr-icon-wobble-vertical" href="{{ route('clickNumber') . '/' . $link->id . '/' . $link->link}}" target="_blank"><img class="icon hvr-icon" src="{{ asset('\/littlelink/icons\/')}}coffee.svg">Buy me a Coffee</a></div>
202204
@elseif($link->name === "custom_website")

0 commit comments

Comments
 (0)