@extends('site.layout.base') @section('content') @include('site.page.block.header.objimage', array('objheader' => $header)) @include('site.page.block.breadcrumbs') @php $gallery_index = 0; @endphp @for($b = 0; $b < count($block); $b++) @php $params = trim($block[$b]->params) != '' ? json_decode($block[$b]->params) : NULL; $gallery = array(); if($params != NULL && isset($params->gallery) && count($params->gallery) > 0) { for($g = 0; $g < count($params->gallery); $g++) { $objg = (object)[]; $objg->ordering = $params->gallery[$g]->ordine; $objg->file = 'block/gallery/'.$params->gallery[$g]->file; $objg->zoom = 'block/gallery/zoom/'.$params->gallery[$g]->file; $gallery[] = $objg; } usort($gallery, array($siteCtrl, "usort_ordering")); } @endphp @include('site.page.block.content.textimage', array( 'section_text_class' => $block[$b]->box_class, 'subtitle' => $block[$b]->title, 'image_right' => $params != NULL && isset($params->image_right) ? $params->image_right == 1 : false, 'img' => $block[$b]->img, 'image_resize' => ($params != NULL && isset($params->image_resize) ? $params->image_resize : 1), 'text' => $block[$b]->description, )) @if(count($gallery) > 0) @include('site.page.block.gallery', array('gallery_list' => $gallery, 'out_at' => 6, 'index' => $gallery_index)) @php $gallery_index++; @endphp @endif @endfor @include('site.page.block.contatti') @stop