{#** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/OSL-3.0 * 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 https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) *#} {% extends '@PrestaShop/Admin/layout.html.twig' %} {% trans_default_domain "Admin.Advparameters.Feature" %} {% import '@PrestaShop/Admin/macros.html.twig' as ps %} {% form_theme form 'PrestaShopBundle:Admin/TwigTemplateForm:prestashop_ui_kit.html.twig' %} {% set smartyForm, debugModeForm, optionalFeaturesForm, combineCompressCacheForm, mediaServersForm, cachingForm, memcacheForm = form.smarty, form.debug_mode, form.optional_features, form.ccc, form.media_servers, form.caching, form.add_memcache_server %} {% block content %} {{ form_start(form, {'attr' : {'class': 'form'} }) }}
{% block perfs_form_smarty_cache %}

business_center {{ 'Smarty'|trans }}

{% block perfs_form_smarty_cache_form %} {{ form_widget(smartyForm) }} {% endblock %}
{% endblock %} {% block perfs_form_debug_mode %}

bug_report {{ 'Debug mode'|trans }}

{% block perfs_form_debug_mode_form %} {{ form_widget(debugModeForm) }} {% endblock %}
{% endblock %} {% block perfs_form_optional_features %}

extension {{ 'Optional features'|trans }}

{{ ps.infotip('Some features can be disabled in order to improve performance.'|trans({}, 'Admin.Advparameters.Help')) }}
{% block perfs_form_optional_features_form %} {{ form_widget(optionalFeaturesForm) }} {% endblock %}
{% endblock %} {% block perfs_form_ccc %}

zoom_out_map {{ 'CCC (Combine, Compress and Cache)'|trans }}

{{ ps.infotip('CCC allows you to reduce the loading time of your page. With these settings you will gain performance without even touching the code of your theme. Make sure, however, that your theme is compatible with PrestaShop 1.4+. Otherwise, CCC will cause problems.'|trans({}, 'Admin.Advparameters.Help')) }}
{% block perfs_form_ccc_form %} {{ form_widget(combineCompressCacheForm) }} {% endblock %}
{% endblock %} {% block perfs_form_media_servers %}

link {{ 'Media servers (use only with CCC)'|trans }}

{{ ps.infotip('You must enter another domain, or subdomain, in order to use cookieless static content.'|trans({}, 'Admin.Advparameters.Feature')) }}
{% block perfs_form_media_servers_form %} {{ form_widget(mediaServersForm) }} {% endblock %}
{% endblock %} {% block perfs_form_caching %}

link {{ 'Caching'|trans }}

{% block perfs_form_caching_form %} {{ form_widget(cachingForm) }} {% endblock %} {{ include('@AdvancedParameters/memcache_servers.html.twig', {'form': memcacheForm}) }}
{% endblock %}
{{ form_end(form) }} {% endblock %} {% block javascripts %} {{ parent() }} {% endblock %}