Create New Item
type
File
Folder
name
Search file in folder and subfolders...
Are you sure want to rename?
/
src
/
templates_c
:
58f6b596fcc260ff1deabcb31c4959af792a7b82_0.file.admin-blog-articles-add.tmpl.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php /* Smarty version 3.1.29, created on 2024-03-18 15:33:28 from "/srv/www/www.cadoro.it/src/templates/admin-blog-articles-add.tmpl" */ if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( 'has_nocache_code' => false, 'version' => '3.1.29', 'unifunc' => 'content_65f850b8c8b284_82388791', 'file_dependency' => array ( '58f6b596fcc260ff1deabcb31c4959af792a7b82' => array ( 0 => '/srv/www/www.cadoro.it/src/templates/admin-blog-articles-add.tmpl', 1 => 1708527642, 2 => 'file', ), ), 'includes' => array ( 'file:layout-admin.tmpl' => 1, ), ),false)) { function content_65f850b8c8b284_82388791 ($_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_12097798365f850b8bc60a6_44497496', 1 => false, 3 => 0, 2 => 0, )); ?> <?php $_smarty_tpl->ext->_inheritance->processBlock($_smarty_tpl, 0, "content", array ( 0 => 'block_89809597765f850b8bc8bc3_75150639', 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-articles-add.tmpl */ function block_12097798365f850b8bc60a6_44497496($_smarty_tpl, $_blockParentStack) { ?> <div class="breadcrumbs"> <a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?> /admin/blog-articles">Blog: Articoli</a> <span class="divider">»</span> <strong>Aggiungi articolo</strong> </div> <?php } /* {/block 'breadcrumbs'} */ /* {block 'content'} file:admin-blog-articles-add.tmpl */ function block_89809597765f850b8bc8bc3_75150639($_smarty_tpl, $_blockParentStack) { ?> <div class="sheet"> <div class="sheet-header"> <h1> Aggiungi articolo </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['article']->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['category_id'])) {?> error<?php }?>"> <label class="control-label col-md-3" for="category_id">Categoria</label> <div class="controls col-md-9"> <select name="category_id" class="form-control"> <option value=""></option> <?php echo smarty_function_html_options(array('options'=>$_smarty_tpl->tpl_vars['categories']->value,'selected'=>_f('category_id',$_smarty_tpl->tpl_vars['article']->value)),$_smarty_tpl);?> </select> <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['category_id'])) {?><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['article']->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['article']->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['date'])) {?> error<?php }?>"> <label class="control-label col-md-3" for="date">Data</label> <div class="controls col-md-9"> <?php echo _date_combos('date',_fd('date',$_smarty_tpl->tpl_vars['article']->value),-1,10);?> <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['date'])) {?><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['article']->value['image_list']) && $_smarty_tpl->tpl_vars['article']->value['image_list']) {?> <p class="mt20"> <input type="hidden" name="image_list" value="<?php echo $_smarty_tpl->tpl_vars['article']->value['image_list'];?> "> <img src="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?> /assets/<?php echo $_smarty_tpl->tpl_vars['article']->value['image_list'];?> " alt="Immagine elenco" 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['article']->value['image_cover']) && $_smarty_tpl->tpl_vars['article']->value['image_cover']) {?> <p class="mt20"> <input type="hidden" name="image_cover" value="<?php echo $_smarty_tpl->tpl_vars['article']->value['image_cover'];?> "> <img src="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?> /assets/<?php echo $_smarty_tpl->tpl_vars['article']->value['image_cover'];?> " alt="Immagine principale" 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['image_app'])) {?> error<?php }?>"> <label class="control-label col-md-3" for="image_app">Immagine APP<br />(visibile nell'home dell'app)</label> <div class="controls col-md-9"> <input type="file" class="form-control" id="image_app" name="image_app" value=""> <?php if (isset($_smarty_tpl->tpl_vars['article']->value['image_app']) && $_smarty_tpl->tpl_vars['article']->value['image_app']) {?> <p class="mt20"> <input type="hidden" name="image_app" value="<?php echo $_smarty_tpl->tpl_vars['article']->value['image_app'];?> "> <img src="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?> /assets/<?php echo $_smarty_tpl->tpl_vars['article']->value['image_app'];?> " alt="<?php echo $_smarty_tpl->tpl_vars['article']->value['title'];?> " class="img-responsive img-editable" id="img_image_app"> </p> <?php }?> <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['image_app'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?> </div> </div> <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['video'])) {?> error<?php }?>"> <label class="control-label col-md-3" for="video">Video</label> <div class="controls col-md-9"> <input type="text" class="form-control" id="video" name="video" value="<?php echo _f('video',$_smarty_tpl->tpl_vars['article']->value);?> "> <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['video'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?> </div> </div> <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['author'])) {?> error<?php }?>"> <label class="control-label col-md-3" for="author">Autore</label> <div class="controls col-md-9"> <input type="text" class="form-control" id="author" name="author" value="<?php echo _f('author',$_smarty_tpl->tpl_vars['article']->value);?> "> <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['author'])) {?><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['article']->value);?> </textarea> <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['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['ingredients'])) {?> error<?php }?>"> <label class="control-label col-md-3" for="ingredients">Lista degli ingredienti</label> <div class="controls col-md-9"> <textarea class="form-control textarea-large textarea-monospace" id="ingredients" name="ingredients" rows="10"><?php echo _f('ingredients',$_smarty_tpl->tpl_vars['article']->value);?> </textarea> <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['ingredients'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?> </div> </div> <?php if (!$_smarty_tpl->tpl_vars['clone']->value) {?> <div class="form-group"> <label class="control-label col-md-3" for="content">Contenuto</label> <div class="controls col-md-9"> <p class="help-block"> <strong>NOTA:</strong> i contenuti dell'articolo possono essere inseriti dopo il primo salvataggio. </p> </div> </div> <?php } else { ?> <div class="form-group"> <label class="control-label col-md-3" for="content">Contenuto</label> <div class="controls col-md-9"> <div class="table-responsive"> <table class="table table-striped table-bordered"> <thead> <tr> <th style="width: 80px">Posizione</th> <th style="width: 80px">ID</th> <th>Nome</th> <th>Tipo contenuto</th> <th class="text-center" style="width: 140px;">Azioni</th> </tr> </thead> <tbody> <?php $_from = $_smarty_tpl->tpl_vars['article']->value->content(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $__foreach_c_0_saved_item = isset($_smarty_tpl->tpl_vars['c']) ? $_smarty_tpl->tpl_vars['c'] : false; $_smarty_tpl->tpl_vars['c'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['c']->_loop = false; foreach ($_from as $_smarty_tpl->tpl_vars['c']->value) { $_smarty_tpl->tpl_vars['c']->_loop = true; $__foreach_c_0_saved_local_item = $_smarty_tpl->tpl_vars['c']; ?> <tr> <td> <a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?> /admin/blog-articles/<?php echo $_smarty_tpl->tpl_vars['article']->value['id'];?> /<?php echo $_smarty_tpl->tpl_vars['c']->value['id'];?> ">#<?php echo $_smarty_tpl->tpl_vars['c']->value['sorting'];?> </a> </td> <td> <a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?> /admin/blog-articles/<?php echo $_smarty_tpl->tpl_vars['article']->value['id'];?> /<?php echo $_smarty_tpl->tpl_vars['c']->value['id'];?> "><?php echo $_smarty_tpl->tpl_vars['c']->value['id'];?> </a> </td> <td> <a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?> /admin/blog-articles/<?php echo $_smarty_tpl->tpl_vars['article']->value['id'];?> /<?php echo $_smarty_tpl->tpl_vars['c']->value['id'];?> "><?php echo (($tmp = @$_smarty_tpl->tpl_vars['c']->value['name'])===null||$tmp==='' ? "—" : $tmp);?> </a> </td> <td> <?php echo _v($_smarty_tpl->tpl_vars['c']->value['type'],$_smarty_tpl->tpl_vars['PAGE_CONTENT_TYPES']->value);?> </td> <td class="text-center"> <a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?> /admin/blog-articles/<?php echo $_smarty_tpl->tpl_vars['article']->value['id'];?> /<?php echo $_smarty_tpl->tpl_vars['c']->value['id'];?> " class="btn btn-xs btn-default">Modifica</a> <a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?> /admin/blog-articles/<?php echo $_smarty_tpl->tpl_vars['article']->value['id'];?> /<?php echo $_smarty_tpl->tpl_vars['c']->value['id'];?> ?delete=1" class="btn btn-xs btn-danger">Elimina</a> </td> </tr> <?php $_smarty_tpl->tpl_vars['c'] = $__foreach_c_0_saved_local_item; } if ($__foreach_c_0_saved_item) { $_smarty_tpl->tpl_vars['c'] = $__foreach_c_0_saved_item; } ?> </tbody> </table> <p class="mt20"> <a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?> /admin/blog-articles/<?php echo $_smarty_tpl->tpl_vars['article']->value['id'];?> /add" class="btn btn-primary"><i class="glyphicon glyphicon-plus"></i> Nuovo elemento</a> </p> </div> </div> </div> <?php }?> </fieldset> <fieldset class="mt30"> <legend>Contenuti correlati</legend> <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['related_1'])) {?> error<?php }?>"> <label class="control-label col-md-3" for="related_1">Articolo correlato 1</label> <div class="controls col-md-9"> <input type="text" class="form-control" id="related_1" name="related_1" value="<?php echo _f('related_1',$_smarty_tpl->tpl_vars['article']->value);?> "<?php if (_request('delete')) {?> readonly<?php }?>> <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['related_1'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?> <p class="help-block"> Inserire l'identificativo numerico (es. 1) dell'articolo da correlare. </p> </div> </div> <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['related_2'])) {?> error<?php }?>"> <label class="control-label col-md-3" for="related_2">Articolo correlato 2</label> <div class="controls col-md-9"> <input type="text" class="form-control" id="related_2" name="related_2" value="<?php echo _f('related_2',$_smarty_tpl->tpl_vars['article']->value);?> "<?php if (_request('delete')) {?> readonly<?php }?>> <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['related_2'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?> <p class="help-block"> Inserire l'identificativo numerico (es. 2) dell'articolo da correlare. </p> </div> </div> <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['related_3'])) {?> error<?php }?>"> <label class="control-label col-md-3" for="related_3">Articolo correlato 3</label> <div class="controls col-md-9"> <input type="text" class="form-control" id="related_3" name="related_3" value="<?php echo _f('related_3',$_smarty_tpl->tpl_vars['article']->value);?> "<?php if (_request('delete')) {?> readonly<?php }?>> <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['related_3'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?> <p class="help-block"> Inserire l'identificativo numerico (es. 3) dell'articolo da correlare. </p> </div> </div> <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['stores'])) {?> error<?php }?>"> <label class="control-label col-md-3" for="stores">Punti vendita</label> <div class="controls col-md-9"> <?php $_from = $_smarty_tpl->tpl_vars['stores']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $__foreach_v_1_saved_item = isset($_smarty_tpl->tpl_vars['v']) ? $_smarty_tpl->tpl_vars['v'] : false; $__foreach_v_1_saved_key = isset($_smarty_tpl->tpl_vars['k']) ? $_smarty_tpl->tpl_vars['k'] : false; $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['v']->_loop = false; foreach ($_from as $_smarty_tpl->tpl_vars['k']->value => $_smarty_tpl->tpl_vars['v']->value) { $_smarty_tpl->tpl_vars['v']->_loop = true; $__foreach_v_1_saved_local_item = $_smarty_tpl->tpl_vars['v']; ?> <div class="checkbox"> <label> <input type="checkbox" name="stores[]" value="<?php echo $_smarty_tpl->tpl_vars['k']->value;?> "<?php if (in_array($_smarty_tpl->tpl_vars['k']->value,_f('stores',$_smarty_tpl->tpl_vars['article']->value,array()))) {?> checked="checked"<?php }?>> <?php echo $_smarty_tpl->tpl_vars['v']->value;?> </label> </div> <?php $_smarty_tpl->tpl_vars['v'] = $__foreach_v_1_saved_local_item; } if ($__foreach_v_1_saved_item) { $_smarty_tpl->tpl_vars['v'] = $__foreach_v_1_saved_item; } if ($__foreach_v_1_saved_key) { $_smarty_tpl->tpl_vars['k'] = $__foreach_v_1_saved_key; } ?> <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['stores'])) {?><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['article']->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_app'])) {?> error<?php }?>"> <label class="control-label col-md-3" for="published_app">Visibile nell'app</label> <div class="controls col-md-9"> <div class="checkbox"> <label> <input type="checkbox" name="published_app" value="1"<?php if (_f('published_app',$_smarty_tpl->tpl_vars['article']->value)) {?> checked="checked"<?php }?>> </label> </div> <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['published_app'])) {?><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",_dt('published_datetime',$_smarty_tpl->tpl_vars['article']->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",_dt('published_datetime2',$_smarty_tpl->tpl_vars['article']->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> <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['homepage'])) {?> error<?php }?>"> <label class="control-label col-md-3" for="homepage">Visibile in home page</label> <div class="controls col-md-9"> <div class="checkbox"> <label> <input type="checkbox" name="homepage" value="1"<?php if (_f('homepage',$_smarty_tpl->tpl_vars['article']->value)) {?> checked="checked"<?php }?>> </label> </div> <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['homepage'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?> </div> </div> <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['focus_magazine'])) {?> error<?php }?>"> <label class="control-label col-md-3" for="focus_magazine">Focus in sezione "magazine"</label> <div class="controls col-md-9"> <div class="checkbox"> <label> <input type="checkbox" name="focus_magazine" value="1"<?php if (_f('focus_magazine',$_smarty_tpl->tpl_vars['article']->value)) {?> checked="checked"<?php }?>> </label> </div> <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['focus_magazine'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?> </div> </div> <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['focus'])) {?> error<?php }?>"> <label class="control-label col-md-3" for="focus">Focus in CMS</label> <div class="controls col-md-9"> <?php $_from = $_smarty_tpl->tpl_vars['pages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $__foreach_v_2_saved_item = isset($_smarty_tpl->tpl_vars['v']) ? $_smarty_tpl->tpl_vars['v'] : false; $__foreach_v_2_saved_key = isset($_smarty_tpl->tpl_vars['k']) ? $_smarty_tpl->tpl_vars['k'] : false; $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['v']->_loop = false; foreach ($_from as $_smarty_tpl->tpl_vars['k']->value => $_smarty_tpl->tpl_vars['v']->value) { $_smarty_tpl->tpl_vars['v']->_loop = true; $__foreach_v_2_saved_local_item = $_smarty_tpl->tpl_vars['v']; ?> <div class="checkbox"> <label> <input type="checkbox" name="focus[]" value="<?php echo $_smarty_tpl->tpl_vars['k']->value;?> "<?php if (in_array($_smarty_tpl->tpl_vars['k']->value,_f('focus',$_smarty_tpl->tpl_vars['article']->value,array()))) {?> checked="checked"<?php }?>> <?php echo $_smarty_tpl->tpl_vars['v']->value;?> </label> </div> <?php $_smarty_tpl->tpl_vars['v'] = $__foreach_v_2_saved_local_item; } if ($__foreach_v_2_saved_item) { $_smarty_tpl->tpl_vars['v'] = $__foreach_v_2_saved_item; } if ($__foreach_v_2_saved_key) { $_smarty_tpl->tpl_vars['k'] = $__foreach_v_2_saved_key; } ?> <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['focus_prodotti'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?> </div> </div> <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['requires_login'])) {?> error<?php }?>"> <label class="control-label col-md-3" for="requires_login">Richiede autenticazione utente</label> <div class="controls col-md-9"> <div class="checkbox"> <label> <input type="checkbox" name="requires_login" value="1"<?php if (_f('requires_login',$_smarty_tpl->tpl_vars['article']->value)) {?> checked="checked"<?php }?>> </label> </div> <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['requires_login'])) {?><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['article']->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['article']->value['seo_image']) && $_smarty_tpl->tpl_vars['article']->value['seo_image']) {?> <p class="mt20"> <input type="hidden" name="seo_image" value="<?php echo $_smarty_tpl->tpl_vars['article']->value['seo_image'];?> "> <img src="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?> /assets/<?php echo $_smarty_tpl->tpl_vars['article']->value['seo_image'];?> " alt="Immagine SEO" 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['article']->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['article']->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/blog-articles" class="btn btn-default">Annulla</a> </div></div> </form> </div> </div> <?php } /* {/block 'content'} */ }