{* * 2007-2014 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA * @copyright 2007-2014 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *}
{block name="leadin"}{/block}
{block name="defaultOptions"} {if isset($table_bk) && $table_bk == $table}{capture name='table_count'}{counter name='table_count'}{/capture}{/if} {assign var='table_bk' value=$table scope='parent'}
{foreach $option_list AS $category => $categoryData} {if isset($categoryData['top'])}{$categoryData['top']}{/if}
{* Options category title *}
{if isset($categoryData['title'])}{$categoryData['title']}{else}{l s='Options'}{/if}
{* Category description *} {if (isset($categoryData['description']) && $categoryData['description'])}
{$categoryData['description']}
{/if} {* Category info *} {if (isset($categoryData['info']) && $categoryData['info'])}
{$categoryData['info']}
{/if} {if !$categoryData['hide_multishop_checkbox'] && $use_multishop}
{strip} {/strip}

{l s='Check / Uncheck all'} {l s='(If you are editing this page for several shops, some fields may be disabled. If you need to edit them, you will need to check the box for each field)'}

{/if}
{foreach $categoryData['fields'] AS $key => $field} {if $field['type'] == 'hidden'} {else}
{block name="label"} {if isset($field['title']) && isset($field['hint'])} {elseif isset($field['title'])} {/if} {/block} {block name="field"} {block name="input"} {if $field['type'] == 'select'}
{if $field['list']} {else if isset($input.empty_message)} {$input.empty_message} {/if}
{elseif $field['type'] == 'bool'}
{strip} {/strip}
{elseif $field['type'] == 'radio'}
{foreach $field['choices'] AS $k => $v}

{strip} {/strip}

{/foreach}
{elseif $field['type'] == 'checkbox'}
{foreach $field['choices'] AS $k => $v}

{strip} {/strip}

{/foreach}
{elseif $field['type'] == 'text'}
{if isset($field['suffix'])}
{/if} {if isset($field['suffix'])} {$field['suffix']|strval} {/if} {if isset($field['suffix'])}
{/if}
{elseif $field['type'] == 'password'}
{if isset($field['suffix'])}
{/if} {if isset($field['suffix'])} {$field['suffix']|strval} {/if} {if isset($field['suffix'])}
{/if}
{elseif $field['type'] == 'textarea'}
{elseif $field['type'] == 'file'}
{$field['file']}
{elseif $field['type'] == 'color'}
{elseif $field['type'] == 'price'}
{$currency_left_sign}{$currency_right_sign} {l s='(tax excl.)'}
{elseif $field['type'] == 'textLang' || $field['type'] == 'textareaLang' || $field['type'] == 'selectLang'} {if $field['type'] == 'textLang'}
{foreach $field['languages'] AS $id_lang => $value} {if $field['languages']|count > 1}
{else}
{/if} {if $field['languages']|count > 1}
{else}
{/if} {/foreach}
{elseif $field['type'] == 'textareaLang'}
{foreach $field['languages'] AS $id_lang => $value}
{/foreach}
{elseif $field['type'] == 'selectLang'} {foreach $languages as $language}
{/foreach} {/if} {/if} {if isset($field['desc']) && !empty($field['desc'])}
{if is_array($field['desc'])} {foreach $field['desc'] as $p} {if is_array($p)} {$p.text}
{else} {$p}
{/if} {/foreach} {else} {$field['desc']} {/if}
{/if} {/block}{* end block input *} {if $field['is_invisible']}

{l s='You can\'t change the value of this configuration field in the context of this shop.'}

{/if} {/block}{* end block field *}
{/if} {/foreach}
{if isset($categoryData['bottom'])}{$categoryData['bottom']}{/if} {block name="footer"} {if isset($categoryData['submit']) || isset($categoryData['buttons'])} {/if} {/block}
{/foreach} {hook h='displayAdminOptions'} {if isset($name_controller)} {capture name=hookName assign=hookName}display{$name_controller|ucfirst}Options{/capture} {hook h=$hookName} {elseif isset($smarty.get.controller)} {capture name=hookName assign=hookName}display{$smarty.get.controller|ucfirst|htmlentities}Options{/capture} {hook h=$hookName} {/if}
{/block} {block name="after"}{/block}