{* * 2007-2013 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-2013 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {if $show_toolbar} {include file="toolbar.tpl" toolbar_btn=$toolbar_btn toolbar_scroll=$toolbar_scroll title=$title}
{block name="leadin"}{/block}
{/if} {block name="defaultOptions"}
{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} {l s='Check/uncheck all'} {l s='(Check boxes if you want to set a custom value for this shop or group shop context)'}
{/if} {foreach $categoryData['fields'] AS $key => $field} {if $field['type'] == 'hidden'} {else}
{if !$categoryData['hide_multishop_checkbox'] && $field['multishop_default'] && empty($field['no_multishop_checkbox'])}
{/if} {block name="label"} {if 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'} {elseif $field['type'] == 'radio'} {foreach $field['choices'] AS $k => $v}
{/foreach}
{elseif $field['type'] == 'checkbox'} {foreach $field['choices'] AS $k => $v}
{/foreach}
{elseif $field['type'] == 'text'} {if isset($field['suffix'])} {$field['suffix']|strval}{/if} {elseif $field['type'] == 'password'} {if isset($field['suffix'])} {$field['suffix']|strval}{/if} {elseif $field['type'] == 'textarea'} {elseif $field['type'] == 'file'} {if isset($field['thumb']) && $field['thumb']} {$field['title']}
{/if} {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}
{/foreach} {elseif $field['type'] == 'textareaLang'} {foreach $field['languages'] AS $id_lang => $value}
{/foreach} {elseif $field['type'] == 'selectLang'} {foreach $languages as $language}
{/foreach} {/if} {if count($languages) > 1}
{l s='Choose language:'}

{foreach $languages as $language} {$language.name} {/foreach}
{/if}
{/if} {if isset($field['required']) && $field['required'] && $field['type'] != 'radio'} * {/if} {if isset($field['hint'])}{$field['hint']} {/if} {/block}{* end block input *} {if isset($field['desc'])}

{$field['desc']}

{/if} {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['submit'])}
{/if} {if isset($categoryData['required_fields']) && $categoryData['required_fields']}
* {l s='Required field'}
{/if} {if isset($categoryData['bottom'])}{$categoryData['bottom']}{/if}

{/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}