Skip to content

Commit 4726527

Browse files
committed
Update links.blade.php
1 parent 343e809 commit 4726527

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

resources/views/studio/links.blade.php

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
@section('content')
44

5+
<?php use App\Models\Button; ?>
6+
57
@if(Request::is('studio/links/10'))
68
@php setcookie("LinkCount", "10", time()+60*60*24*5, "/"); @endphp
79
@elseif(Request::is('studio/links/20'))
@@ -61,15 +63,18 @@
6163
<div class='row h-100'>
6264
<div class='col-12 p-2' title="{{ $link->title }}">
6365
<span class='h6'>
64-
@if($link->typename == 'predefined')
65-
<span class='button button-{{$link->params['button']}} p-0' style='max-width: 25px; max-height: 25px; line-height: 0; cursor: none;'>
66-
67-
<img alt="button-icon" height="15" class="m-1 " src="{{ asset('\/littlelink/icons\/') . $link->params['button'] }}.svg ">
68-
</span>
69-
66+
<?php $button = Button::find($link->button_id); if(isset($button->name)){$buttonName = $button->name;}else{$buttonName = 0;} ?>
67+
@if($button->name == "custom_website")
68+
<?php function strp($urlStrp){return str_replace(array('http://', 'https://'), '', $urlStrp);} ?>
69+
<span style="border: 1px solid #d0d4d7 !important;border-radius:5px;background-color:#6c757d;width:25px!important;height:25px!important;display: flex;"><img style="margin-top:3px;margin-left:4px;margin-right:4px;max-width:15px;max-height:15px;" alt="button-icon" class="icon hvr-icon" src="https://icons.duckduckgo.com/ip3/{{strp($link->link)}}.ico"></span>
70+
@elseif($button->name == "space")
71+
<span style="border: 1px solid #d0d4d7 !important;border-radius:5px;background-color:#6c757d;width:25px!important;height:25px!important;"><i style="margin-left:2.83px;margin-right:-1px;color:#fff;" class='bi bi-distribute-vertical'>&nbsp;</i></span>
72+
@elseif($button->name == "heading")
73+
<span style="border: 1px solid #d0d4d7 !important;border-radius:5px;background-color:#6c757d;width:25px!important;height:25px!important;"><i style="margin-left:2.83px;margin-right:-1px;color:#fff;" class='bi bi-card-heading'>&nbsp;</i></span>
74+
@elseif($button->name == "buy me a coffee")
75+
<span style="border: 1px solid #d0d4d7 !important;border-radius:5px;background-color:#6c757d;width:25px!important;height:25px!important;"><img style="margin-left:6px!important;margin-right:6px!important;" alt="button-icon" height="15" class="m-1 " src="{{ asset('\/littlelink/icons\/') . "coffee" }}.svg "></span>
7076
@else
71-
{{-- Change later!!!! fa-external-link --}}
72-
<i class="fa-external-link" title="{{$link->title}}"></i>
77+
<span style="border: 1px solid #d0d4d7 !important;border-radius:5px;background-color:#6c757d;width:25px!important;height:25px!important;"><img style="max-width:15px !important;" alt="button-icon" height="15" class="m-1 " src="{{ asset('\/littlelink/icons\/') . $buttonName }}.svg "></span>
7378
@endif
7479

7580
{{$link->title}}</span>

0 commit comments

Comments
 (0)