if (IS_AJAX) : ?>
XsView::xsLoadPartial($route . '/index'); ?>
else : ?>
XsView::xsLoadPartial('partials/_head'); ?>
XsView::xsLoadPartial('partials/_announcement'); ?>
if ($is['homepage'] || $is['catalog'] || $is['articles'] || $route == 'search') : ?>
endif; ?>
if ($is['homepage']) : ?>
XsView::xsLoadPartial($route . '/index'); ?>
else : ?>
XsView::xsLoadPartial($route . '/index'); ?>
endif; ?>
if (!$is['homepage'] && $route != 'cart') : ?>
Proč nakupit u nás
XsView::xsLoadPartial('partials/_advantages') ?>
endif; ?>
if (!empty($_SESSION['message'])) : ?>
foreach ($_SESSION['message'] as $message) : ?>
XsView::xsLoadPartial('partials/_popup-message', ['message' => $message]) ?>
endforeach; ?>
unset($_SESSION['message']); ?>
endif; ?>
if ((!isset($_COOKIE['consent']) || $_COOKIE['consent'] != 'v2') && isset($page_data->data) && $page_data->data['rid'] != SP_ID_CONSENT) : ?>
XsView::xsLoadPartial('partials/consent/_bar') ?>
endif ?>
XsView::xsLoadPartial('partials/_pixels') ?>
if (USE_DATA_LAYER) : ?>
XsView::xsLoadPartial('partials/_data-layer') ?>
endif; ?>
if (SMART_EMAILING_GUID) : ?>
$event_data = [
'url' => xsCroppedLink(true, null, xsUrl(), false),
'visit_type' => 'home',
];
?>
endif ?>
if (GTM_ID) : ?>
endif; ?>
if (SQL_QUERY_LOG && !empty($_SESSION['debug']['log']['sql_query'])) : ?>
$total_time = 0;
$i = 0;
?>
foreach ($_SESSION['debug']['log']['sql_query'] as $query) : ?>
++$i;
?>
. |
|
0 |
$total_time += round($query['time'], 5);
?>
endforeach; ?>
Celkem: 0s |
unset($_SESSION['debug']['log']['sql_query']);
$_SESSION['server_timing_api']['db'] = $total_time;
?>
endif; ?>
endif; ?>