var/cache/dev/twig/56/564b1b29b1a69082aa3e0c3e206293f0.php line 108

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* meta.twig */
  14. class __TwigTemplate_157277f22f2922586ad465983c663ba3 extends \Eccube\Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""meta.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""meta.twig"));
  33.         // line 1
  34.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'1$this->source); })()), "request", [], "any"falsefalsefalse1), "get", [=> "_route"], "method"falsefalsefalse1) == "product_detail")) {
  35.             // line 2
  36.             echo "    ";
  37.             $context["meta_og_type"] = "og:product";
  38.             // line 3
  39.             echo "    ";
  40.             $context["meta_description"] = _twig_default_filter(((twig_get_attribute($this->env$this->source, ($context["Product"] ?? null), "description_list", [], "any"truetruefalse3)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["Product"] ?? null), "description_list", [], "any"falsefalsefalse3), twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'3$this->source); })()), "description_detail", [], "any"falsefalsefalse3))) : (twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'3$this->source); })()), "description_detail", [], "any"falsefalsefalse3))), twig_get_attribute($this->env$this->source, (isset($context["Page"]) || array_key_exists("Page"$context) ? $context["Page"] : (function () { throw new RuntimeError('Variable "Page" does not exist.'3$this->source); })()), "description", [], "any"falsefalsefalse3));
  41.             // line 4
  42.             echo "    ";
  43.             $context["meta_canonical"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'4$this->source); })()), "id", [], "any"falsefalsefalse4)]);
  44.             // line 5
  45.             echo "    <meta property=\"og:title\" content=\"";
  46.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'5$this->source); })()), "name", [], "any"falsefalsefalse5), "html"nulltrue);
  47.             echo "\" />
  48.     <meta property=\"og:image\" content=\"";
  49.             // line 6
  50.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'6$this->source); })()), "main_list_image", [], "any"falsefalsefalse6)), "save_image")), "html"nulltrue);
  51.             echo "\" />
  52.     <meta property=\"product:price:amount\" content=\"";
  53.             // line 7
  54.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'7$this->source); })()), "getPrice02IncTaxMin", [], "any"falsefalsefalse7), "html"nulltrue);
  55.             echo "\"/>
  56.     <meta property=\"product:price:currency\" content=\"";
  57.             // line 8
  58.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["eccube_config"]) || array_key_exists("eccube_config"$context) ? $context["eccube_config"] : (function () { throw new RuntimeError('Variable "eccube_config" does not exist.'8$this->source); })()), "currency", [], "any"falsefalsefalse8), "html"nulltrue);
  59.             echo "\"/>
  60.     <meta property=\"product:product_link\" content=\"";
  61.             // line 9
  62.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'9$this->source); })()), "id", [], "any"falsefalsefalse9)]), "html"nulltrue);
  63.             echo "\"/>
  64.     <meta property=\"product:retailer_title\" content=\"";
  65.             // line 10
  66.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["BaseInfo"]) || array_key_exists("BaseInfo"$context) ? $context["BaseInfo"] : (function () { throw new RuntimeError('Variable "BaseInfo" does not exist.'10$this->source); })()), "shop_name", [], "any"falsefalsefalse10), "html"nulltrue);
  67.             echo "\"/>
  68.     ";
  69.             // line 11
  70.             if ( !twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'11$this->source); })()), "stock_find", [], "any"falsefalsefalse11)) {
  71.                 // line 12
  72.                 echo "        <meta name=\"robots\" content=\"noindex\">
  73.     ";
  74.             }
  75.         } elseif ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 14
  76. (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'14$this->source); })()), "request", [], "any"falsefalsefalse14), "get", [=> "_route"], "method"falsefalsefalse14) == "product_list")) {
  77.             // line 15
  78.             echo "    ";
  79.             $context["meta_canonical"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list", ["category_id" => ((twig_get_attribute($this->env$this->source, ($context["Category"] ?? null), "id", [], "any"truetruefalse15)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["Category"] ?? null), "id", [], "any"falsefalsefalse15), null)) : (null))]);
  80.             // line 16
  81.             echo "    ";
  82.             if ((twig_length_filter($this->env, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'16$this->source); })())) == 0)) {
  83.                 // line 17
  84.                 echo "        <meta name=\"robots\" content=\"noindex\">
  85.     ";
  86.             }
  87.         } elseif ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 19
  88. (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'19$this->source); })()), "request", [], "any"falsefalsefalse19), "get", [=> "_route"], "method"falsefalsefalse19) == "homepage")) {
  89.             // line 20
  90.             echo "    ";
  91.             $context["meta_og_type"] = "website";
  92.             // line 21
  93.             echo "    ";
  94.             $context["meta_canonical"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  95.         } elseif (((        // line 22
  96. array_key_exists("Page"$context) && (twig_get_attribute($this->env$this->source, (isset($context["Page"]) || array_key_exists("Page"$context) ? $context["Page"] : (function () { throw new RuntimeError('Variable "Page" does not exist.'22$this->source); })()), "edit_type", [], "any"falsefalsefalse22) == 0)) && twig_get_attribute($this->env$this->source, ($context["Page"] ?? null), "url", [], "any"truetruefalse22))) {
  97.             // line 23
  98.             echo "    ";
  99.             $context["meta_canonical"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl(twig_get_attribute($this->env$this->source, (isset($context["eccube_config"]) || array_key_exists("eccube_config"$context) ? $context["eccube_config"] : (function () { throw new RuntimeError('Variable "eccube_config" does not exist.'23$this->source); })()), "eccube_user_data_route", [], "any"falsefalsefalse23), ["route" => twig_get_attribute($this->env$this->source, (isset($context["Page"]) || array_key_exists("Page"$context) ? $context["Page"] : (function () { throw new RuntimeError('Variable "Page" does not exist.'23$this->source); })()), "url", [], "any"falsefalsefalse23)]);
  100.         }
  101.         // line 25
  102.         echo "
  103. <meta property=\"og:type\" content=\"";
  104.         // line 26
  105.         echo twig_escape_filter($this->env, ((array_key_exists("meta_og_type"$context)) ? (_twig_default_filter((isset($context["meta_og_type"]) || array_key_exists("meta_og_type"$context) ? $context["meta_og_type"] : (function () { throw new RuntimeError('Variable "meta_og_type" does not exist.'26$this->source); })()), "article")) : ("article")), "html"nulltrue);
  106.         echo "\"/>
  107. <meta property=\"og:site_name\" content=\"";
  108.         // line 27
  109.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["BaseInfo"]) || array_key_exists("BaseInfo"$context) ? $context["BaseInfo"] : (function () { throw new RuntimeError('Variable "BaseInfo" does not exist.'27$this->source); })()), "shop_name", [], "any"falsefalsefalse27), "html"nulltrue);
  110.         echo "\"/>
  111. ";
  112.         // line 28
  113.         $context["meta_description"] = ((array_key_exists("meta_description"$context)) ? (_twig_default_filter((isset($context["meta_description"]) || array_key_exists("meta_description"$context) ? $context["meta_description"] : (function () { throw new RuntimeError('Variable "meta_description" does not exist.'28$this->source); })()), twig_get_attribute($this->env$this->source, (isset($context["Page"]) || array_key_exists("Page"$context) ? $context["Page"] : (function () { throw new RuntimeError('Variable "Page" does not exist.'28$this->source); })()), "description", [], "any"falsefalsefalse28))) : (twig_get_attribute($this->env$this->source, (isset($context["Page"]) || array_key_exists("Page"$context) ? $context["Page"] : (function () { throw new RuntimeError('Variable "Page" does not exist.'28$this->source); })()), "description", [], "any"falsefalsefalse28)));
  114.         // line 29
  115.         if ((isset($context["meta_description"]) || array_key_exists("meta_description"$context) ? $context["meta_description"] : (function () { throw new RuntimeError('Variable "meta_description" does not exist.'29$this->source); })())) {
  116.             // line 30
  117.             echo "    <meta name=\"description\" content=\"";
  118.             echo twig_escape_filter($this->envtwig_slice($this->envtwig_striptags((isset($context["meta_description"]) || array_key_exists("meta_description"$context) ? $context["meta_description"] : (function () { throw new RuntimeError('Variable "meta_description" does not exist.'30$this->source); })())), 0120), "html"nulltrue);
  119.             echo "\">
  120.     <meta property=\"og:description\" content=\"";
  121.             // line 31
  122.             echo twig_escape_filter($this->envtwig_slice($this->envtwig_striptags((isset($context["meta_description"]) || array_key_exists("meta_description"$context) ? $context["meta_description"] : (function () { throw new RuntimeError('Variable "meta_description" does not exist.'31$this->source); })())), 0120), "html"nulltrue);
  123.             echo "\"/>
  124. ";
  125.         }
  126.         // line 33
  127.         if (((array_key_exists("meta_canonical"$context)) ? (_twig_default_filter((isset($context["meta_canonical"]) || array_key_exists("meta_canonical"$context) ? $context["meta_canonical"] : (function () { throw new RuntimeError('Variable "meta_canonical" does not exist.'33$this->source); })()))) : (""))) {
  128.             // line 34
  129.             echo "    ";
  130.             // line 35
  131.             echo "    ";
  132.             // line 36
  133.             echo "    ";
  134.             if ((array_key_exists("Category"$context) && (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'36$this->source); })()))) {
  135.                 // line 37
  136.                 echo "        ";
  137.                 if (((array_key_exists("pagination"$context) && twig_get_attribute($this->env$this->source, ($context["pagination"] ?? null), "paginationData", [], "any"truetruefalse37)) && (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'37$this->source); })()), "paginationData", [], "any"falsefalsefalse37), "pageCount", [], "any"falsefalsefalse37) > 1))) {
  138.                     // line 38
  139.                     echo "            ";
  140.                     // line 39
  141.                     echo "            ";
  142.                     if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'39$this->source); })()), "paginationData", [], "any"falsefalsefalse39), "current", [], "any"falsefalsefalse39) == 1)) {
  143.                         // line 40
  144.                         echo "            <meta property=\"og:url\" content=\"";
  145.                         echo twig_escape_filter($this->env, (isset($context["meta_canonical"]) || array_key_exists("meta_canonical"$context) ? $context["meta_canonical"] : (function () { throw new RuntimeError('Variable "meta_canonical" does not exist.'40$this->source); })()), "html"nulltrue);
  146.                         echo "\"/>
  147.             <link rel=\"next\" href=\"";
  148.                         // line 41
  149.                         echo twig_escape_filter($this->env, (isset($context["meta_canonical"]) || array_key_exists("meta_canonical"$context) ? $context["meta_canonical"] : (function () { throw new RuntimeError('Variable "meta_canonical" does not exist.'41$this->source); })()), "html"nulltrue);
  150.                         echo "&pageno=2\" title=\"";
  151.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'41$this->source); })()), "name", [], "any"falsefalsefalse41), "html"nulltrue);
  152.                         echo " ";
  153.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("%pageno%ページ目", ["%pageno%" => 2]), "html"nulltrue);
  154.                         echo "\">
  155.             <link rel=\"canonical\" href=\"";
  156.                         // line 42
  157.                         echo twig_escape_filter($this->env, (isset($context["meta_canonical"]) || array_key_exists("meta_canonical"$context) ? $context["meta_canonical"] : (function () { throw new RuntimeError('Variable "meta_canonical" does not exist.'42$this->source); })()), "html"nulltrue);
  158.                         echo "\" />
  159.             ";
  160.                         // line 44
  161.                         echo "            ";
  162.                     } elseif ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'44$this->source); })()), "paginationData", [], "any"falsefalsefalse44), "last", [], "any"falsefalsefalse44) == twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'44$this->source); })()), "paginationData", [], "any"falsefalsefalse44), "current", [], "any"falsefalsefalse44))) {
  163.                         // line 45
  164.                         echo "            <meta property=\"og:url\" content=\"";
  165.                         echo twig_escape_filter($this->env, (isset($context["meta_canonical"]) || array_key_exists("meta_canonical"$context) ? $context["meta_canonical"] : (function () { throw new RuntimeError('Variable "meta_canonical" does not exist.'45$this->source); })()), "html"nulltrue);
  166.                         echo "&pageno=";
  167.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'45$this->source); })()), "paginationData", [], "any"falsefalsefalse45), "last", [], "any"falsefalsefalse45), "html"nulltrue);
  168.                         echo "\"/>
  169.             <link rel=\"prev\" href=\"";
  170.                         // line 46
  171.                         echo twig_escape_filter($this->env, (isset($context["meta_canonical"]) || array_key_exists("meta_canonical"$context) ? $context["meta_canonical"] : (function () { throw new RuntimeError('Variable "meta_canonical" does not exist.'46$this->source); })()), "html"nulltrue);
  172.                         echo "&pageno=";
  173.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'46$this->source); })()), "paginationData", [], "any"falsefalsefalse46), "previous", [], "any"falsefalsefalse46), "html"nulltrue);
  174.                         echo "\" title=\"";
  175.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'46$this->source); })()), "name", [], "any"falsefalsefalse46), "html"nulltrue);
  176.                         echo " ";
  177.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("%pageno%ページ目", ["%pageno%" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'46$this->source); })()), "paginationData", [], "any"falsefalsefalse46), "previous", [], "any"falsefalsefalse46)]), "html"nulltrue);
  178.                         echo "\">
  179.             <link rel=\"canonical\" href=\"";
  180.                         // line 47
  181.                         echo twig_escape_filter($this->env, (isset($context["meta_canonical"]) || array_key_exists("meta_canonical"$context) ? $context["meta_canonical"] : (function () { throw new RuntimeError('Variable "meta_canonical" does not exist.'47$this->source); })()), "html"nulltrue);
  182.                         echo "&pageno=";
  183.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'47$this->source); })()), "paginationData", [], "any"falsefalsefalse47), "last", [], "any"falsefalsefalse47), "html"nulltrue);
  184.                         echo "\" />
  185.             ";
  186.                         // line 49
  187.                         echo "            ";
  188.                     } else {
  189.                         // line 50
  190.                         echo "            <meta property=\"og:url\" content=\"";
  191.                         echo twig_escape_filter($this->env, (isset($context["meta_canonical"]) || array_key_exists("meta_canonical"$context) ? $context["meta_canonical"] : (function () { throw new RuntimeError('Variable "meta_canonical" does not exist.'50$this->source); })()), "html"nulltrue);
  192.                         echo "&pageno=";
  193.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'50$this->source); })()), "paginationData", [], "any"falsefalsefalse50), "current", [], "any"falsefalsefalse50), "html"nulltrue);
  194.                         echo "\"/>
  195.             <link rel=\"next\" href=\"";
  196.                         // line 51
  197.                         echo twig_escape_filter($this->env, (isset($context["meta_canonical"]) || array_key_exists("meta_canonical"$context) ? $context["meta_canonical"] : (function () { throw new RuntimeError('Variable "meta_canonical" does not exist.'51$this->source); })()), "html"nulltrue);
  198.                         echo "&pageno=";
  199.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'51$this->source); })()), "paginationData", [], "any"falsefalsefalse51), "next", [], "any"falsefalsefalse51), "html"nulltrue);
  200.                         echo "\" title=\"";
  201.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'51$this->source); })()), "name", [], "any"falsefalsefalse51), "html"nulltrue);
  202.                         echo " ";
  203.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("%pageno%ページ目", ["%pageno%" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'51$this->source); })()), "paginationData", [], "any"falsefalsefalse51), "next", [], "any"falsefalsefalse51)]), "html"nulltrue);
  204.                         echo "\">
  205.             <link rel=\"prev\" href=\"";
  206.                         // line 52
  207.                         echo twig_escape_filter($this->env, (isset($context["meta_canonical"]) || array_key_exists("meta_canonical"$context) ? $context["meta_canonical"] : (function () { throw new RuntimeError('Variable "meta_canonical" does not exist.'52$this->source); })()), "html"nulltrue);
  208.                         echo "&pageno=";
  209.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'52$this->source); })()), "paginationData", [], "any"falsefalsefalse52), "previous", [], "any"falsefalsefalse52), "html"nulltrue);
  210.                         echo "\" title=\"";
  211.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'52$this->source); })()), "name", [], "any"falsefalsefalse52), "html"nulltrue);
  212.                         echo " ";
  213.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("%pageno%ページ目", ["%pageno%" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'52$this->source); })()), "paginationData", [], "any"falsefalsefalse52), "previous", [], "any"falsefalsefalse52)]), "html"nulltrue);
  214.                         echo "\">
  215.             <link rel=\"canonical\" href=\"";
  216.                         // line 53
  217.                         echo twig_escape_filter($this->env, (isset($context["meta_canonical"]) || array_key_exists("meta_canonical"$context) ? $context["meta_canonical"] : (function () { throw new RuntimeError('Variable "meta_canonical" does not exist.'53$this->source); })()), "html"nulltrue);
  218.                         echo "&pageno=";
  219.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'53$this->source); })()), "paginationData", [], "any"falsefalsefalse53), "current", [], "any"falsefalsefalse53), "html"nulltrue);
  220.                         echo "\" />
  221.             ";
  222.                     }
  223.                     // line 55
  224.                     echo "        ";
  225.                 } else {
  226.                     // line 56
  227.                     echo "        ";
  228.                     // line 57
  229.                     echo "        <meta property=\"og:url\" content=\"";
  230.                     echo twig_escape_filter($this->env, (isset($context["meta_canonical"]) || array_key_exists("meta_canonical"$context) ? $context["meta_canonical"] : (function () { throw new RuntimeError('Variable "meta_canonical" does not exist.'57$this->source); })()), "html"nulltrue);
  231.                     echo "\"/>
  232.         <link rel=\"canonical\" href=\"";
  233.                     // line 58
  234.                     echo twig_escape_filter($this->env, (isset($context["meta_canonical"]) || array_key_exists("meta_canonical"$context) ? $context["meta_canonical"] : (function () { throw new RuntimeError('Variable "meta_canonical" does not exist.'58$this->source); })()), "html"nulltrue);
  235.                     echo "\" />
  236.         ";
  237.                 }
  238.                 // line 60
  239.                 echo "    ";
  240.                 // line 61
  241.                 echo "    ";
  242.             } else {
  243.                 // line 62
  244.                 echo "    <meta property=\"og:url\" content=\"";
  245.                 echo twig_escape_filter($this->env, (isset($context["meta_canonical"]) || array_key_exists("meta_canonical"$context) ? $context["meta_canonical"] : (function () { throw new RuntimeError('Variable "meta_canonical" does not exist.'62$this->source); })()), "html"nulltrue);
  246.                 echo "\"/>
  247.     <link rel=\"canonical\" href=\"";
  248.                 // line 63
  249.                 echo twig_escape_filter($this->env, (isset($context["meta_canonical"]) || array_key_exists("meta_canonical"$context) ? $context["meta_canonical"] : (function () { throw new RuntimeError('Variable "meta_canonical" does not exist.'63$this->source); })()), "html"nulltrue);
  250.                 echo "\" />
  251.     ";
  252.             }
  253.         }
  254.         
  255.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  256.         
  257.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  258.     }
  259.     public function getTemplateName()
  260.     {
  261.         return "meta.twig";
  262.     }
  263.     public function isTraitable()
  264.     {
  265.         return false;
  266.     }
  267.     public function getDebugInfo()
  268.     {
  269.         return array (  258 => 63,  253 => 62,  250 => 61,  248 => 60,  243 => 58,  238 => 57,  236 => 56,  233 => 55,  226 => 53,  216 => 52,  206 => 51,  199 => 50,  196 => 49,  190 => 47,  180 => 46,  173 => 45,  170 => 44,  166 => 42,  158 => 41,  153 => 40,  150 => 39,  148 => 38,  145 => 37,  142 => 36,  140 => 35,  138 => 34,  136 => 33,  131 => 31,  126 => 30,  124 => 29,  122 => 28,  118 => 27,  114 => 26,  111 => 25,  107 => 23,  105 => 22,  102 => 21,  99 => 20,  97 => 19,  93 => 17,  90 => 16,  87 => 15,  85 => 14,  81 => 12,  79 => 11,  75 => 10,  71 => 9,  67 => 8,  63 => 7,  59 => 6,  54 => 5,  51 => 4,  48 => 3,  45 => 2,  43 => 1,);
  270.     }
  271.     public function getSourceContext()
  272.     {
  273.         return new Source("{% if app.request.get('_route') == 'product_detail' %}
  274.     {% set meta_og_type = \"og:product\" %}
  275.     {% set meta_description = Product.description_list | default(Product.description_detail) | default(Page.description) %}
  276.     {% set meta_canonical = url('product_detail', {'id': Product.id}) %}
  277.     <meta property=\"og:title\" content=\"{{ Product.name }}\" />
  278.     <meta property=\"og:image\" content=\"{{ absolute_url(asset(Product.main_list_image|no_image_product, 'save_image')) }}\" />
  279.     <meta property=\"product:price:amount\" content=\"{{ Product.getPrice02IncTaxMin }}\"/>
  280.     <meta property=\"product:price:currency\" content=\"{{ eccube_config.currency }}\"/>
  281.     <meta property=\"product:product_link\" content=\"{{ url('product_detail', {'id': Product.id}) }}\"/>
  282.     <meta property=\"product:retailer_title\" content=\"{{ BaseInfo.shop_name }}\"/>
  283.     {% if not Product.stock_find %}
  284.         <meta name=\"robots\" content=\"noindex\">
  285.     {% endif %}
  286. {% elseif app.request.get('_route') == 'product_list' %}
  287.     {% set meta_canonical = url('product_list', {'category_id': Category.id|default(null)}) %}
  288.     {% if pagination|length == 0 %}
  289.         <meta name=\"robots\" content=\"noindex\">
  290.     {% endif %}
  291. {% elseif app.request.get('_route') == 'homepage' %}
  292.     {% set meta_og_type = 'website' %}
  293.     {% set meta_canonical = url('homepage') %}
  294. {% elseif Page is defined and Page.edit_type == 0 and Page.url is defined %}
  295.     {% set meta_canonical = url(eccube_config.eccube_user_data_route, {'route': Page.url}) %}
  296. {% endif %}
  297. <meta property=\"og:type\" content=\"{{ meta_og_type|default('article') }}\"/>
  298. <meta property=\"og:site_name\" content=\"{{ BaseInfo.shop_name }}\"/>
  299. {% set meta_description = meta_description | default(Page.description) %}
  300. {% if meta_description %}
  301.     <meta name=\"description\" content=\"{{ meta_description|striptags|slice(0,120) }}\">
  302.     <meta property=\"og:description\" content=\"{{ meta_description|striptags|slice(0,120) }}\"/>
  303. {% endif %}
  304. {% if meta_canonical|default() %}
  305.     {# canonical url #}
  306.     {# Product list #}
  307.     {% if Category is defined and Category %}
  308.         {% if pagination is defined and pagination.paginationData is defined and pagination.paginationData.pageCount > 1 %}
  309.             {# 最初のページ #}
  310.             {% if pagination.paginationData.current == 1  %}
  311.             <meta property=\"og:url\" content=\"{{ meta_canonical }}\"/>
  312.             <link rel=\"next\" href=\"{{ meta_canonical }}&pageno=2\" title=\"{{ Category.name }} {{ '%pageno%ページ目'|trans({ '%pageno%': 2 }) }}\">
  313.             <link rel=\"canonical\" href=\"{{ meta_canonical }}\" />
  314.             {# 最後のページ #}
  315.             {% elseif pagination.paginationData.last == pagination.paginationData.current %}
  316.             <meta property=\"og:url\" content=\"{{ meta_canonical }}&pageno={{ pagination.paginationData.last }}\"/>
  317.             <link rel=\"prev\" href=\"{{ meta_canonical }}&pageno={{ pagination.paginationData.previous }}\" title=\"{{ Category.name }} {{ '%pageno%ページ目'|trans({ '%pageno%': pagination.paginationData.previous }) }}\">
  318.             <link rel=\"canonical\" href=\"{{ meta_canonical }}&pageno={{ pagination.paginationData.last }}\" />
  319.             {# 途中のページ #}
  320.             {% else %}
  321.             <meta property=\"og:url\" content=\"{{ meta_canonical }}&pageno={{ pagination.paginationData.current }}\"/>
  322.             <link rel=\"next\" href=\"{{ meta_canonical }}&pageno={{ pagination.paginationData.next }}\" title=\"{{ Category.name }} {{ '%pageno%ページ目'|trans({ '%pageno%': pagination.paginationData.next }) }}\">
  323.             <link rel=\"prev\" href=\"{{ meta_canonical }}&pageno={{ pagination.paginationData.previous }}\" title=\"{{ Category.name }} {{ '%pageno%ページ目'|trans({ '%pageno%': pagination.paginationData.previous }) }}\">
  324.             <link rel=\"canonical\" href=\"{{ meta_canonical }}&pageno={{ pagination.paginationData.current }}\" />
  325.             {% endif %}
  326.         {% else %}
  327.         {# ページング無し #}
  328.         <meta property=\"og:url\" content=\"{{ meta_canonical }}\"/>
  329.         <link rel=\"canonical\" href=\"{{ meta_canonical }}\" />
  330.         {% endif %}
  331.     {# Other #}
  332.     {% else %}
  333.     <meta property=\"og:url\" content=\"{{ meta_canonical }}\"/>
  334.     <link rel=\"canonical\" href=\"{{ meta_canonical }}\" />
  335.     {% endif %}
  336. {% endif %}
  337. ""meta.twig""/home/xs230941/tas-lab.net/public_html/src/Eccube/Resource/template/default/meta.twig");
  338.     }
  339. }