]> _ Git - pmi.git/commitdiff
wip #3593
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 15 Apr 2020 13:50:39 +0000 (15:50 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 15 Apr 2020 13:50:39 +0000 (15:50 +0200)
resources/views/partials/home-products.blade.php

index fe6e24d9222689d3cef7d59cb5ac47a9f21ef44d..a407897b3f8a61621e7d7ad7795155ccbef486fa 100644 (file)
@@ -1,11 +1,19 @@
+@php
+    $href='#';
+    if(isset($highlight['page'])){
+        $href=$nav->getHrefById($highlight['page']);
+    }
+@endphp
+
 <div class="bg-white px-1v py-6 flex">
     <a class="animated-underline partial-underline flex flex-col justify-between w-full"
-       href="{{ $nav->getHrefById($highlight['page']) }}">
+       href="{{ $href }}">
         <div class="flex items-center justify-center flex-grow">
             {{-- Proportional image holder --}}
             <div class="mb-4 bg-contain bg-no-repeat bg-center w-full">
                 <img src="{{ $page->getImageUrlByCollection($highlight['image']) }}"
-                     alt="{{$page->getImageAltByCollection($highlight['image'],$highlight['title'])}}" class="bgimg"/>
+                     alt="{{$page->getImageAltByCollection($highlight['image'],$highlight['title'])}}"
+                     class="bgimg"/>
             </div>
         </div>
         <p class="text-lg text-navy font-display font-medium">{{ $highlight['title'] }}</p>