Орла
Области
Компаний
Пользователи
Галерея
Фиксированные новости
Орла
Отзывы о фирмах
Тарифы
Пользователи
Области
Банкоматы
Торговые точки
Доска объявлений
Курсы валют
Скидки
организации Орла
организации области
товары
сайты
сайты Орел
Данные
Разделы
Поиск
Поиск запросы
Статистика
Показы каталога организаций
Статистика клиенты
Пользователи
Сайты
Управление сайтом
Анкета
Аптеки
Афиша
Афиша новая
Баннеры
Бизнес >
Викторина
Голосование
Гость на сайте
Истории
Календарь событий
Каталоги >
Конкурс красоты
Конкурс аудио
Консультации
Меню
Новое на сайте
Новости >
Организации >
Программа ТВ
Публикации
Разделы сайта
Рассылка
Рестораны
Секрет фирмы >
Сервисы >
Ссылки
Тесты
Файловый менеджер
Форум
Фотогалерея
Обратная связь
Недвижимость
Новый год
Тексты
Пользователи
Юридический рейтинг
Отзывы на товары
Бан пользователей
Жалобы
Новые тесты
Коронавирус
Файловый менеджер
Имя файла
view.php
Содержимое
<?php /** * Просмотр ресторана */ use app\core\helpers\Skl; use app\core\helpers\StringHelper; ?> <div class="uk-container uk-container-center"> <div class="uk-grid"> <div class="uk-width-xlarge-4-5 uk-width-large-2-3 uk-width-medium-1-1 uk-width-small-1-1"> <!-- Название ресторана --> <div class="box-top-name uk-flex uk-flex-wrap uk-flex-space-between uk-flex-middle"> <div class="uk-width-xlarge-7-10 uk-width-large-1-1 uk-width-medium-1-2 uk-width-small-1-1"> <a href="/restoran/" class="orange">Рестораны Орла</a> <h1 class="header-box-1"> <a href="#"><?=$restoran['name'];?></a> </h1> <?php $interesTemplateItems = []; ?> <?php foreach ($restoran['interes_array'] as $interesItem) { $interesTemplateItems[] = '<a href="/restoran/index.php?sid_t='. $interesItem['id'] . '&v=1&search=1">'.$interesItem['name'].'</a>'; } echo implode('<span class="gray">,</span> ', $interesTemplateItems); ?> <div class="restoran-raiting"> <img src="/restoran/test.php?lines=ff9800&rating=<?=$rating;?>" class="jq-restoran-rating-img" title="Оценить ресторан" style="cursor:pointer"> <?php if ($totalComments > 0) { ?> <span class="gray-rating"><?=$totalComments;?> <?=Skl::getString($totalComments, ['отзыв', 'отзыва', 'отзывов']);?></span> <?php } else { ?> <span class="gray-rating">нет отзывов</span> <?php } ?> <span class="small gray">Количество просмотров за месяц: <?=$viewsPerMonth;?></span> <span class="small gray">Всего просмотров: <?=$totalViews;?></span> </div> </div> <div class="uk-width-xlarge-3-10 uk-width-large-1-1 uk-width-medium-1-2 uk-width-small-1-1 btn-restoran-two"> <div class="uk-margin-bottom"><span class="gray font-size-28">18+</span> <span class="gray font-size-11 uk-margin-mini-left">На правах рекламы</span> </div> <div class="share-block uk-display-inline-block uk-margin-mini-right"></div> <a href="#"> <button class="uk-button btn-orange <?php if (App::$user->isGuest()) { echo 'jq-show-login-form'; } else { echo 'jq-show-comment-tab'; } ?>" data-move-to-form="1"> Оставить отзыв </button> </a> </div> </div><!-- Конец Название ресторана --> <!-- Контакты ресторана --> <div class="uk-container-center"> <div class="uk-grid pt35"> <div class="uk-width-xlarge-1-2 uk-width-large-1-1 uk-width-medium-1-2 uk-width-small-1-1"> <?php if ($_SERVER['REMOTE_ADDR'] == '195.19.92.92') { //echo "<pre>"; //var_dump($restoran); //echo "</pre>"; }?> <ul class="contacts-restoran"> <li> <h4 class="header-link-inner uk-margin-remove"> <a href="/maps/?iz=<?=$restoran['id'];?>&tz=3&d=r"><?=$restoran['address'];?></a> </h4> </li> <?php if ($restoran['phone'] != null) { ?> <li><span>Телефон: </span><a href="tel:<?=$restoran['phone'];?>"><?=$restoran['phone'];?></a></li> <?php } ?> <?php if ($restoran['work_hours'] != null) { ?> <li><span>Режим работы: </span><?=$restoran['work_hours'];?></li> <?php } ?> <?php if ($restoran['site'] != '' && $restoran['registr'] == 1) { ?> <?php if (empty($restoran['site']) == false && $restoran['site'] != 'http://' && $restoran['site'] != 'https://') { ?> <li> <span>Сайт: </span> <!--noindex--> <a href="<?=$restoran['site'];?>" rel="nofollow" target="_blank"> <?=$restoran['site'];?> </a> <!--/noindex--> </li> <?php } ?> <?php } ?> <?php if (StringHelper::length($restoran['vk_url']) > 0 && $restoran['registr'] == 1) { ?> <li> <span>Вконтакте: </span> <!--noindex--> <a href="<?=$restoran['vk_url'];?>" rel="nofollow" target="_blank"> <?=$restoran['vk_url'];?> </a> <!--/noindex--> </li> <?php } ?> </ul> <ul class="list-about-restoran uk-margin-large"> <!-- кухня --> <?php if (count($restoran['kitchen_array']) > 0) { ?> <li><span>Кухня: </span> <?php foreach ($restoran['kitchen_array'] as $kitchen) { ?> <a href="/restoran/index.php?sid_k=<?=$kitchen['id'];?>&v=2&search=1"> <?=$kitchen['name'];?> </a> <?php } ?> </li> <?php } ?> <!-- // --> <!-- музыка --> <?php if (count($restoran['music_array']) > 0) { ?> <li> <span>Музыка: </span> <?php foreach ($restoran['music_array'] as $musicItem) { ?> <a href="/restoran/index.php?music[]=<?=$musicItem['id'];?>"> <?=$musicItem['name'];?> </a> <?php } ?> </li> <?php } ?> <!-- // --> <?php if ($restoran['cost'] != null) { ?> <li><span>Средняя стоимость счета: </span><?=$restoran['cost'];?></li> <?php } ?> <?php if ($restoran['clothes'] != null) { ?> <li><span>Одежда: </span><?=$restoran['clothes'];?></li> <?php } ?> </ul> <ul class="list-about-restoran uk-margin-large"> <?php if ($restoran['offer'] != null) { ?> <li> <span>Предложения: </span> <?=$restoran['offer'];?> </li> <?php } ?> </ul> <?php if ($restoran['registr'] == 1 && count($menuItems) > 0) { ?> <button class="btm-restoran-menu uk-button btn-gray uk-margin-right show-menu-button">Меню</button> <?php } ?> <button type="button" class="uk-button btn-gray report-button" data-entity-type="restoran" data-entity-id="<?=$restoran['id'];?>" data-variants="Заведение не существует,Неверное описание,Неверное меню,Неверный адрес"><i class="fa fa-ban gray uk-margin-mini-right" aria-hidden="true"></i> Сообщить о неточности</button> </div> <div class="uk-width-xlarge-1-2 uk-width-large-1-1 uk-width-medium-1-2 uk-width-small-1-1"> <!-- слайдер--> <div style="width: 100%;height: 100%;min-height: 350px;"> <?=\app\core\widgets\WidgetFactory::run('Map', [ 'route' => 'r', 'id' => $restoran['id'], 'openBalloon' => false ]); ?> </div> <!-- // --> </div> </div> </div> <!-- Конец Контакты ресторана --> <!-- TABs restoran--> <ul class="tabs-about-restoran uk-margin-bottom uk-margin-large-top uk-tab" data-uk-tab="{connect:'#about-restoran-tabs-content'}"> <?php if ($restoran['registr'] == 1) { ?> <li <?php if (App::$request->get('page') == null) { echo 'class="uk-active"'; } ?>> <a href="#"> О ресторане </a> </li> <?php } ?> <?php if ($restoran['registr'] == 1 && count($menuItems)) { ?> <li> <a href="#"> Меню </a> </li> <?php } ?> <li> <a href="#reviews"> Отзывы </a> </li> <?php if ($restoran['registr'] == 1 && count($panorams) > 0) { ?> <li> <a href="#"> Панорамы </a> </li> <?php } ?> <?php if ($restoran['registr'] == 1 && count($photos) > 0) { ?> <li> <a href="#"> Фотографии </a> </li> <?php } ?> <?php if ($restoran['registr'] == 1 && count($news) > 0) { ?> <li> <a href="#"> Новости </a> </li> <?php } ?> <?php if ($restoran['registr'] == 1 && count($videos) > 0) { ?> <li> <a href="#"> Видео </a> </li> <?php } ?> </ul> <ul id="about-restoran-tabs-content" class="uk-switcher"> <!-- о ресторане --> <?php if ($restoran['registr'] == 1) { ?> <li class="restoran-content-tab"> <?php if ($restoran['info'] != '') { ?> <div class="box-desc-restoran uk-margin-top"> <h2>О ресторане</h2> <div> <?=$restoran['info'];?> </div> </div> <?php } ?> <?php if (count($photos) > 0) { ?> <div class="box-desc-restoran"> <div class="uk-flex uk-flex-space-between uk-flex-wrap-middle"> <h2 class="uk-margin-bottom uk-margin-top">Фотографии ресторана</h2> <div class="uk-margin-bottom uk-margin-top"><a href="#" class="blue" data-uk-switcher-item="4">Все фотографии</a></div> </div> <div class="photos uk-grid"> <?php foreach ($photos as $key => $photo) { ?> <div class="uk-width-large-1-3 uk-width-medium-1-3 uk-width-amall-1-3 uk-margin-bottom"> <a class="fancybox-buttons" data-fancybox-group="restoran-preview-photo" href="<?=App::getStaticDomain();?>/<?=str_replace('_sm', '', $photo['img_index']);?>" data-title=""> <div class="view-restoran-fotogal-img" style="background: url('<?=App::getStaticDomain();?>/<?= $photo['img_index'];?>'); background-position: center center;"></div> </a> </div> <?php if ($key == 5) { break; } ?> <?php } ?> </div> </div> <?php } ?> <?php if (count($menuItems) > 0) { ?> <a name="menu"></a> <div class="box-desc-restoran"> <div class="uk-flex uk-flex-space-between uk-flex-wrap-middle"> <h2 class="uk-margin-bottom uk-margin-top">Меню ресторана</h2> <div class="uk-margin-bottom uk-margin-top"><a href="#" class="blue" data-uk-switcher-item="1">Все меню</a></div> </div> <div class="uk-grid"> <?=App::$view->render('restoran/restoran_menu', [ 'restoran_id' => $restoran['id'], 'menuItems' => $menuItems, 'limit' => 4, 'page' => 'index' ]);?> </div> <?php // // В контейнер ниже мы будем вставлять меню ресторана с вкладки о ресторане. Не удалять этот // блок! // ?> <div id="jq-feedback-tab-restoran-menu-container"></div> </div> <?php } ?> <?php if ($totalComments > 0) { ?> <div class="box-desc-restoran"> <div class="uk-flex uk-flex-space-between uk-flex-wrap-middle"> <h2 class="uk-margin-large uk-margin-large-top">Отзывы ресторана</h2> </div> <div> <?php App::$view->render('restoran/comments_fragment', [ 'comments' => $comments, 'total' => $totalComments, 'viewCount' => 4 ]); ?> </div> <div> <a href="#" class="blue jq-show-comment-tab">Все отзывы о ресторане</a> </div> </div> <?php } ?> <?php if (count($news) > 0) { ?> <div class="box-desc-restoran"> <h2 class="uk-margin-large uk-margin-large-top">Новости ресторана</h2> <div class="uk-grid"> <?php foreach ($news as $newItem) { ?> <div class="uk-flex-column uk-width-large-1-3 uk-width-medium-1-3 uk-width-amall-1-4 uk-margin-bottom"> <time class="gray-time"><?=\app\core\helpers\RuDate::getDate($newItem['data']);?></time> <div> <a href="/restoran/news/<?=$restoran['restoran_url'];?>/<?=$newItem['news_url'];?>.html" target="_blank" class="first-word-upper"> <?=$newItem['news_header'];?> </a> </div> </div> <?php } ?> </div> <div> <a href="/restoran/news/<?=$restoran['restoran_url'];?>.html" class="blue" data-uk-switcher-item="5">Все новости о ресторане</a> </div> </div> <?php } ?> </li> <?php } ?> <!-- меню --> <?php if ($restoran['registr'] == 1 && count($menuItems) > 0) { ?> <li class="jq-menu-container restoran-content-tab"> <div class="box-desc-restoran"> <!--<h2 class="uk-margin-large uk-margin-large-top">Меню ресторана</h2>--> <div class="uk-grid"> <?=App::$view->render('restoran/restoran_menu', [ 'restoran_id' => $restoran['id'], 'menuItems' => $menuItems, 'page' => 'menu' ]);?> </div> <div id="jq-menu-container-view"> <!-- menu view here --> </div> </div> </li> <?php } ?> <!-- // --> <!-- Отзывы ресторана --> <li class="restoran-content-tab"> <div class="box-desc-restoran" id="jq-all-restoran-comments-container"> <div> <?php App::$view->render('restoran/comments_fragment', [ 'comments' => $comments, 'total' => $totalComments, 'restoranId' => $restoran['id'] ]); ?> </div> <?php App::$view->render('restoran/comments_form', [ 'restoranId' => $restoran['id'] ]); ?> </div> </li> <!-- // --> <!-- панорамы --> <?php if ($restoran['registr'] == 1 && count($panorams) > 0) { ?> <li class="restoran-content-tab"> <div class="box-desc-restoran"> <?php foreach ($panorams as $panoram) { ?> <object type="application/x-shockwave-flash" id="flashcontent1" name="flashcontent1" align="middle" data="<?=App::getStaticDomain();?>/<?=$panoram['file'];?>" width="640" height="480" style="visibility: visible;"> <param name="quality" value="high"> <param name="play" value="true"> <param name="wmode" value="window"> <param name="allowFullScreen" value="true"> <param name="base" value="/"> <param name="allowscriptaccess" value="sameDomain"> <param name="bgcolor" value="#ffffff"> </object> <?php } ?> </div> </li> <?php } ?> <!-- // --> <!-- фотографии --> <?php if ($restoran['registr'] == 1 && count($photos) > 0) { ?> <li class="restoran-content-tab"> <div class="box-desc-restoran"> <!-- <div class="uk-flex uk-flex-space-between uk-flex-wrap-middle"> <h2 class="uk-margin-large uk-margin-large-top">Фотографии ресторана</h2> <!--<div class="uk-margin-large uk-margin-large-top"><a href="#" class="blue">Все фотографии</a></div> </div> --> <div class="photos uk-grid"> <!-- фото без альбома --> <div class="restoran-photos-no-album uk-width-1-1 uk-flex uk-flex-wrap"> <?php foreach ($photos as $photo) { ?> <?php if ($photo['album'] > 0) { continue; } ?> <div class="uk-width-large-1-4 uk-width-medium-1-4 uk-width-amall-1-1 uk-margin-bottom plr-10"> <a class="fancybox-buttons" data-fancybox-group="button" href="<?=App::getStaticDomain();?>/<?=str_replace('_sm', '', $photo['img_index']);?>" data-title=""> <div style="background: url('<?=App::getStaticDomain();?>/<?=$photo['img_index'];?>'); background-position: center center; " class="view-restoran-fotogal-img"> </div> <!-- <img src="<?=App::getStaticDomain();?>/<?=str_replace('_sm', '', $photo['img_index']);?>"> --> </a> </div> <?php } ?> </div> <!-- // --> <!-- эти фотографии делятся по альбомам--> <div class="restoran-photos-with-albums uk-width-1-1"> <?php foreach ($albums as $album) { ?> <h4 class="bold"><?=$album['name'];?></h4> <div class="uk-width-1-1 uk-flex uk-flex-wrap"> <?php foreach ($photos as $photo) { ?> <?php if ($album['id'] != $photo['album']) { continue; } ?> <div class="uk-width-large-1-4 uk-width-medium-1-4 uk-width-amall-1-1 uk-margin-bottom plr-10"> <a class="fancybox-buttons" data-fancybox-group="button" href="<?=App::getStaticDomain();?>/<?=str_replace('_sm', '', $photo['img_index']);?>" data-title=""> <div style="background: url('<?=App::getStaticDomain();?>/<?= $photo['img_index'];?>'); background-position: center center;" class="view-restoran-fotogal-img"></div> </a> </div> <?php } ?> </div> <?php } ?> </div> <!-- // --> </div> </div> </li> <?php } ?> <!-- // --> <!-- новости --> <?php if ($restoran['registr'] == 1 && count($news) > 0) { ?> <li class="restoran-content-tab"> <!-- этот блок просмотра новости --> <div class="jq-restoran-view-news" style="display:none"> <div class="jq-restoran-views-news-container"></div> <div> <a href="#" class="jq-restoran-view-news-back">Назад</a> </div> </div> <!-- // --> <div class="box-desc-restoran jq-restoran-news-list"> <!--<h2 class="uk-margin-large uk-margin-large-top">Новости ресторана</h2>--> <div class="uk-grid"> <?php foreach ($news as $newItem) { ?> <div class="uk-flex-column uk-width-large-1-3 uk-width-medium-1-3 uk-width-amall-1-4 uk-margin-bottom"> <time class="gray-time"><?=\app\core\helpers\RuDate::getDate($newItem['data']);?></time> <div class="anons-news-restoran"> <a href="/restoran/news/<?=$restoran['restoran_url'];?>/<?=$newItem['news_url'];?>.html" target="_blank" class="first-word-upper"> <?=$newItem['news_header'];?> </a> </div> </div> <?php } ?> </div> <!-- <div> <a href="#" class="blue">Все новости о ресторане</a> </div> --> </div> </li> <?php } ?> <!-- // --> <!-- видео --> <?php if ($restoran['registr'] == 1 && count($videos) > 0) { ?> <li class="restoran-content-tab"> <div class="box-desc-restoran uk-flex uk-flex-wrap"> <?php foreach ($videos as $video) { ?> <a class="view-video uk-width-1-6 uk-margin-right uk-margin-bottom" data-fancybox-group="button" href="<?=App::getStaticDomain();?>/user_foto/restoran/video/flv/<?=$video['converted_file'];?>"> <img src="<?=App::getStaticDomain();?>/user_foto/restoran/video/screenshot/<?=mb_substr($video['converted_file'], 0, mb_strpos($video['converted_file'], '.'));?>_sm.jpg" alt="" width="100%"/> </a> <?php } ?> </div> </li> <?php } ?> <!-- // --> </ul> <div id="tac-1"> <!-- text --> </div> <!-- КОНЕЦ TABs restoran--> </div><!--Конец левой колонки --> <div class="uk-width-xlarge-1-5 uk-width-large-1-3 uk-width-medium-1-1 uk-width-small-1-1"> <div class="top_banner"> <?php App::$banner->show('otdyh', 3, "rand"); ?> </div> <div class="uk-margin-top"> <?=\app\core\widgets\WidgetFactory::run('LastRestoranComments');?> </div> </div> </div> </div> <div id="video-modal" class="uk-modal"> <div class="uk-modal-dialog uk-video-modal-dialog"> <a class="uk-modal-close uk-close"></a> <div id="video-block"></div> </div> </div> <div class="uk-modal" id="jq-restoran-rating-modal"> <div class="uk-modal-dialog"> <div class="uk-modal-header uk-text-center"> Оценить ресторан </div> <div class="uk-padding uk-text-center"> <button type="button" class="uk-button btn-gray restoran-vote-handler" data-ball="1" data-restoran-id="<?=$restoran['id'];?>">1</button> <button type="button" class="uk-button btn-gray restoran-vote-handler" data-ball="2" data-restoran-id="<?=$restoran['id'];?>">2</button> <button type="button" class="uk-button btn-gray restoran-vote-handler" data-ball="3" data-restoran-id="<?=$restoran['id'];?>">3</button> <button type="button" class="uk-button btn-gray restoran-vote-handler" data-ball="4" data-restoran-id="<?=$restoran['id'];?>">4</button> <button type="button" class="uk-button btn-gray restoran-vote-handler" data-ball="5" data-restoran-id="<?=$restoran['id'];?>">5</button> </div> </div> </div> <script type="text/javascript"> $(function() { var videoModal = UIkit.modal("#video-modal"); // видео $('.view-video').on('click', function(e) { e.preventDefault(); var $scope = $(this); $('#video-block').html('<a href="' + $scope.attr('href') + '" class="player">'); videoModal.show(); $("a.player").flowplayer("/library/swf/flowplayer.swf").load(); }); $('object').on('click', function(e) { alert('click'); e.preventDefault(); e.stopPropagation() }); RestoranApp.initApp(); }); </script>
/template/2.0/restoran/
Имя
Дата
Размер
..
2026-05-25
comments_form.php
2026-05-25
4 кб.
comments_form.php~
2019-01-18
4 кб.
comments_fragment.php
2019-01-22
3 кб.
filters.php
2019-01-18
14 кб.
index.php
2019-01-23
3 кб.
restoran_comments.php
2016-12-14
521 байт
restoran_menu.php
2017-07-20
3 кб.
restoran_news.php
2016-12-14
445 байт
restoran_news_item.php
2017-08-15
4 кб.
restoran_photos.php
2016-12-15
225 байт
sidebar.php
2020-10-14
796 байт
sidebar_news.php
2020-02-19
372 байт
view.php
2022-03-14
30 кб.
view.php~
2021-05-04
30 кб.
view_news.php
2017-08-15
453 байт
/template/2.0/restoran
Загрузить файлы
Файл 1
Файл 2
Файл 3