File "5dec83c6ccde20f81adefc884750993001cf4f8c_0.file.admin-promotions.tmpl.php"
Full Path: /srv/www/www.cadoro.it/src/templates_c/5dec83c6ccde20f81adefc884750993001cf4f8c_0.file.admin-promotions.tmpl.php
File size: 5.08 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/* Smarty version 3.1.29, created on 2024-04-03 14:37:35
from "/srv/www/www.cadoro.it/src/templates/admin-promotions.tmpl" */
if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
'has_nocache_code' => false,
'version' => '3.1.29',
'unifunc' => 'content_660d4d8f2f7a44_69006928',
'file_dependency' =>
array (
'5dec83c6ccde20f81adefc884750993001cf4f8c' =>
array (
0 => '/srv/www/www.cadoro.it/src/templates/admin-promotions.tmpl',
1 => 1708527642,
2 => 'file',
),
),
'includes' =>
array (
'file:layout-admin.tmpl' => 1,
'file:admin-pagination.tmpl' => 1,
),
),false)) {
function content_660d4d8f2f7a44_69006928 ($_smarty_tpl) {
$_smarty_tpl->ext->_inheritance->init($_smarty_tpl, true);
?>
<html>
<body>
<?php
$_smarty_tpl->ext->_inheritance->processBlock($_smarty_tpl, 0, "breadcrumbs", array (
0 => 'block_1532405242660d4d8f2e76c4_42662789',
1 => false,
3 => 0,
2 => 0,
));
?>
<?php
$_smarty_tpl->ext->_inheritance->processBlock($_smarty_tpl, 0, "content", array (
0 => 'block_820734016660d4d8f2e91f3_43455053',
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-admin.tmpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 2, false);
}
/* {block 'breadcrumbs'} file:admin-promotions.tmpl */
function block_1532405242660d4d8f2e76c4_42662789($_smarty_tpl, $_blockParentStack) {
?>
<div class="breadcrumbs">
<strong>Promozioni</strong>
</div>
<?php
}
/* {/block 'breadcrumbs'} */
/* {block 'content'} file:admin-promotions.tmpl */
function block_820734016660d4d8f2e91f3_43455053($_smarty_tpl, $_blockParentStack) {
?>
<div class="sheet">
<div class="sheet-header">
<h1>
Promozioni
<small>Gestione delle promozioni</small>
</h1>
</div>
<div class="sheet-body">
<form method="get" action="" class="form-search well">
<div class="row">
<div class="col-sm-12">
<input type="text" name="q" class="form-control searchquery" value="<?php echo _fr('q');?>
" data-behaviour="autofocus" autocomplete="off">
</div>
</div>
<button type="submit" class="btn btn-default">Cerca</button>
<a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/admin/promotions/add" class="btn btn-primary pull-right"><i class="glyphicon glyphicon-plus"></i> Nuovo elemento</a>
</form>
<div class="table-responsive">
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>ID</th>
<th>SLUG</th>
<th>Titolo</th>
<th>Lingua</th>
<th style="width: 180px;">Azioni</th>
</tr>
</thead>
<tbody>
<?php
$_from = $_smarty_tpl->tpl_vars['promotions']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_promotion_0_saved_item = isset($_smarty_tpl->tpl_vars['promotion']) ? $_smarty_tpl->tpl_vars['promotion'] : false;
$_smarty_tpl->tpl_vars['promotion'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['promotion']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['promotion']->value) {
$_smarty_tpl->tpl_vars['promotion']->_loop = true;
$__foreach_promotion_0_saved_local_item = $_smarty_tpl->tpl_vars['promotion'];
?>
<tr>
<td><a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/admin/promotions/<?php echo $_smarty_tpl->tpl_vars['promotion']->value['id'];?>
">#<?php echo $_smarty_tpl->tpl_vars['promotion']->value['id'];?>
</a></td>
<td><?php echo $_smarty_tpl->tpl_vars['promotion']->value['slug'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['promotion']->value['title'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['promotion']->value['lang'];?>
</td>
<td>
<a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/admin/promotions/<?php echo $_smarty_tpl->tpl_vars['promotion']->value['id'];?>
/edit" class="btn btn-default btn-xs">MODIFICA</a>
<a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/admin/promotions/<?php echo $_smarty_tpl->tpl_vars['promotion']->value['id'];?>
/delete" class="btn btn-default btn-xs btn-danger">ELIMINA</a>
</td>
</tr>
<?php
$_smarty_tpl->tpl_vars['promotion'] = $__foreach_promotion_0_saved_local_item;
}
if ($__foreach_promotion_0_saved_item) {
$_smarty_tpl->tpl_vars['promotion'] = $__foreach_promotion_0_saved_item;
}
?>
</tbody>
</table>
</div>
<?php $_smarty_tpl->smarty->ext->_subtemplate->render($_smarty_tpl, "file:admin-pagination.tmpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
</div>
</div>
<?php
}
/* {/block 'content'} */
}