+ Error on line 116
<a class="country" href="/tour/list/<?php print($this->data['parent-category']->id . '/' . $this->data['parent-category']->name); ?>/<?php print($country->id); ?>"><?php print($country->title); ?></a>
<?php include "header.php"; ?>
<section class="page tour-page">
<div class="tour-page__slider">
<?php if (!empty($this->data['image-list'])) { ?>
<?php foreach($this->data['image-list'] as $image) { ?>
<div class="tour-page__slider-image" style="background-image: url(/media/tour_image/<?php print($image->img); ?>);"></div>
<?php } ?>
<?php } ?>
<div class="tour-page__title">
<div class="tour-page__title-content">
<h1><?php print($this->data['tour']->title); ?></h1>
</div>
</div>
<div class="mobile-request-btn" onclick="openPopup('popup-request', '<?php print($this->data['tour']->route . ' (код: ' . $this->data['tour']->id . ')'); ?>');">Оставить заявку</div>
</div>
<div class="tour-page__info">
<div class="tour-page__info-content">
<div class="column1">
<?php if (!empty($this->data['tour']->route)) { ?>
<div class="tour-page__info-route">
<i class="fa fa-map-marker"></i>
<div class="text">
<?php print($this->data['tour']->route); ?>
</div>
</div>
<?php }?>
<?php if (!empty($this->data['tour']->info)) { ?>
<div class="tour-page__info-description">
<i class="fa fa-clock-o"></i>
<div class="text">
<?php print($this->data['tour']->info); ?>
</div>
</div>
<?php }?>
<?php if ($this->data['tour']->level != 0) { ?>
<div class="tour-page__info-description">
<i class="fa fa-compass"></i>
<div class="text">
Сложность:
<?php
switch ($this->data['tour']->level) {
case 1:
echo "низкая";
break;
case 2:
echo "средняя";
break;
case 3:
echo "высокая";
break;
}
?>
</div>
</div>
<?php }?>
<?php if ($this->data['tour']->status == 0) { ?>
<noindex>
<div class="error-hint">В данный момент тур не актуален</div>
</noindex>
<?php } ?>
</div>
<div class="column2">
<?php if ($this->data['tour']->price != 0) { ?>
<div class="tour-page__price">
<?php if ($this->data['tour']->price_discount < $this->data['tour']->price) { ?>
<div class="crossed"><?php print(number_format($this->data['tour']->price_byn, 0, ' ', ' ') . '.00 р.'); ?></div>
<div class="byn red">
<?php print(number_format($this->data['tour']->price2_byn, 0, ' ', ' ') . '.00 р.'); ?>
</div>
<?php } else { ?>
<div class="byn">
<?php print(number_format($this->data['tour']->price_byn, 0, ' ', ' ') . '.00 р.'); ?>
</div>
<?php } ?>
</div>
<?php } else { ?>
<div class="tour-page__request-label">
По запросу
</div>
<?php } ?>
</div>
</div>
</div>
<div class="tour-page__content">
<div class="column1">
<?php if (!empty($this->data['tour']->content)) { ?>
<article class="page__article" itemprop="description">
<?php print($this->data['tour']->content); ?>
</article>
<?php } ?>
<div class="social-likes" data-counters="no">
<div class="facebook" title="Поделиться ссылкой на Фейсбуке">Facebook</div>
<div class="twitter" title="Поделиться ссылкой в Твиттере">Twitter</div>
<div class="vkontakte" title="Поделиться ссылкой во Вконтакте">Вконтакте</div>
<div class="odnoklassniki" title="Поделиться ссылкой в Одноклассниках">Одноклассники</div>
</div>
<?php if (!empty($this->data['tour']->description)) { ?>
<div class="tour-page__additional-info">
<div class="title">
Дополнительная информация
</div>
<article>
<?php print($this->data['tour']->description); ?>
</article>
</div>
<?php } ?>
<?php if (!empty($this->data['country-list'])) { ?>
<div class="tour-countries">
<div class="title">Страны тура</div>
<?php foreach ($this->data['country-list'] as $country) { ?>
<a class="country" href="/tour/list/
<?php print($this->data['parent-category']->id . '/' . $this->data['parent-category']->name); ?>/
<?php print($country->id); ?>">
<?php print($country->title); ?></a>
<?php } ?>
</div>
<?php } ?>
<?php if (!empty($data['linked-tours'])) { ?>
<div class="linked-tours">
<div class="linked-tours__title">Похожие предложения</div>
<div class="linked-tours__items">
<?php foreach($data['linked-tours'] as $tour) { ?>
<a class="linked-tours__tour" href="/<?php (!empty($data['menu']) && $data['menu'] == 'malta') ? print('malta') : print('tour'); ?>/<?php print($tour->id . '/' . $tour->name); ?>">
<div class="linked-tours__tour-image" style="background-image: url(/media/<?php (!empty($data['menu']) && $data['menu'] == 'malta') ? print('malta') : print('tour'); ?>/<?php print($tour->img); ?>);"></div>
<div class="linked-tours__tour-title"><?php print($tour->title); ?></div>
<?php if ($tour->price != 0 ) { ?>
<div class="linked-tours__tour-price">
<?php if ($tour->price_discount < $tour->price) { ?>
<div class="crossed"><?php print(number_format($tour->price_byn, 0, ' ', ' ') . '.00 р.'); ?></div>
<div class="byn red"><?php print(number_format($tour->price2_byn, 0, ' ', ' ') . '.00 р.'); ?></div>
<?php } else { ?>
<div class="byn"><?php print(number_format($tour->price_byn, 0, ' ', ' ') . '.00 р.'); ?></div>
<?php }?>
</div>
<?php } ?>
</a>
<?php } ?>
</div>
</div>
<?php } ?>
<?php if (!empty($data['reviews'])) { ?>
<div class="tour-reviews">
<div class="tour-reviews__title">Отзывы о туре</div>
<?php foreach($data['reviews'] as $review) { ?>
<section class="tour-reviews__item">
<header class="tour-reviews__item-author">
<div class="avatar" style="background-image: url(<?php !empty($review->thumb) ? print('/media/review/' . $review->thumb) : print('/global/img/user-icon.png'); ?>);"></div>
<div class="content">
<div class="name"><?php print($review->name); ?></div>
<div class="date"><?php print(date('d.m.Y', $review->created)); ?></div>
</div>
</header>
<article class="tour-reviews__item-text">
<?php print($review->content); ?>
</article>
</section>
<?php } ?>
</div>
<?php } ?>
</div>
<div class="column2">
<div class="tour-fixed-info">
<div class="print-tour-btn" onclick='window.print();'>
<i class="fa fa-print"></i>Версия для печати
</div>
<?php if ($this->data['show-date-list']) { ?>
<div class="tour-page__dates">
<div class="title">
<i class="fa fa-calendar"></i>
<span>
Даты заездов
</span>
</div>
<?php foreach($data['tour-dates'] as $item) { ?>
<div class="month">
<div class="label"><?php print($item['month']); ?>:</div>
<div class="date"><?php print($item['dates']); ?></div>
</div>
<?php } ?>
</div>
<?php } ?>
<div class="button" onclick="openPopup('popup-request', '<?php print($this->data['tour']->route . ' (код: ' . $this->data['tour']->id . ')'); ?>');">Оставить заявку</div>
</div>
</div>
</div>
</section>
<script src="/global/js/social-likes.min.js" async></script>
<script>
var repeatSlideshow;
var timeout = 7000;
var $images;
var $controlItem;
var tourPageInfoHeight;
var tourPageSliderHeight;
function slideshow(num) {
clearTimeout(repeatSlideshow);
$images.removeClass('active');
$($images[num]).addClass('active');
$('.tour-page__slider-controls li').removeClass('active');
$($controlItem[num]).addClass('active');
num++;
(num == $images.length) ? num = 0 : 0;
repeatSlideshow = setTimeout('slideshow('+ num +')', timeout);
}
$(document).ready(function(){
$images = $('.tour-page__slider-image');
$controlItem = $('.tour-page__slider-controls li');
tourPageInfoHeight = $('.tour-page__info').outerHeight();
tourPageSliderHeight = $('.tour-page__slider').outerHeight();
$('.tour-page__slider-image:first').addClass('active');
$('.tour-page__slider-controls li:first').addClass('active');
if ($images.length > 1) {
slideshow(0);
}
$('.tour-page__slider-controls li').on('click', function(){
var id = parseInt($(this).attr('id'));
slideshow(id);
});
// Handle hidden paragraph click
$('.hidden-paragraph-link').on('click', function() {
$(this).next('.hidden-paragraph').addClass('active');
$(this).hide();
});
});
$(window).scroll(function(){
var windowScrollTop = $(this).scrollTop();
if (windowScrollTop > (tourPageInfoHeight + tourPageSliderHeight)) {
$('.tour-fixed-info').addClass('fixed');
} else {
$('.tour-fixed-info').removeClass('fixed');
}
});
</script>
<?php include "footer.php"; ?>
* Stack Trace...
- /home/user2057277/www/trawor.by/index.php(37) calling run()
- /home/user2057277/www/trawor.by/dooframework/app/DooWebApp.php(34) calling routeTo()
- /home/user2057277/www/trawor.by/dooframework/app/DooWebApp.php(114) calling tour()
- /home/user2057277/www/trawor.by/protected/controller/public/TourController.php(633) calling renderc()
- /home/user2057277/www/trawor.by/dooframework/controller/DooController.php(233) calling renderc()
- /home/user2057277/www/trawor.by/dooframework/view/DooView.php(199) calling include()
object(DooConfig)#1 (37) {
["AUTOLOAD"] => NULL
["SITE_PATH"] => string(32) "/home/user2057277/www/trawor.by/"
["PROTECTED_FOLDER"] => string(10) "protected/"
["BASE_PATH"] => string(45) "/home/user2057277/www/trawor.by/dooframework/"
["LOG_PATH"] => NULL
["APP_URL"] => string(18) "https://trawor.by/"
["SUBFOLDER"] => string(1) "/"
["APP_MODE"] => string(4) "prod"
["AUTOROUTE"] => bool(false)
["DEBUG_ENABLED"] => bool(true)
["ERROR_404_DOCUMENT"] => NULL
["ERROR_404_ROUTE"] => string(6) "/error"
["CACHE_PATH"] => NULL
["AUTO_VIEW_RENDER_PATH"] => string(15) "/tour/:id/:name"
["MEMCACHE"] => NULL
["TEMPLATE_ENGINE"] => string(7) "DooView"
["TEMPLATE_SHOW_COMMENT"] => NULL
["TEMPLATE_ALLOW_PHP"] => NULL
["TEMPLATE_COMPILE_ALWAYS"] => NULL
["TEMPLATE_GLOBAL_TAGS"] => array(9) {
[0] => string(5) "upper"
[1] => string(7) "tofloat"
[2] => string(16) "sample_with_args"
[3] => string(5) "debug"
[4] => string(3) "url"
[5] => string(4) "url2"
[6] => string(13) "function_deny"
[7] => string(5) "isset"
[8] => string(5) "empty"
}
["MODULES"] => NULL
["APP_NAMESPACE_ID"] => NULL
["VERSION"] => string(5) "3.1.1"
["PROJECT_TITLE"] => string(6) "Trawor"
["ADMIN_EMAIL"] => string(14) "info@trawor.by"
["ADMIN_NAME"] => string(14) "Команда"
["LANGUAGE"] => string(2) "ru"
["HOST_LANGUAGE"] => array(2) {
["localhost"] => string(2) "ru"
["domain"] => string(8) "language"
}
["COOKIE_EXPIRE"] => int(1732767865)
["IMAGE_TYPE"] => string(3) "jpg"
["IMAGE_QUALITY"] => int(80)
["IMAGE_SIZE"] => array(3) {
["small"] => int(200)
["medium"] => int(800)
["large"] => int(1600)
}
["NOT_AUTH"] => string(15) "/not-authorized"
["PROFILE_HOMEPAGE"] => string(8) "/profile"
["INCREASE_COEFFICIENT"] => float(0.02)
["sessionCacheType"] => string(3) "apc"
["VIAMARIS_UID"] => string(11) "8D8dd6Gzy5s"
}
$_SESSION Variables
array(2) {
["language"] => string(2) "ru"
["contact"] => string(1097) "O:7:"Contact":20:{s:2:"id";s:1:"1";s:4:"name";s:8:"contacts";s:5:"title";s:29:"Контакты - Минск";s:11:"description";s:25:"Наши контакты";s:5:"phone";s:17:"+375 44 733-90-90";s:3:"fax";s:0:"";s:6:"mobile";s:17:"+375 29 733-90-90";s:8:"schedule";s:88:"Пн.- Пт. : 10.00-19.00 (прием по предварительной записи)";s:5:"skype";s:10:"trawor.int";s:5:"email";s:14:"info@trawor.by";s:7:"country";s:37:"Республика Беларусь";s:4:"city";s:10:"Минск";s:7:"address";s:77:"пр-т. Независимости 49, Олимп, офис 420 (4 этаж)";s:6:"coords";s:20:"53.917061, 27.584855";s:7:"updated";s:10:"1715796719";s:4:"lang";s:2:"ru";s:6:"status";s:1:"1";s:6:"_table";s:7:"contact";s:11:"_primarykey";s:2:"id";s:7:"_fields";a:17:{i:0;s:2:"id";i:1;s:4:"name";i:2;s:5:"title";i:3;s:11:"description";i:4;s:5:"phone";i:5;s:3:"fax";i:6;s:6:"mobile";i:7;s:8:"schedule";i:8;s:5:"skype";i:9;s:5:"email";i:10;s:7:"country";i:11;s:4:"city";i:12;s:7:"address";i:13;s:6:"coords";i:14;s:7:"updated";i:15;s:4:"lang";i:16;s:6:"status";}}"
}
$_COOKIE Variables
array(0) {
}