Initial commit

This commit is contained in:
2019-11-20 07:44:43 +01:00
commit 5bf49c4a81
41188 changed files with 5459177 additions and 0 deletions

View File

@@ -0,0 +1,715 @@
<?php
/* @PrestaShop/Admin/Configure/AdvancedParameters/performance.html.twig */
class __TwigTemplate_8a0b727e4e3938b67e77b70fd9c63105b9a53874efa0c5581bb6ad0a9ce29738 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
// line 25
$this->parent = $this->loadTemplate("@PrestaShop/Admin/layout.html.twig", "@PrestaShop/Admin/Configure/AdvancedParameters/performance.html.twig", 25);
$this->blocks = array(
'content' => array($this, 'block_content'),
'perfs_form_smarty_cache' => array($this, 'block_perfs_form_smarty_cache'),
'perfs_form_debug_mode' => array($this, 'block_perfs_form_debug_mode'),
'perfs_form_optional_features' => array($this, 'block_perfs_form_optional_features'),
'perfs_form_ccc' => array($this, 'block_perfs_form_ccc'),
'perfs_form_media_servers' => array($this, 'block_perfs_form_media_servers'),
'perfs_form_caching' => array($this, 'block_perfs_form_caching'),
'javascripts' => array($this, 'block_javascripts'),
);
}
protected function doGetParent(array $context)
{
return "@PrestaShop/Admin/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = array())
{
// line 27
$context["ps"] = $this->loadTemplate("@PrestaShop/Admin/macros.html.twig", "@PrestaShop/Admin/Configure/AdvancedParameters/performance.html.twig", 27);
// line 30
list($context["smartyForm"], $context["debugModeForm"], $context["optionalFeaturesForm"], $context["combineCompressCacheForm"], $context["mediaServersForm"], $context["cachingForm"], $context["memcacheForm"]) = array($this->getAttribute( // line 31
($context["form"] ?? null), "smarty", array()), $this->getAttribute(($context["form"] ?? null), "debug_mode", array()), $this->getAttribute(($context["form"] ?? null), "optional_features", array()), $this->getAttribute(($context["form"] ?? null), "ccc", array()), $this->getAttribute(($context["form"] ?? null), "media_servers", array()), $this->getAttribute(($context["form"] ?? null), "caching", array()), $this->getAttribute(($context["form"] ?? null), "add_memcache_server", array()));
// line 25
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
// line 34
public function block_content($context, array $blocks = array())
{
// line 35
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_start', array("attr" => array("class" => "form")));
echo "
<div class=\"row justify-content-center\">
";
// line 37
$this->displayBlock('perfs_form_smarty_cache', $context, $blocks);
// line 91
echo "
";
// line 92
$this->displayBlock('perfs_form_debug_mode', $context, $blocks);
// line 132
echo "
";
// line 133
$this->displayBlock('perfs_form_optional_features', $context, $blocks);
// line 189
echo "
";
// line 190
$this->displayBlock('perfs_form_ccc', $context, $blocks);
// line 235
echo "
";
// line 236
$this->displayBlock('perfs_form_media_servers', $context, $blocks);
// line 281
echo "
";
// line 282
$this->displayBlock('perfs_form_caching', $context, $blocks);
// line 316
echo " </div>
";
// line 317
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_end');
echo "
";
}
// line 37
public function block_perfs_form_smarty_cache($context, array $blocks = array())
{
// line 38
echo " <div class=\"col-xl-10\">
<div class=\"card\">
<h3 class=\"card-header\">
<i class=\"material-icons\">business_center</i> ";
// line 41
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Smarty", array(), "Admin.Advparameters.Feature"), "html", null, true);
echo "
</h3>
<div class=\"card-block row\">
<div class=\"card-text\">
<div class=\"form-group row\">
<label class=\"form-control-label\">";
// line 46
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Template compilation", array(), "Admin.Advparameters.Feature"), "html", null, true);
echo "</label>
<div class=\"col-sm\">
";
// line 48
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["smartyForm"] ?? null), "template_compilation", array()), 'errors');
echo "
";
// line 49
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["smartyForm"] ?? null), "template_compilation", array()), 'widget');
echo "
</div>
</div>
<div class=\"form-group row\">
";
// line 53
echo $context["ps"]->getlabel_with_help($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Cache", array(), "Admin.Advparameters.Feature"), $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Should be enabled except for debugging.", array(), "Admin.Advparameters.Feature"));
echo "
<div class=\"col-sm\">
";
// line 55
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["smartyForm"] ?? null), "cache", array()), 'errors');
echo "
";
// line 56
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["smartyForm"] ?? null), "cache", array()), 'widget');
echo "
</div>
</div>
<div class=\"form-group row smarty-cache-option\">
";
// line 60
echo $context["ps"]->getlabel_with_help($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Multi-front optimizations", array(), "Admin.Advparameters.Feature"), $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Should be enabled if you want to avoid to store the smarty cache on NFS.", array(), "Admin.Advparameters.Help"));
echo "
<div class=\"col-sm\">
";
// line 62
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["smartyForm"] ?? null), "multi_front_optimization", array()), 'errors');
echo "
";
// line 63
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["smartyForm"] ?? null), "multi_front_optimization", array()), 'widget');
echo "
</div>
</div>
<div class=\"form-group row smarty-cache-option\">
<label class=\"form-control-label\">";
// line 67
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Caching type", array(), "Admin.Advparameters.Feature"), "html", null, true);
echo "</label>
<div class=\"col-sm\">
";
// line 69
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["smartyForm"] ?? null), "caching_type", array()), 'errors');
echo "
";
// line 70
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["smartyForm"] ?? null), "caching_type", array()), 'widget');
echo "
</div>
</div>
<div class=\"form-group row smarty-cache-option\">
<label class=\"form-control-label\">";
// line 74
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Clear cache", array(), "Admin.Advparameters.Feature"), "html", null, true);
echo "</label>
<div class=\"col-sm\">
";
// line 76
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["smartyForm"] ?? null), "clear_cache", array()), 'errors');
echo "
";
// line 77
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["smartyForm"] ?? null), "clear_cache", array()), 'widget');
echo "
</div>
</div>
";
// line 80
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["smartyForm"] ?? null), 'rest');
echo "
</div>
</div>
<div class=\"card-footer\">
<div class=\"d-flex justify-content-end\">
<button class=\"btn btn-primary\">";
// line 85
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Save", array(), "Admin.Actions"), "html", null, true);
echo "</button>
</div>
</div>
</div>
</div>
";
}
// line 92
public function block_perfs_form_debug_mode($context, array $blocks = array())
{
// line 93
echo " <div class=\"col-xl-10\">
<div class=\"card\">
<h3 class=\"card-header\">
<i class=\"material-icons\">bug_report</i> ";
// line 96
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Debug mode", array(), "Admin.Advparameters.Feature"), "html", null, true);
echo "
</h3>
<div class=\"card-block row\">
<div class=\"card-text\">
<div class=\"form-group row\">
";
// line 101
echo $context["ps"]->getlabel_with_help($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Disable non PrestaShop modules", array(), "Admin.Advparameters.Feature"), $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Enable or disable non PrestaShop Modules.", array(), "Admin.Advparameters.Feature"));
echo "
<div class=\"col-sm\">
";
// line 103
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["debugModeForm"] ?? null), "disable_non_native_modules", array()), 'errors');
echo "
";
// line 104
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["debugModeForm"] ?? null), "disable_non_native_modules", array()), 'widget');
echo "
</div>
</div>
<div class=\"form-group row\">
";
// line 108
echo $context["ps"]->getlabel_with_help($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Disable all overrides", array(), "Admin.Advparameters.Feature"), $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Enable or disable all classes and controllers overrides.", array(), "Admin.Advparameters.Feature"));
echo "
<div class=\"col-sm\">
";
// line 110
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["debugModeForm"] ?? null), "disable_overrides", array()), 'errors');
echo "
";
// line 111
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["debugModeForm"] ?? null), "disable_overrides", array()), 'widget');
echo "
</div>
</div>
<div class=\"form-group row\">
";
// line 115
echo $context["ps"]->getlabel_with_help($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Debug mode", array(), "Admin.Advparameters.Feature"), $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Enable or disable debug mode.", array(), "Admin.Advparameters.Help"));
echo "
<div class=\"col-sm\">
";
// line 117
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["debugModeForm"] ?? null), "debug_mode", array()), 'errors');
echo "
";
// line 118
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["debugModeForm"] ?? null), "debug_mode", array()), 'widget');
echo "
</div>
</div>
";
// line 121
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["debugModeForm"] ?? null), 'rest');
echo "
</div>
</div>
<div class=\"card-footer\">
<div class=\"d-flex justify-content-end\">
<button class=\"btn btn-primary\">";
// line 126
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Save", array(), "Admin.Actions"), "html", null, true);
echo "</button>
</div>
</div>
</div>
</div>
";
}
// line 133
public function block_perfs_form_optional_features($context, array $blocks = array())
{
// line 134
echo " <div class=\"col-xl-10\">
<div class=\"card\">
<h3 class=\"card-header\">
<i class=\"material-icons\">extension</i> ";
// line 137
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Optional features", array(), "Admin.Advparameters.Feature"), "html", null, true);
echo "
</h3>
<div class=\"card-block row\">
<div class=\"card-text\">
<div class=\"row\">
<div class=\"col\">
";
// line 144
echo $context["ps"]->getinfotip($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Some features can be disabled in order to improve performance.", array(), "Admin.Advparameters.Help"));
echo "
</div>
</div>
<div class=\"form-group row\">
";
// line 149
echo $context["ps"]->getlabel_with_help($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Combinations", array(), "Admin.Global"), $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Choose \"No\" to disable Product Combinations.", array(), "Admin.Advparameters.Help"));
echo "
<div class=\"col-sm\">
";
// line 151
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["optionalFeaturesForm"] ?? null), "combinations", array()), 'errors');
echo "
";
// line 152
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["optionalFeaturesForm"] ?? null), "combinations", array()), 'widget');
echo "
</div>
</div>
<div class=\"row\">
<div class=\"col\">
";
// line 158
if ($this->getAttribute($this->getAttribute($this->getAttribute(($context["optionalFeaturesForm"] ?? null), "combinations", array()), "vars", array()), "disabled", array())) {
// line 159
echo " ";
echo $context["ps"]->getwarningtip($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("You cannot set this parameter to No when combinations are already used by some of your products", array(), "Admin.Advparameters.Help"));
echo "
";
}
// line 161
echo " </div>
</div>
<div class=\"form-group row\">
";
// line 165
echo $context["ps"]->getlabel_with_help($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Features", array(), "Admin.Global"), $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Choose \"No\" to disable Product Features.", array(), "Admin.Advparameters.Help"));
echo "
<div class=\"col-sm\">
";
// line 167
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["optionalFeaturesForm"] ?? null), "features", array()), 'errors');
echo "
";
// line 168
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["optionalFeaturesForm"] ?? null), "features", array()), 'widget');
echo "
</div>
</div>
<div class=\"form-group row\">
";
// line 172
echo $context["ps"]->getlabel_with_help($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Customer groups", array(), "Admin.Advparameters.Feature"), $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Choose \"No\" to disable Customer Groups.", array(), "Admin.Advparameters.Help"));
echo "
<div class=\"col-sm\">
";
// line 174
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["optionalFeaturesForm"] ?? null), "customer_groups", array()), 'errors');
echo "
";
// line 175
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["optionalFeaturesForm"] ?? null), "customer_groups", array()), 'widget');
echo "
</div>
</div>
";
// line 178
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["optionalFeaturesForm"] ?? null), 'rest');
echo "
</div>
</div>
<div class=\"card-footer\">
<div class=\"d-flex justify-content-end\">
<button class=\"btn btn-primary\">";
// line 183
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Save", array(), "Admin.Actions"), "html", null, true);
echo "</button>
</div>
</div>
</div>
</div>
";
}
// line 190
public function block_perfs_form_ccc($context, array $blocks = array())
{
// line 191
echo " <div class=\"col-xl-10\">
<div class=\"card\">
<h3 class=\"card-header\">
<i class=\"material-icons\">zoom_out_map</i> ";
// line 194
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("CCC (Combine, Compress and Cache)", array(), "Admin.Advparameters.Feature"), "html", null, true);
echo "
</h3>
<div class=\"card-block row\">
<div class=\"card-text\">
<div class=\"row\">
<div class=\"col\">
";
// line 200
echo $context["ps"]->getinfotip($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("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.", array(), "Admin.Advparameters.Help"));
echo "
</div>
</div>
<div class=\"form-group row\">
<label class=\"form-control-label\">";
// line 204
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Smart cache for CSS", array(), "Admin.Advparameters.Feature"), "html", null, true);
echo "</label>
<div class=\"col-sm\">
";
// line 206
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["combineCompressCacheForm"] ?? null), "smart_cache_css", array()), 'errors');
echo "
";
// line 207
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["combineCompressCacheForm"] ?? null), "smart_cache_css", array()), 'widget');
echo "
</div>
</div>
<div class=\"form-group row\">
<label class=\"form-control-label\">";
// line 211
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Smart cache for JavaScript", array(), "Admin.Advparameters.Feature"), "html", null, true);
echo "</label>
<div class=\"col-sm\">
";
// line 213
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["combineCompressCacheForm"] ?? null), "smart_cache_js", array()), 'errors');
echo "
";
// line 214
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["combineCompressCacheForm"] ?? null), "smart_cache_js", array()), 'widget');
echo "
</div>
</div>
<div class=\"form-group row\">
";
// line 218
echo $context["ps"]->getlabel_with_help($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Apache optimization", array(), "Admin.Advparameters.Feature"), $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("This will add directives to your .htaccess file, which should improve caching and compression.", array(), "Admin.Advparameters.Help"));
echo "
<div class=\"col-sm\">
";
// line 220
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["combineCompressCacheForm"] ?? null), "apache_optimization", array()), 'errors');
echo "
";
// line 221
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["combineCompressCacheForm"] ?? null), "apache_optimization", array()), 'widget');
echo "
</div>
</div>
";
// line 224
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["combineCompressCacheForm"] ?? null), 'rest');
echo "
</div>
</div>
<div class=\"card-footer\">
<div class=\"d-flex justify-content-end\">
<button class=\"btn btn-primary\">";
// line 229
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Save", array(), "Admin.Actions"), "html", null, true);
echo "</button>
</div>
</div>
</div>
</div>
";
}
// line 236
public function block_perfs_form_media_servers($context, array $blocks = array())
{
// line 237
echo " <div class=\"col-xl-10\">
<div class=\"card\">
<h3 class=\"card-header\">
<i class=\"material-icons\">link</i> ";
// line 240
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Media servers (use only with CCC)", array(), "Admin.Advparameters.Feature"), "html", null, true);
echo "
</h3>
<div class=\"card-block row\">
<div class=\"card-text\">
<div class=\"row\">
<div class=\"col\">
";
// line 246
echo $context["ps"]->getinfotip($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("You must enter another domain, or subdomain, in order to use cookieless static content.", array(), "Admin.Advparameters.Feature"));
echo "
</div>
</div>
<div class=\"form-group row\">
";
// line 250
echo $context["ps"]->getlabel_with_help($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Media server #1", array(), "Admin.Advparameters.Feature"), $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Name of the second domain of your shop, (e.g. myshop-media-server-1.com). If you do not have another domain, leave this field blank.", array(), "Admin.Advparameters.Help"));
echo "
<div class=\"col-sm\">
";
// line 252
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["mediaServersForm"] ?? null), "media_server_one", array()), 'errors');
echo "
";
// line 253
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["mediaServersForm"] ?? null), "media_server_one", array()), 'widget');
echo "
</div>
</div>
<div class=\"form-group row\">
";
// line 257
echo $context["ps"]->getlabel_with_help($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Media server #2", array(), "Admin.Advparameters.Feature"), $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Name of the third domain of your shop, (e.g. myshop-media-server-2.com). If you do not have another domain, leave this field blank.", array(), "Admin.Advparameters.Help"));
echo "
<div class=\"col-sm\">
";
// line 259
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["mediaServersForm"] ?? null), "media_server_two", array()), 'errors');
echo "
";
// line 260
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["mediaServersForm"] ?? null), "media_server_two", array()), 'widget');
echo "
</div>
</div>
<div class=\"form-group row\">
";
// line 264
echo $context["ps"]->getlabel_with_help($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Media server #3", array(), "Admin.Advparameters.Feature"), $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Name of the fourth domain of your shop, (e.g. myshop-media-server-3.com). If you do not have another domain, leave this field blank.", array(), "Admin.Advparameters.Help"));
echo "
<div class=\"col-sm\">
";
// line 266
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["mediaServersForm"] ?? null), "media_server_three", array()), 'errors');
echo "
";
// line 267
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["mediaServersForm"] ?? null), "media_server_three", array()), 'widget');
echo "
</div>
</div>
";
// line 270
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["mediaServersForm"] ?? null), 'rest');
echo "
</div>
</div>
<div class=\"card-footer\">
<div class=\"d-flex justify-content-end\">
<button class=\"btn btn-primary\">";
// line 275
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Save", array(), "Admin.Actions"), "html", null, true);
echo "</button>
</div>
</div>
</div>
</div>
";
}
// line 282
public function block_perfs_form_caching($context, array $blocks = array())
{
// line 283
echo " <div class=\"col-xl-10\">
<div class=\"card\">
<h3 class=\"card-header\">
<i class=\"material-icons\">link</i> ";
// line 286
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Caching", array(), "Admin.Advparameters.Feature"), "html", null, true);
echo "
</h3>
<div class=\"card-block row\">
<div class=\"card-text\">
<div class=\"form-group row\">
<label class=\"form-control-label\">";
// line 291
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Use cache", array(), "Admin.Advparameters.Feature"), "html", null, true);
echo "</label>
<div class=\"col-sm\">
";
// line 293
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["cachingForm"] ?? null), "use_cache", array()), 'errors');
echo "
";
// line 294
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["cachingForm"] ?? null), "use_cache", array()), 'widget');
echo "
</div>
</div>
<div class=\"form-group row memcache\" id=\"caching_systems\">
<label class=\"form-control-label\">";
// line 298
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Caching system", array(), "Admin.Advparameters.Feature"), "html", null, true);
echo "</label>
<div class=\"col-sm\">
";
// line 300
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["cachingForm"] ?? null), "caching_system", array()), 'errors');
echo "
";
// line 301
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["cachingForm"] ?? null), "caching_system", array()), 'widget');
echo "
</div>
</div>
";
// line 304
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["cachingForm"] ?? null), 'rest');
echo "
";
// line 305
echo twig_include($this->env, $context, "@AdvancedParameters/memcache_servers.html.twig", array("form" => ($context["memcacheForm"] ?? null)));
echo "
</div>
</div>
<div class=\"card-footer\">
<div class=\"d-flex justify-content-end\">
<button class=\"btn btn-primary\">";
// line 310
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Save", array(), "Admin.Actions"), "html", null, true);
echo "</button>
</div>
</div>
</div>
</div>
";
}
// line 320
public function block_javascripts($context, array $blocks = array())
{
// line 321
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script src=\"";
// line 322
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\AssetExtension')->getAssetUrl("themes/default/js/bundle/admin_parameters/performancePage.js"), "html", null, true);
echo "\"></script>
<script>
var configuration = {
'addServerUrl': '";
// line 325
echo twig_escape_filter($this->env, twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getUrl("admin_servers_add"), "js"), "html", null, true);
echo "',
'removeServerUrl': '";
// line 326
echo twig_escape_filter($this->env, twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getUrl("admin_servers_delete"), "js"), "html", null, true);
echo "',
'testServerUrl': '";
// line 327
echo twig_escape_filter($this->env, twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getUrl("admin_servers_test"), "js"), "html", null, true);
echo "'
};
var app = new PerformancePage(
configuration.addServerUrl,
configuration.removeServerUrl,
configuration.testServerUrl
);
window.addEventListener('load', function() {
var addServerBtn = document.getElementById('add-server-btn');
var testServerBtn = document.getElementById('test-server-btn');
addServerBtn.addEventListener('click', function(event) {
event.preventDefault();
app.addServer();
});
testServerBtn.addEventListener('click', function(event) {
event.preventDefault();
app.testServer();
});
});
</script>
<script src=\"";
// line 351
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\AssetExtension')->getAssetUrl("themes/default/js/bundle/admin_parameters/performancePageUI.js"), "html", null, true);
echo "\"></script>
";
}
public function getTemplateName()
{
return "@PrestaShop/Admin/Configure/AdvancedParameters/performance.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 683 => 351, 656 => 327, 652 => 326, 648 => 325, 642 => 322, 637 => 321, 634 => 320, 624 => 310, 616 => 305, 612 => 304, 606 => 301, 602 => 300, 597 => 298, 590 => 294, 586 => 293, 581 => 291, 573 => 286, 568 => 283, 565 => 282, 555 => 275, 547 => 270, 541 => 267, 537 => 266, 532 => 264, 525 => 260, 521 => 259, 516 => 257, 509 => 253, 505 => 252, 500 => 250, 493 => 246, 484 => 240, 479 => 237, 476 => 236, 466 => 229, 458 => 224, 452 => 221, 448 => 220, 443 => 218, 436 => 214, 432 => 213, 427 => 211, 420 => 207, 416 => 206, 411 => 204, 404 => 200, 395 => 194, 390 => 191, 387 => 190, 377 => 183, 369 => 178, 363 => 175, 359 => 174, 354 => 172, 347 => 168, 343 => 167, 338 => 165, 332 => 161, 326 => 159, 324 => 158, 315 => 152, 311 => 151, 306 => 149, 298 => 144, 288 => 137, 283 => 134, 280 => 133, 270 => 126, 262 => 121, 256 => 118, 252 => 117, 247 => 115, 240 => 111, 236 => 110, 231 => 108, 224 => 104, 220 => 103, 215 => 101, 207 => 96, 202 => 93, 199 => 92, 189 => 85, 181 => 80, 175 => 77, 171 => 76, 166 => 74, 159 => 70, 155 => 69, 150 => 67, 143 => 63, 139 => 62, 134 => 60, 127 => 56, 123 => 55, 118 => 53, 111 => 49, 107 => 48, 102 => 46, 94 => 41, 89 => 38, 86 => 37, 80 => 317, 77 => 316, 75 => 282, 72 => 281, 70 => 236, 67 => 235, 65 => 190, 62 => 189, 60 => 133, 57 => 132, 55 => 92, 52 => 91, 50 => 37, 44 => 35, 41 => 34, 37 => 25, 35 => 31, 34 => 30, 32 => 27, 11 => 25,);
}
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
public function getSource()
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
return $this->getSourceContext()->getCode();
}
public function getSourceContext()
{
return new Twig_Source("", "@PrestaShop/Admin/Configure/AdvancedParameters/performance.html.twig", "/var/www/clients/client1/web14/web/src/PrestaShopBundle/Resources/views/Admin/Configure/AdvancedParameters/performance.html.twig");
}
}

