@php $initial = 1; @endphp @include('linkstack.modules.block-libraries', ['links' => $links]) @foreach($links as $link) @if(isset($link->custom_html) && $link->custom_html) @if(isset($link->ignore_container) && $link->ignore_container) @endif @php setBlockAssetContext($link->type); @endphp @include('blocks::' . $link->type . '.display', ['link' => $link, 'initial' => $initial++]) @if(isset($link->ignore_container) && $link->ignore_container)
@endif @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