Initial commit

This commit is contained in:
2020-10-07 10:37:15 +02:00
commit ce5f440392
28157 changed files with 4429172 additions and 0 deletions

View File

@@ -0,0 +1,289 @@
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @Product/ProductPage/Forms/form_seo.html.twig */
class __TwigTemplate_37c8fc84923af93314b0de831e317174a68a490cdea6fad99c37f962424d5730 extends \Twig\Template
{
public function __construct(Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = [
'product_catalog_tool_serp' => [$this, 'block_product_catalog_tool_serp'],
];
}
protected function doDisplay(array $context, array $blocks = [])
{
// line 25
echo "<div class=\"col-md-12\">
<h2>";
// line 27
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Search Engine Optimization", [], "Admin.Catalog.Feature"), "html", null, true);
echo "</h2>
<p class=\"subtitle\">";
// line 28
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Improve your ranking and how your product page will appear in search engines results.", [], "Admin.Catalog.Feature"), "html", null, true);
echo "</p>
";
// line 30
$this->displayBlock('product_catalog_tool_serp', $context, $blocks);
// line 35
echo "
<div class=\"row\">
<div class=\"col-md-9\">
<fieldset class=\"form-group\">
";
// line 39
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["seoForm"] ?? null), "meta_title", []), 'label');
echo "
";
// line 40
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["seoForm"] ?? null), "meta_title", []), 'errors');
echo "
";
// line 41
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["seoForm"] ?? null), "meta_title", []), 'widget');
echo "
</fieldset>
</div>
</div>
<div class=\"row\">
<div class=\"col-md-9\">
<fieldset class=\"form-group\">
";
// line 49
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["seoForm"] ?? null), "meta_description", []), 'label');
echo "
";
// line 50
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["seoForm"] ?? null), "meta_description", []), 'errors');
echo "
";
// line 51
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["seoForm"] ?? null), "meta_description", []), 'widget');
echo "
</fieldset>
</div>
</div>
<fieldset class=\"form-group\">
<label class=\"form-control-label\">
";
// line 57
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["seoForm"] ?? null), "link_rewrite", []), "vars", []), "label", []), "html", null, true);
echo "
<span class=\"help-box\" data-toggle=\"popover\"
data-content=\"";
// line 59
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("This is the human-readable URL, as generated from the product's name. You can change it if you want.", [], "Admin.Catalog.Help"), "html", null, true);
echo "\" ></span>
</label>
";
// line 61
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["seoForm"] ?? null), "link_rewrite", []), 'errors');
echo "
<div class=\"row\">
<div class=\"col-md-7\">
";
// line 64
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["seoForm"] ?? null), "link_rewrite", []), 'widget');
echo "
</div>
<div class=\"col-md-2\">
<button type=\"button\" class=\"btn btn-block btn-outline-secondary\" id=\"seo-url-regenerate\">";
// line 67
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Reset URL", [], "Admin.Catalog.Feature"), "html", null, true);
echo "</button>
</div>
</div>
</fieldset>
<div class=\"row\">
<div class=\"col-md-9\">
<div class=\"alert alert-info\" role=\"alert\">
<p class=\"alert-text\">
";
// line 76
if (($this->env->getExtension('PrestaShopBundle\Twig\LayoutExtension')->getConfiguration("PS_REWRITING_SETTINGS") == 0)) {
// line 77
echo " <strong>";
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Friendly URLs are currently disabled.", [], "Admin.Catalog.Notification"), "html", null, true);
echo "</strong>
";
// line 78
echo twig_replace_filter($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("To enable it, go to [1]SEO and URLs[/1]", [], "Admin.Catalog.Notification"), ["[1]" => (("<a href=\"" . $this->env->getExtension('PrestaShopBundle\Twig\LayoutExtension')->getAdminLink("AdminMeta")) . "#meta_fieldset_general\">"), "[/1]" => "</a>"]);
echo "
";
} else {
// line 80
echo " <strong>";
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Friendly URLs are currently enabled.", [], "Admin.Catalog.Notification"), "html", null, true);
echo "</strong>
";
// line 81
echo twig_replace_filter($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("To disable it, go to [1]SEO and URLs[/1]", [], "Admin.Catalog.Notification"), ["[1]" => (("<a href=\"" . $this->env->getExtension('PrestaShopBundle\Twig\LayoutExtension')->getAdminLink("AdminMeta")) . "#meta_fieldset_general\">"), "[/1]" => "</a>"]);
echo "
";
}
// line 83
echo " </p>
<p class=\"alert-text\">
";
// line 85
if (($this->env->getExtension('PrestaShopBundle\Twig\LayoutExtension')->getConfiguration("PS_FORCE_FRIENDLY_PRODUCT") == 1)) {
// line 86
echo " <strong>";
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("The \"Force update of friendly URL\" option is currently enabled.", [], "Admin.Catalog.Notification"), "html", null, true);
echo "</strong>
";
// line 88
echo " ";
echo twig_replace_filter($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("To disable it, go to [1]Product Settings[/1]", [], "Admin.Catalog.Notification"), ["[1]" => (("<a href=\"" . $this->env->getExtension('PrestaShopBundle\Twig\LayoutExtension')->getAdminLink("AdminPPreferences")) . "#configuration_fieldset_products\">"), "[/1]" => "</a>"]);
echo "
";
}
// line 90
echo " </p>
</div>
</div>
</div>
<h2 class=\"mt-4\">
";
// line 96
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Redirection page", [], "Admin.Catalog.Feature"), "html", null, true);
echo "
<span class=\"help-box\" data-toggle=\"popover\"
data-content=\"";
// line 98
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("When your product is disabled, choose to which page youd like to redirect the customers visiting its page by typing the product or category name.", [], "Admin.Catalog.Help"), "html", null, true);
echo "\" ></span>
</h2>
<div class=\"row\">
<div class=\"col-md-4\">
<fieldset class=\"form-group\">
<label class=\"form-control-label\">";
// line 105
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["seoForm"] ?? null), "redirect_type", []), "vars", []), "label", []), "html", null, true);
echo "</label>
";
// line 106
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["seoForm"] ?? null), "redirect_type", []), 'errors');
echo "
";
// line 107
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["seoForm"] ?? null), "redirect_type", []), 'widget');
echo "
</fieldset>
</div>
<div class=\"col-md-5\" id=\"id-product-redirected\">
<fieldset class=\"form-group\">
<label class=\"form-control-label\">";
// line 113
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["seoForm"] ?? null), "id_type_redirected", []), "vars", []), "label", []), "html", null, true);
echo "</label>
";
// line 114
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["seoForm"] ?? null), "id_type_redirected", []), 'errors');
echo "
";
// line 115
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["seoForm"] ?? null), "id_type_redirected", []), 'widget');
echo "
</fieldset>
</div>
</div>
<div class=\"row\">
<div class=\"col-md-9\">
<div class=\"alert alert-info\" role=\"alert\">
<p class=\"alert-text\">
";
// line 124
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("No redirection (404) = Do not redirect anywhere and display a 404 \"Not Found\" page.", [], "Admin.Catalog.Help"), "html", null, true);
echo "<br>
";
// line 125
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Permanent redirection (301) = Permanently display another product or category instead.", [], "Admin.Catalog.Help"), "html", null, true);
echo "<br>
";
// line 126
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Temporary redirection (302) = Temporarily display another product or category instead.", [], "Admin.Catalog.Help"), "html", null, true);
echo "
</p>
</div>
</div>
</div>
";
// line 132
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["seoForm"] ?? null), 'rest');
echo "
";
// line 134
echo $this->env->getExtension('PrestaShopBundle\Twig\HookExtension')->renderHook("displayAdminProductsSeoStepBottom", ["id_product" => ($context["productId"] ?? null)]);
echo "
</div>
";
}
// line 30
public function block_product_catalog_tool_serp($context, array $blocks = [])
{
// line 31
echo " <p>";
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Here is a preview of your search engine result, play with it!", [], "Admin.Catalog.Feature"), "html", null, true);
echo "</p>
";
// line 33
echo " <div id=\"serp-app\"></div>
";
}
public function getTemplateName()
{
return "@Product/ProductPage/Forms/form_seo.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 258 => 33, 253 => 31, 250 => 30, 243 => 134, 238 => 132, 229 => 126, 225 => 125, 221 => 124, 209 => 115, 205 => 114, 201 => 113, 192 => 107, 188 => 106, 184 => 105, 174 => 98, 169 => 96, 161 => 90, 155 => 88, 150 => 86, 148 => 85, 144 => 83, 139 => 81, 134 => 80, 129 => 78, 124 => 77, 122 => 76, 110 => 67, 104 => 64, 98 => 61, 93 => 59, 88 => 57, 79 => 51, 75 => 50, 71 => 49, 60 => 41, 56 => 40, 52 => 39, 46 => 35, 44 => 30, 39 => 28, 35 => 27, 31 => 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 Source("", "@Product/ProductPage/Forms/form_seo.html.twig", "/Volumes/Dev/Sources/Clients/taome/Nouveau_site/www/src/PrestaShopBundle/Resources/views/Admin/Product/ProductPage/Forms/form_seo.html.twig");
}
}