View File

@@ -0,0 +1,127 @@
<?php
/* @PrestaShop/Admin/Module/Includes/menu_top.html.twig */
class __TwigTemplate_718af31d0dd03476fe15c2b12d2bfa09b2af26460ee9ddb45e4e421e043043e2 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
);
}
protected function doDisplay(array $context, array $blocks = array())
{
// line 25
echo "<div class=\"module-top-menu\">
<div class=\"row\">
<div class=\"col-md-8\">
<div class=\"input-group\" id=\"search-input-group\">
<input type=\"text\" id=\"module-search-bar\" class=\"form-control\">
<div class=\"input-group-append\">
<button class=\"btn btn-primary float-right search-button\" id=\"module-search-button\">
<i class=\"material-icons\">search</i>
</button>
</div>
</div>
</div>
<div class=\"col-md-4 module-menu-item\">
</div>
</div>
<div class=\"row\">
";
// line 42
if (array_key_exists("topMenuData", $context)) {
// line 43
echo " <div class=\"col-md-4 module-top-menu-item\">
<h3>";
// line 44
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Category", array(), "Admin.Catalog.Feature"), "html", null, true);
echo "</h3>
";
// line 45
$this->loadTemplate("@PrestaShop/Admin/Module/Includes/dropdown_categories.html.twig", "@PrestaShop/Admin/Module/Includes/menu_top.html.twig", 45)->display(array_merge($context, array("topMenuData" => ($context["topMenuData"] ?? null))));
// line 46
echo " </div>
";
}
// line 48
echo "
";
// line 49
if ((array_key_exists("requireFilterStatus", $context) && (($context["requireFilterStatus"] ?? null) == true))) {
// line 50
echo " <div class=\"col-md-4 module-top-menu-item\">
<h3>";
// line 51
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Status", array(), "Admin.Global"), "html", null, true);
echo "</h3>
";
// line 52
$this->loadTemplate("@PrestaShop/Admin/Module/Includes/dropdown_status.html.twig", "@PrestaShop/Admin/Module/Includes/menu_top.html.twig", 52)->display($context);
// line 53
echo " </div>
";
}
// line 55
echo "
";
// line 56
if (((($context["level"] ?? null) > twig_constant("PrestaShopBundle\\Security\\Voter\\PageVoter::LEVEL_UPDATE")) && array_key_exists("bulkActions", $context))) {
// line 57
echo " <div class=\"col-md-4 module-top-menu-item disabled\">
<h3>";
// line 58
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Bulk Actions", array(), "Admin.Global"), "html", null, true);
echo "</h3>
";
// line 59
$this->loadTemplate("@PrestaShop/Admin/Module/Includes/dropdown_bulk.html.twig", "@PrestaShop/Admin/Module/Includes/menu_top.html.twig", 59)->display($context);
// line 60
echo " </div>
";
}
// line 62
echo " </div>
</div>
<hr class=\"top-menu-separator\"/>
";
// line 67
$context["js_translatable"] = twig_array_merge(array("Search - placeholder" => $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Search modules: keyword, name, author...", array(), "Admin.Modules.Help")), // line 69
($context["js_translatable"] ?? null));
}
public function getTemplateName()
{
return "@PrestaShop/Admin/Module/Includes/menu_top.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 97 => 69, 96 => 67, 89 => 62, 85 => 60, 83 => 59, 79 => 58, 76 => 57, 74 => 56, 71 => 55, 67 => 53, 65 => 52, 61 => 51, 58 => 50, 56 => 49, 53 => 48, 49 => 46, 47 => 45, 43 => 44, 40 => 43, 38 => 42, 19 => 25,);
}
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
public function getSource()
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
return $this->getSourceContext()->getCode();
}
public function getSourceContext()
{
return new Twig_Source("", "@PrestaShop/Admin/Module/Includes/menu_top.html.twig", "/var/www/clients/client1/web14/web/src/PrestaShopBundle/Resources/views/Admin/Module/Includes/menu_top.html.twig");
}
}