Create New Item
type
File
Folder
name
Search file in folder and subfolders...
Are you sure want to rename?
/
src
/
templates_c
:
8bda47ff4608c282129160a69739df40f3f24252_0.file.admin-products-categories-edit.tmpl.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php /* Smarty version 3.1.29, created on 2024-03-01 15:10:52 from "/srv/www/www.cadoro.it/src/templates/admin-products-categories-edit.tmpl" */ if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( 'has_nocache_code' => false, 'version' => '3.1.29', 'unifunc' => 'content_65e1e1ec4dbe47_23463258', 'file_dependency' => array ( '8bda47ff4608c282129160a69739df40f3f24252' => array ( 0 => '/srv/www/www.cadoro.it/src/templates/admin-products-categories-edit.tmpl', 1 => 1708527642, 2 => 'file', ), ), 'includes' => array ( 'file:layout-admin.tmpl' => 1, ), ),false)) { function content_65e1e1ec4dbe47_23463258 ($_smarty_tpl) { if (!is_callable('smarty_function_html_options')) require_once '/srv/www/www.cadoro.it/src/vendor/smarty/smarty/libs/plugins/function.html_options.php'; $_smarty_tpl->ext->_inheritance->init($_smarty_tpl, true); ?> <html> <body> <?php $_smarty_tpl->ext->_inheritance->processBlock($_smarty_tpl, 0, "breadcrumbs", array ( 0 => 'block_48950437065e1e1ec4925e3_07839236', 1 => false, 3 => 0, 2 => 0, )); ?> <?php $_smarty_tpl->ext->_inheritance->processBlock($_smarty_tpl, 0, "content", array ( 0 => 'block_19384433365e1e1ec4953e9_91177401', 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-edit.tmpl */ function block_48950437065e1e1ec4925e3_07839236($_smarty_tpl, $_blockParentStack) { ?> <div class="breadcrumbs"> <a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?> /admin/products-categories">Prodotti: Categorie</a> <span class="divider">»</span> <strong><?php echo $_smarty_tpl->tpl_vars['category']->value['slug'];?> </strong> </div> <?php } /* {/block 'breadcrumbs'} */ /* {block 'content'} file:admin-products-categories-edit.tmpl */ function block_19384433365e1e1ec4953e9_91177401($_smarty_tpl, $_blockParentStack) { ?> <div class="sheet"> <div class="sheet-header"> <h1> Modifica categoria <small><?php echo $_smarty_tpl->tpl_vars['category']->value['slug'];?> </small> </h1> </div> <div class="sheet-body"> <?php if ($_smarty_tpl->tpl_vars['errors']->value) {?> <div class="alert alert-danger"> <strong>ATTENZIONE: si sono verificati degli errori, correggere prima di proseguire!</strong> </div> <?php }?> <form class="form-horizontal" method="post" action="" enctype="multipart/form-data"> <fieldset> <legend>Informazioni di base</legend> <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['lang'])) {?> error<?php }?>"> <label class="control-label col-md-3" for="lang">Lingua</label> <div class="controls col-md-9"> <select name="lang" class="form-control"> <option value=""></option> <?php echo smarty_function_html_options(array('options'=>$_smarty_tpl->tpl_vars['LANGUAGES']->value,'selected'=>_f('lang',$_smarty_tpl->tpl_vars['category']->value)),$_smarty_tpl);?> </select> <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['lang'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?> </div> </div> <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['slug'])) {?> error<?php }?>"> <label class="control-label col-md-3" for="slug">SLUG</label> <div class="controls col-md-9"> <input type="text" class="form-control" id="slug" name="slug" value="<?php echo _f('slug',$_smarty_tpl->tpl_vars['category']->value);?> "> <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['slug'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?> </div> </div> <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['title'])) {?> error<?php }?>"> <label class="control-label col-md-3" for="title">Titolo</label> <div class="controls col-md-9"> <input type="text" class="form-control" id="title" name="title" value="<?php echo _f('title',$_smarty_tpl->tpl_vars['category']->value);?> "> <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['title'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?> </div> </div> <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['image_list'])) {?> error<?php }?>"> <label class="control-label col-md-3" for="image_list">Immagine elenco</label> <div class="controls col-md-9"> <input type="file" class="form-control" id="image_list" name="image_list" value=""> <?php if (isset($_smarty_tpl->tpl_vars['category']->value['image_list']) && $_smarty_tpl->tpl_vars['category']->value['image_list']) {?> <p class="mt20"> <input type="hidden" name="image_list" value="<?php echo $_smarty_tpl->tpl_vars['category']->value['image_list'];?> "> <img src="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?> /assets/<?php echo $_smarty_tpl->tpl_vars['category']->value['image_list'];?> " alt="<?php echo $_smarty_tpl->tpl_vars['category']->value['name'];?> " class="img-responsive img-editable" id="img_image_list"> </p> <?php }?> <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['image_list'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?> </div> </div> <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['image_cover'])) {?> error<?php }?>"> <label class="control-label col-md-3" for="image_cover">Immagine principale</label> <div class="controls col-md-9"> <input type="file" class="form-control" id="image_cover" name="image_cover" value=""> <?php if (isset($_smarty_tpl->tpl_vars['category']->value['image_cover']) && $_smarty_tpl->tpl_vars['category']->value['image_cover']) {?> <p class="mt20"> <input type="hidden" name="image_cover" value="<?php echo $_smarty_tpl->tpl_vars['category']->value['image_cover'];?> "> <img src="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?> /assets/<?php echo $_smarty_tpl->tpl_vars['category']->value['image_cover'];?> " alt="<?php echo $_smarty_tpl->tpl_vars['category']->value['name'];?> " class="img-responsive img-editable" id="img_image_cover"> </p> <?php }?> <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['image_cover'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?> </div> </div> <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['description'])) {?> error<?php }?>"> <label class="control-label col-md-3" for="description">Descrizione</label> <div class="controls col-md-9"> <textarea class="form-control textarea-large textarea-monospace" id="description" name="description" rows="10"><?php echo _f('description',$_smarty_tpl->tpl_vars['category']->value);?> </textarea> <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['description'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?> </div> </div> </fieldset> <fieldset class="mt30"> <legend>Impostazioni di pubblicazione</legend> <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['published'])) {?> error<?php }?>"> <label class="control-label col-md-3" for="published">Pubblicato</label> <div class="controls col-md-9"> <div class="checkbox"> <label> <input type="checkbox" name="published" value="1"<?php if (_f('published',$_smarty_tpl->tpl_vars['category']->value)) {?> checked="checked"<?php }?>> </label> </div> <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['published'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?> </div> </div> <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['published_datetime'])) {?> error<?php }?>"> <label class="control-label col-md-3" for="published_datetime">Data/Ora di pubblicazione</label> <div class="controls col-md-9"> <?php echo _datetime_combos("published_datetime",_d('published_datetime',$_smarty_tpl->tpl_vars['category']->value),-1,1);?> <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['published_datetime'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?> </div> </div> <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['published_datetime2'])) {?> error<?php }?>"> <label class="control-label col-md-3" for="published_datetime2">Data/Ora di fine pubblicazione</label> <div class="controls col-md-9"> <?php echo _datetime_combos("published_datetime2",_d('published_datetime2',$_smarty_tpl->tpl_vars['category']->value),-1,1);?> <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['published_datetime2'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?> </div> </div> </fieldset> <fieldset class="mt30"> <legend>Impostazioni SEO</legend> <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['seo_title'])) {?> error<?php }?>"> <label class="control-label col-md-3" for="seo_title">Titolo</label> <div class="controls col-md-9"> <input type="text" class="form-control" id="seo_title" name="seo_title" value="<?php echo _f('seo_title',$_smarty_tpl->tpl_vars['category']->value);?> "> <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['seo_title'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?> </div> </div> <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['seo_image'])) {?> error<?php }?>"> <label class="control-label col-md-3" for="seo_image">Immagine</label> <div class="controls col-md-9"> <input type="file" class="form-control" id="seo_image" name="seo_image" value=""> <?php if (isset($_smarty_tpl->tpl_vars['category']->value['seo_image']) && $_smarty_tpl->tpl_vars['category']->value['seo_image']) {?> <p class="mt20"> <input type="hidden" name="seo_image" value="<?php echo $_smarty_tpl->tpl_vars['category']->value['seo_image'];?> "> <img src="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?> /assets/<?php echo $_smarty_tpl->tpl_vars['category']->value['seo_image'];?> " alt="<?php echo $_smarty_tpl->tpl_vars['category']->value['name'];?> " class="img-responsive img-editable" id="img_seo_image"> </p> <?php }?> <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['seo_image'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?> </div> </div> <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['seo_description'])) {?> error<?php }?>"> <label class="control-label col-md-3" for="seo_description">Descrizione</label> <div class="controls col-md-9"> <input type="text" class="form-control" id="seo_description" name="seo_description" value="<?php echo _f('seo_description',$_smarty_tpl->tpl_vars['category']->value);?> "> <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['seo_description'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?> </div> </div> <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['seo_keywords'])) {?> error<?php }?>"> <label class="control-label col-md-3" for="seo_keywords">Keywords</label> <div class="controls col-md-9"> <input type="text" class="form-control" id="seo_keywords" name="seo_keywords" value="<?php echo _f('seo_keywords',$_smarty_tpl->tpl_vars['category']->value);?> "> <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['seo_keywords'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?> </div> </div> </fieldset> <div class="form-group form-actions"><div class="col-md-offset-3 col-md-9"> <button type="submit" class="btn btn-success">Salva le modifiche</button> <a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?> /admin/products-categories" class="btn btn-default">Annulla</a> </div></div> </form> </div> </div> <?php } /* {/block 'content'} */ }