File "169fb89aba16354c0499d743d14b498bdc183dec_0.file.cerca.tmpl.php"
Full Path: /srv/www/www.cadoro.it/src/templates_c/169fb89aba16354c0499d743d14b498bdc183dec_0.file.cerca.tmpl.php
File size: 3.28 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/* Smarty version 3.1.29, created on 2024-02-21 18:34:34
from "/srv/www/www.cadoro.it/src/templates/cerca.tmpl" */
if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
'has_nocache_code' => false,
'version' => '3.1.29',
'unifunc' => 'content_65d6342a625c14_52701346',
'file_dependency' =>
array (
'169fb89aba16354c0499d743d14b498bdc183dec' =>
array (
0 => '/srv/www/www.cadoro.it/src/templates/cerca.tmpl',
1 => 1708527642,
2 => 'file',
),
),
'includes' =>
array (
'file:layout-base.tmpl' => 1,
),
),false)) {
function content_65d6342a625c14_52701346 ($_smarty_tpl) {
$_smarty_tpl->ext->_inheritance->init($_smarty_tpl, true);
?>
<html>
<body>
<?php
$_smarty_tpl->ext->_inheritance->processBlock($_smarty_tpl, 0, "content", array (
0 => 'block_42046571065d6342a617480_90940809',
1 => false,
3 => 0,
2 => 0,
));
?>
</body>
</html>
<?php $_smarty_tpl->ext->_inheritance->endChild($_smarty_tpl);
$_smarty_tpl->smarty->ext->_subtemplate->render($_smarty_tpl, "file:layout-base.tmpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 2, false);
}
/* {block 'content'} file:cerca.tmpl */
function block_42046571065d6342a617480_90940809($_smarty_tpl, $_blockParentStack) {
?>
<form method="get" action="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/cerca" class="mt40">
<h5 class="text-center mb40">CERCA NEL SITO</h5>
<div class="row">
<div class="col-sm-10 offset1">
<input type="text" name="q" value="<?php echo _fr('q');?>
" class="form-control" autofocus>
</div>
<div class="col-sm-2">
<button type="submit" class="btn btn-default btn-block">CERCA</button>
</div>
</div>
</form>
<hr class="mt40">
<?php if (_request('q') && !$_smarty_tpl->tpl_vars['items']->value) {?>
<p class="mt30">
<?php echo _("Non sono stati trovati risultati.");?>
</p>
<?php } elseif (_request('q')) {?>
<ol class="list-unstyled mt30">
<?php
$_from = $_smarty_tpl->tpl_vars['items']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_item_0_saved_item = isset($_smarty_tpl->tpl_vars['item']) ? $_smarty_tpl->tpl_vars['item'] : false;
$_smarty_tpl->tpl_vars['item'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['item']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['item']->value) {
$_smarty_tpl->tpl_vars['item']->_loop = true;
$__foreach_item_0_saved_local_item = $_smarty_tpl->tpl_vars['item'];
?>
<li class="mb20">
<strong><a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/<?php echo ltrim($_smarty_tpl->tpl_vars['item']->value['url'],"/");?>
"><?php echo $_smarty_tpl->tpl_vars['item']->value['title'];?>
</a></strong>
<?php if ($_smarty_tpl->tpl_vars['item']->value['description']) {?>
<div class="mt0"><?php echo _tr(strip_tags($_smarty_tpl->tpl_vars['item']->value['description']),25,200);?>
</div>
<?php }?>
</li>
<?php
$_smarty_tpl->tpl_vars['item'] = $__foreach_item_0_saved_local_item;
}
if ($__foreach_item_0_saved_item) {
$_smarty_tpl->tpl_vars['item'] = $__foreach_item_0_saved_item;
}
?>
</ol>
<?php }?>
<?php
}
/* {/block 'content'} */
}