<?php /* Smarty version 3.1.29, created on 2024-03-01 15:08:05 from "/srv/www/www.cadoro.it/src/templates/admin-products-categories.tmpl" */ if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( 'has_nocache_code' => false, 'version' => '3.1.29', 'unifunc' => 'content_65e1e145d5aa35_75773533', 'file_dependency' => array ( '99e74d0762f8ad7a259a76c41772323439d86f6b' => array ( 0 => '/srv/www/www.cadoro.it/src/templates/admin-products-categories.tmpl', 1 => 1708527642, 2 => 'file', ), ), 'includes' => array ( 'file:layout-admin.tmpl' => 1, 'file:admin-pagination.tmpl' => 1, ), ),false)) { function content_65e1e145d5aa35_75773533 ($_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_32942050765e1e145d44f59_33078740', 1 => false, 3 => 0, 2 => 0, )); ?> <?php $_smarty_tpl->ext->_inheritance->processBlock($_smarty_tpl, 0, "content", array ( 0 => 'block_49670691565e1e145d46af4_32251004', 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-products-categories.tmpl */ function block_32942050765e1e145d44f59_33078740($_smarty_tpl, $_blockParentStack) { ?> <div class="breadcrumbs"> <strong>Prodotti: Categorie</strong> </div> <?php } /* {/block 'breadcrumbs'} */ /* {block 'content'} file:admin-products-categories.tmpl */ function block_49670691565e1e145d46af4_32251004($_smarty_tpl, $_blockParentStack) { ?> <div class="sheet"> <div class="sheet-header"> <h1> Prodotti: Categorie <small>Gestione delle categorie della sezione products</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/products-categories/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>Pubblicazione</th> <th style="width: 180px;">Azioni</th> </tr> </thead> <tbody> <?php $_from = $_smarty_tpl->tpl_vars['categories']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $__foreach_category_0_saved_item = isset($_smarty_tpl->tpl_vars['category']) ? $_smarty_tpl->tpl_vars['category'] : false; $_smarty_tpl->tpl_vars['category'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['category']->_loop = false; foreach ($_from as $_smarty_tpl->tpl_vars['category']->value) { $_smarty_tpl->tpl_vars['category']->_loop = true; $__foreach_category_0_saved_local_item = $_smarty_tpl->tpl_vars['category']; ?> <tr> <td><a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?> /admin/products-categories/<?php echo $_smarty_tpl->tpl_vars['category']->value['id'];?> ">#<?php echo $_smarty_tpl->tpl_vars['category']->value['id'];?> </a></td> <td><a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?> /admin/products-categories/<?php echo $_smarty_tpl->tpl_vars['category']->value['id'];?> "><?php echo $_smarty_tpl->tpl_vars['category']->value['slug'];?> </a></td> <td><?php echo $_smarty_tpl->tpl_vars['category']->value['title'];?> </td> <td><?php echo $_smarty_tpl->tpl_vars['category']->value['lang'];?> </td> <td> <?php if ($_smarty_tpl->tpl_vars['category']->value['published']) {?> <span class="label label-success">pubblicato</span> <?php } else { ?> <span class="label label-default">non pubblicato</span> <?php }?> <?php if ($_smarty_tpl->tpl_vars['category']->value['published_datetime'] || $_smarty_tpl->tpl_vars['category']->value['published_datetime2']) {?> &mdash; <?php echo _ddt($_smarty_tpl->tpl_vars['category']->value['published_datetime']);?> / <?php echo _ddt($_smarty_tpl->tpl_vars['category']->value['published_datetime2']);?> <?php }?> </td> <td> <a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?> /admin/products-categories/<?php echo $_smarty_tpl->tpl_vars['category']->value['id'];?> /edit" class="btn btn-default btn-xs">MODIFICA</a> <a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?> /admin/products-categories/<?php echo $_smarty_tpl->tpl_vars['category']->value['id'];?> /delete" class="btn btn-default btn-xs btn-danger">ELIMINA</a> </td> </tr> <?php $_smarty_tpl->tpl_vars['category'] = $__foreach_category_0_saved_local_item; } if ($__foreach_category_0_saved_item) { $_smarty_tpl->tpl_vars['category'] = $__foreach_category_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'} */ }