From 6d1c9a5e364b4d93f4c802274873f2e669736236 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 15 Apr 2020 15:50:39 +0200 Subject: [PATCH] wip #3593 --- resources/views/partials/home-products.blade.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/resources/views/partials/home-products.blade.php b/resources/views/partials/home-products.blade.php index fe6e24d..a407897 100644 --- a/resources/views/partials/home-products.blade.php +++ b/resources/views/partials/home-products.blade.php @@ -1,11 +1,19 @@ +@php + $href='#'; + if(isset($highlight['page'])){ + $href=$nav->getHrefById($highlight['page']); + } +@endphp +
+ href="{{ $href }}">
{{-- Proportional image holder --}}
{{$page->getImageAltByCollection($highlight['image'],$highlight['title'])}} + alt="{{$page->getImageAltByCollection($highlight['image'],$highlight['title'])}}" + class="bgimg"/>

{{ $highlight['title'] }}

-- 2.39.5