<? /** * TITLE: Коммуникации * AVAILABLE_ONLY_IN_ADVANCED_MODE */ ?> <?php if ($communications = Dictionary::valuesBySlug('communications_units', NULL, 'all', TRUE)) { foreach ($communications as $index => $communication) { if ($communication['photo']) { $communications[$index]['photo_name'] = Photo::where('id', $communication['photo'])->pluck('name'); } } } ?> @extends(Helper::layout()) @section('style') @stop @section('content') <div class="half-page"> <div class="wrapper"> <div class="page-full"> <div class="tabs-title"> <h1 class="us-title title-yellow"><span>{{ $page->seo->h1 }}</span></h1> @include(Helper::layout('about-menu'),array('hidden'=>'communications')) </div> </div> <div class="page__left no-border"> <div class="us-article"> {{ $page->block('content') }} </div>
* TITLE: Главная страница * AVAILABLE_ONLY_IN_ADVANCED_MODE */ ?> <?php if ($sliders = Dictionary::valuesBySlug('main_baners', function ($query) { $query->orderBy('lft', 'ASC'); }, 'all', TRUE)) { foreach ($sliders as $index => $slider) { if ($slider['photo']) { $sliders[$index]['photo_name'] = Photo::where('id', $slider['photo'])->pluck('name'); } } } if ($communications = Dictionary::valuesBySlug('communications_units', function ($query) { $query->orderBy('lft', 'ASC'); }, 'all', TRUE)) { foreach ($communications as $index => $communication) { if ($communication['photo']) { $communications[$index]['photo_name'] = Photo::where('id', $communication['photo'])->pluck('name'); } } } $gallery = array(); if (Gallery::where('name', 'Галерея на главной')->exists()) { $gallery = Gallery::where('name', 'Галерея на главной')->first()->photos; } ?> @extends(Helper::layout()) @section('style') @stop
<? /** * TITLE: Путеводитель * AVAILABLE_ONLY_IN_ADVANCED_MODE */ ?> <?php if ($infrastructures = Dictionary::valuesBySlug('infrastructures', NULL, 'all', TRUE)) { foreach ($infrastructures as $index => $infrastructure) { if ($infrastructure['photo']) { $infrastructures[$index]['photo_path'] = Upload::where('id', $infrastructure['photo'])->pluck('path'); } } } ?> @extends(Helper::layout()) @section('style') @stop @section('content') <div class="half-page infra-page"> <div id="infra-map" class="infra-map"></div> <div class="wrapper"> <div class="page__left"> <div class="tabs-title"> <h1 class="us-title title-red"><span>{{ $page->seo->h1 }}</span></h1> <div class="tabs-right"> <div class="right-cont"> <a href="{{ pageurl('raspolojenie') }}" class="title__link">Расположение</a> </div> </div> </div>