File "9440b1cec294048ba91721031a87fe9226649ac6_0.file.admin-redirects.tmpl.php"
Full Path: /srv/www/www.cadoro.it/src/templates_c/9440b1cec294048ba91721031a87fe9226649ac6_0.file.admin-redirects.tmpl.php
File size: 4.9 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/* Smarty version 3.1.29, created on 2024-03-11 10:32:41
from "/srv/www/www.cadoro.it/src/templates/admin-redirects.tmpl" */
if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
'has_nocache_code' => false,
'version' => '3.1.29',
'unifunc' => 'content_65eecfb9cda307_36493016',
'file_dependency' =>
array (
'9440b1cec294048ba91721031a87fe9226649ac6' =>
array (
0 => '/srv/www/www.cadoro.it/src/templates/admin-redirects.tmpl',
1 => 1708527642,
2 => 'file',
),
),
'includes' =>
array (
'file:layout-admin.tmpl' => 1,
'file:admin-pagination.tmpl' => 1,
),
),false)) {
function content_65eecfb9cda307_36493016 ($_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_184222222465eecfb9ca8b15_60606993',
1 => false,
3 => 0,
2 => 0,
));
?>
<?php
$_smarty_tpl->ext->_inheritance->processBlock($_smarty_tpl, 0, "content", array (
0 => 'block_180469239665eecfb9caad46_25335372',
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-redirects.tmpl */
function block_184222222465eecfb9ca8b15_60606993($_smarty_tpl, $_blockParentStack) {
?>
<div class="breadcrumbs">
<strong>Redirect</strong>
</div>
<?php
}
/* {/block 'breadcrumbs'} */
/* {block 'content'} file:admin-redirects.tmpl */
function block_180469239665eecfb9caad46_25335372($_smarty_tpl, $_blockParentStack) {
?>
<div class="sheet">
<div class="sheet-header">
<h1>
Redirect
<small>Gestione degli URL di redirezione</small>
</h1>
</div>
<div class="sheet-body">
<form method="get" action="" class="form-search well">
<input type="text" name="q" class="form-control searchquery" value="<?php echo _fr('q');?>
" data-behaviour="autofocus" autocomplete="off">
<button type="submit" class="btn btn-default">Cerca</button>
<a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/admin/redirects/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>Richiesta</th>
<th>Destinazione</th>
<th style="width: 180px;">Azioni</th>
</tr>
</thead>
<tbody>
<?php
$_from = $_smarty_tpl->tpl_vars['redirects']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_redirect_0_saved_item = isset($_smarty_tpl->tpl_vars['redirect']) ? $_smarty_tpl->tpl_vars['redirect'] : false;
$_smarty_tpl->tpl_vars['redirect'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['redirect']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['redirect']->value) {
$_smarty_tpl->tpl_vars['redirect']->_loop = true;
$__foreach_redirect_0_saved_local_item = $_smarty_tpl->tpl_vars['redirect'];
?>
<tr>
<td><a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/admin/redirects/<?php echo $_smarty_tpl->tpl_vars['redirect']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['redirect']->value['request_uri'];?>
</a></td>
<td><a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/admin/redirects/<?php echo $_smarty_tpl->tpl_vars['redirect']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['redirect']->value['redirect_uri'];?>
</a></td>
<td>
<a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/admin/redirects/<?php echo $_smarty_tpl->tpl_vars['redirect']->value['id'];?>
/edit" class="btn btn-default btn-xs">MODIFICA</a>
<a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/admin/redirects/<?php echo $_smarty_tpl->tpl_vars['redirect']->value['id'];?>
/delete" class="btn btn-default btn-xs btn-danger">ELIMINA</a>
</td>
</tr>
<?php
$_smarty_tpl->tpl_vars['redirect'] = $__foreach_redirect_0_saved_local_item;
}
if ($__foreach_redirect_0_saved_item) {
$_smarty_tpl->tpl_vars['redirect'] = $__foreach_redirect_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'} */
}