|
2 | 2 |
|
3 | 3 | @section('content')
|
4 | 4 |
|
| 5 | +<?php use App\Models\Button; ?> |
| 6 | + |
5 | 7 | @if(Request::is('studio/links/10'))
|
6 | 8 | @php setcookie("LinkCount", "10", time()+60*60*24*5, "/"); @endphp
|
7 | 9 | @elseif(Request::is('studio/links/20'))
|
|
61 | 63 | <div class='row h-100'>
|
62 | 64 | <div class='col-12 p-2' title="{{ $link->title }}">
|
63 | 65 | <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'> </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'> </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> |
70 | 76 | @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> |
73 | 78 | @endif
|
74 | 79 |
|
75 | 80 | {{$link->title}}</span>
|
|
0 commit comments