File "477caf5c15ec989d0965fed00776e0f6821c4d04_0.file.admin-blog-categories.tmpl.php"

Full Path: /srv/www/www.cadoro.it/src/templates_c/477caf5c15ec989d0965fed00776e0f6821c4d04_0.file.admin-blog-categories.tmpl.php
File size: 6.22 KB
MIME-type: text/x-php
Charset: utf-8

<?php
/* Smarty version 3.1.29, created on 2024-03-01 15:07:58
  from "/srv/www/www.cadoro.it/src/templates/admin-blog-categories.tmpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_65e1e13e139249_11624238',
  'file_dependency' => 
  array (
    '477caf5c15ec989d0965fed00776e0f6821c4d04' => 
    array (
      0 => '/srv/www/www.cadoro.it/src/templates/admin-blog-categories.tmpl',
      1 => 1708527642,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:layout-admin.tmpl' => 1,
    'file:admin-pagination.tmpl' => 1,
  ),
),false)) {
function content_65e1e13e139249_11624238 ($_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_212927268665e1e13e120e08_33476146',
  1 => false,
  3 => 0,
  2 => 0,
));
?>

    <?php 
$_smarty_tpl->ext->_inheritance->processBlock($_smarty_tpl, 0, "content", array (
  0 => 'block_93433608465e1e13e122898_83913338',
  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-blog-categories.tmpl */
function block_212927268665e1e13e120e08_33476146($_smarty_tpl, $_blockParentStack) {
?>

    <div class="breadcrumbs">
      <strong>Blog: Categorie</strong>
    </div>
    <?php
}
/* {/block 'breadcrumbs'} */
/* {block 'content'}  file:admin-blog-categories.tmpl */
function block_93433608465e1e13e122898_83913338($_smarty_tpl, $_blockParentStack) {
?>

    <div class="sheet">
      <div class="sheet-header">
        <h1>
          Blog: Categorie
          <small>Gestione delle categorie della sezione blog</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/blog-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>Categoria</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/blog-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/blog-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 _v($_smarty_tpl->tpl_vars['category']->value['category_id'],$_smarty_tpl->tpl_vars['BLOG_CATEGORIES']->value);?>
</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/blog-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/blog-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'} */
}