74 lines
2.9 KiB
PHP
74 lines
2.9 KiB
PHP
<?php
|
|
/* Smarty version 3.1.30, created on 2026-05-15 18:51:59
|
|
from "C:\visual studio code\projekty\zurawik.pl\template\partial\Shared\BanerBox.tpl" */
|
|
|
|
/* @var Smarty_Internal_Template $_smarty_tpl */
|
|
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
|
'version' => '3.1.30',
|
|
'unifunc' => 'content_6a074f2f33b794_36361663',
|
|
'has_nocache_code' => false,
|
|
'file_dependency' =>
|
|
array (
|
|
'd9fe2d1e16928501c222f1ce9d20a785b926afbd' =>
|
|
array (
|
|
0 => 'C:\\visual studio code\\projekty\\zurawik.pl\\template\\partial\\Shared\\BanerBox.tpl',
|
|
1 => 1778862796,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'includes' =>
|
|
array (
|
|
),
|
|
),false)) {
|
|
function content_6a074f2f33b794_36361663 (Smarty_Internal_Template $_smarty_tpl) {
|
|
if (!is_callable('smarty_function_thumb')) require_once 'C:\\visual studio code\\projekty\\zurawik.pl\\core\\plugins\\Smarty\\function.thumb.php';
|
|
?>
|
|
<section id="slider" class="slider">
|
|
<div class="flexslider sliderCont">
|
|
<ul class="slides">
|
|
<?php
|
|
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['arrayToEditBaner']->value, 'objHomeElementBaner', false, 'keyHome');
|
|
if ($_from !== null) {
|
|
foreach ($_from as $_smarty_tpl->tpl_vars['keyHome']->value => $_smarty_tpl->tpl_vars['objHomeElementBaner']->value) {
|
|
?>
|
|
<?php if ($_smarty_tpl->tpl_vars['objHomeElementBaner']->value->GetPhotoUrl()) {?>
|
|
<li>
|
|
<div class="clearfix">
|
|
<?php if (isset($_smarty_tpl->tpl_vars['indexSG']->value)) {?>
|
|
<img src="<?php echo $_smarty_tpl->tpl_vars['objHomeElementBaner']->value->GetPhotoUrl();?>
|
|
" alt="" style="object-fit: cover; max-height: 940px;" />
|
|
<?php } else { ?>
|
|
<?php $_smarty_tpl->_assignInScope('imageSlider', $_smarty_tpl->tpl_vars['objHomeElementBaner']->value->GetPhotoPath());
|
|
?>
|
|
<?php echo smarty_function_thumb(array('file'=>$_smarty_tpl->tpl_vars['imageSlider']->value,'longside'=>false,'shortside'=>false,'width'=>"1200",'height'=>"350",'link'=>'false','crop'=>true),$_smarty_tpl);?>
|
|
|
|
<?php }?>
|
|
<div class="wrap">
|
|
<div class="desc-wrap">
|
|
<div class="desc" style="display: none;"><p style="opacity: 0; visibility: visible;"><?php echo $_smarty_tpl->tpl_vars['objHomeElementBaner']->value->GetDescription();?>
|
|
</p>
|
|
|
|
</div>
|
|
<h1> </h1>
|
|
<h3 style="opacity: 0; visibility: visible;"><?php echo $_smarty_tpl->tpl_vars['objHomeElementBaner']->value->GetName();?>
|
|
</h3>
|
|
<h2 style="opacity: 0; visibility: visible;"><?php echo $_smarty_tpl->tpl_vars['objHomeElementBaner']->value->GetDescription();?>
|
|
</h2>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<?php }?>
|
|
<?php
|
|
}
|
|
}
|
|
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
|
?>
|
|
|
|
|
|
</ul>
|
|
</div>
|
|
</section>
|
|
<?php }
|
|
}
|