{* * 2007-2011 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-2011 PrestaShop SA * @version Release: $Revision: 9795 $ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {extends file="../helper/form/form.tpl"} {block name="label"} {if $input.type == 'text' && $input.name == 'ps_cache_fs_directory_depth'}
{l s='The system CacheFS should be used only when the infrastructure contain only one front-end server. Ask your hosting company if you don\'t know.'}
{/if} {if isset($input.label)} {/if} {/block} {block name="start_field_block"}
{if $input.type == 'radio' && $input.name == 'combination' && $input.disabled}
{l s='This feature can\'t be disabled because this is currently in use.'}
{/if} {/block} {block name="end_field_block"} {if $input.type == 'radio' && $input.name == 'combination'}
  • {l s='Combinations tab on product page'}
  • {l s='Attribute'}
  • {l s='Group of attribute'}
{elseif $input.type == 'radio' && $input.name == 'feature'}
  • {l s='Features tab on product page'}
  • {l s='Feature'}
  • {l s='Feature value'}
{elseif $input.type == 'text' && $input.name == 'ps_cache_fs_directory_depth'}
{/if}
{/block} {block name="other_input"} {if $key == 'memcachedServers'}
{if $servers}
{foreach $servers AS $server} {/foreach}
{l s='Id'} {l s='Ip'} {l s='Port'} {l s='Weight'}  
{$server.id_memcached_server} {$server.ip} {$server.port} {$server.weight}
{/if}
{/if} {/block} {block name="script"} function showMemcached() { if ($('#caching_system option:selected').val() == 'CacheMemcache') { $('#memcachedServers').show(); $('#directory_depth').hide(); } else { $('#memcachedServers').hide(); $('#directory_depth').show(); } } $(document).ready(function() { showMemcached(); $('#caching_system').change(function() { showMemcached(); }); $('#addMemcachedServer').click(function() { $('#formMemcachedServer').show(); return false; }); $('input[name="smarty_force_compile"], input[name="smarty_cache"]').change(function(){ $('#smarty_up').val(1); }); $('input[name="combination"], input[name="feature"]').change(function(){ $('#features_detachables_up').val('true'); }); $('input[name="PS_CSS_THEME_CACHE"], input[name="PS_JS_THEME_CACHE"], input[name="PS_HTML_THEME_COMPRESSION"], input[name="PS_JS_HTML_THEME_COMPRESSION"], input[name="PS_HIGH_HTML_THEME_COMPRESSION"]').change(function(){ $('#ccc_up').val(1); }); $('input[name="_MEDIA_SERVER_1_"], input[name="_MEDIA_SERVER_2_"], input[name="_MEDIA_SERVER_3_"]').change(function(){ $('#media_server_up').val(1); }); $('input[name="PS_CIPHER_ALGORITHM"]').change(function(){ $('#ciphering_up').val(1); }); $('input[name="active"], select[name="caching_system"]').change(function(){ $('#cache_up').val(1); }); }); {/block}