@php $initial = 1; @endphp @foreach($links as $link) @if(isset($link->custom_html) && $link->custom_html) @php setBlockAssetContext($link->type); @endphp @include('blocks::' . $link->type . '.display', ['link' => $link, 'initial' => $initial++]) @else @switch($link->name) @case('icon') @break @case('vcard')
@break @case('phone') @break @case('custom') @if($link->custom_css === "" or $link->custom_css === "NULL" or (theme('allow_custom_buttons') == "false")) @break @elseif($link->custom_css != "") @break @endif @case('custom_website') @if($link->custom_css === "" or $link->custom_css === "NULL" or (theme('allow_custom_buttons') == "false")) @break @elseif($link->custom_css != "") @break @endif @default @endswitch @endif @endforeach