var/cache/dev/twig/c1/c16227faf9464cebe5be7be383204925.php line 54

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. /* Category/index.twig */
  14. class __TwigTemplate_30100296c75fda3114336e9288f77863 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->blocks = [
  23.             'stylesheet' => [$this'block_stylesheet'],
  24.             'main' => [$this'block_main'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 8
  30.         return "default_frame.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Category/index.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Category/index.twig"));
  39.         // line 10
  40.         $context["mypageno"] = "index";
  41.         // line 12
  42.         $context["body_class"] = "mypage";
  43.         // line 8
  44.         $this->parent $this->loadTemplate("default_frame.twig""Category/index.twig"8);
  45.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 14
  52.     public function block_stylesheet($context, array $blocks = [])
  53.     {
  54.         $macros $this->macros;
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  59.         // line 15
  60.         echo "    <style>
  61.         .header-photo {
  62.             position: relative;
  63.         }
  64.         .header-photo div {
  65.             position: absolute;
  66.             top: 50%;
  67.             left: 50%;
  68.             -ms-transform: translate(-50%,-50%);
  69.             -webkit-transform: translate(-50%,-50%);
  70.             transform: translate(-50%,-50%);
  71.             margin:0;/*余計な隙間を除く*/
  72.             padding:0;/*余計な隙間を除く*/
  73.             color: white;/*文字色*/
  74.             font-size: 40px;/*文字サイズ*/
  75.             text-align:center;/*pタグ内で更に中央寄せ*/
  76.             font-family: 'Quicksand',sans-serif;
  77.             font-weight: \"bold\";
  78.         }
  79.         .header-photo img {
  80.             width: 99.5%;
  81.         }
  82.         .artists-title {
  83.             margin-left: 5%;
  84. \t\t\tfont-weight: bold;
  85.         }
  86.         .img-wrapper p {
  87.             color: black;
  88.         }
  89.         /* 922以下の時 */
  90.         @media screen and (max-width: 580px) {
  91.             .header-photo div {
  92.                 font-size: 30px;
  93.             }
  94.         }
  95.     </style>
  96. ";
  97.         
  98.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  99.         
  100.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  101.     }
  102.     // line 57
  103.     public function block_main($context, array $blocks = [])
  104.     {
  105.         $macros $this->macros;
  106.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  107.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  108.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  109.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  110.         // line 58
  111.         echo "
  112. <div class=\"header-photo\">
  113.     <img src=\"https://uploads-ssl.webflow.com/631e594043d13c32e2c927d9/631e60467a1cf632e0fb11da_high-road.jpg\">
  114.     <div class=\"artists-title\">カテゴリー</div>
  115. </div>
  116. <div class=\"artCategory-flex-page\">
  117. \t";
  118.         // line 66
  119.         $context['_parent'] = $context;
  120.         $context['_seq'] = twig_ensure_traversable((isset($context["categories"]) || array_key_exists("categories"$context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.'66$this->source); })()));
  121.         foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  122.             // line 67
  123.             echo "\t\t<div class=\"img-wrapper\">
  124. \t\t\t<a href=\"/products/list?category_id=";
  125.             // line 68
  126.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["category"], "id", [], "any"falsefalsefalse68), "html"nulltrue);
  127.             echo "\">
  128. \t\t\t\t<img src=\"";
  129.             // line 69
  130.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(twig_get_attribute($this->env$this->source$context["category"], "category_image", [], "any"falsefalsefalse69)), "user_data"), "html"nulltrue);
  131.             echo "\" alt=category.name>
  132. \t\t\t\t<p>";
  133.             // line 70
  134.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["category"], "name", [], "any"falsefalsefalse70), "html"nulltrue);
  135.             echo "</p>
  136. \t\t\t</a>
  137. \t\t</div>
  138. \t";
  139.         }
  140.         $_parent $context['_parent'];
  141.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  142.         $context array_intersect_key($context$_parent) + $_parent;
  143.         // line 74
  144.         echo "</div>
  145. ";
  146.         
  147.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  148.         
  149.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  150.     }
  151.     public function getTemplateName()
  152.     {
  153.         return "Category/index.twig";
  154.     }
  155.     public function isTraitable()
  156.     {
  157.         return false;
  158.     }
  159.     public function getDebugInfo()
  160.     {
  161.         return array (  169 => 74,  159 => 70,  155 => 69,  151 => 68,  148 => 67,  144 => 66,  134 => 58,  124 => 57,  74 => 15,  64 => 14,  53 => 8,  51 => 12,  49 => 10,  36 => 8,);
  162.     }
  163.     public function getSourceContext()
  164.     {
  165.         return new Source("{#
  166. This file is part of EC-CUBE
  167. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  168. http://www.ec-cube.co.jp/
  169. For the full copyright and license information, please view the LICENSE
  170. file that was distributed with this source code.
  171. #}
  172. {% extends 'default_frame.twig' %}
  173. {% set mypageno = 'index' %}
  174. {% set body_class = 'mypage' %}
  175. {% block stylesheet %}
  176.     <style>
  177.         .header-photo {
  178.             position: relative;
  179.         }
  180.         .header-photo div {
  181.             position: absolute;
  182.             top: 50%;
  183.             left: 50%;
  184.             -ms-transform: translate(-50%,-50%);
  185.             -webkit-transform: translate(-50%,-50%);
  186.             transform: translate(-50%,-50%);
  187.             margin:0;/*余計な隙間を除く*/
  188.             padding:0;/*余計な隙間を除く*/
  189.             color: white;/*文字色*/
  190.             font-size: 40px;/*文字サイズ*/
  191.             text-align:center;/*pタグ内で更に中央寄せ*/
  192.             font-family: 'Quicksand',sans-serif;
  193.             font-weight: \"bold\";
  194.         }
  195.         .header-photo img {
  196.             width: 99.5%;
  197.         }
  198.         .artists-title {
  199.             margin-left: 5%;
  200. \t\t\tfont-weight: bold;
  201.         }
  202.         .img-wrapper p {
  203.             color: black;
  204.         }
  205.         /* 922以下の時 */
  206.         @media screen and (max-width: 580px) {
  207.             .header-photo div {
  208.                 font-size: 30px;
  209.             }
  210.         }
  211.     </style>
  212. {% endblock %}
  213. {% block main %}
  214. <div class=\"header-photo\">
  215.     <img src=\"https://uploads-ssl.webflow.com/631e594043d13c32e2c927d9/631e60467a1cf632e0fb11da_high-road.jpg\">
  216.     <div class=\"artists-title\">カテゴリー</div>
  217. </div>
  218. <div class=\"artCategory-flex-page\">
  219. \t{% for category in categories %}
  220. \t\t<div class=\"img-wrapper\">
  221. \t\t\t<a href=\"/products/list?category_id={{category.id}}\">
  222. \t\t\t\t<img src=\"{{ asset(category.category_image |no_image_product, 'user_data') }}\" alt=category.name>
  223. \t\t\t\t<p>{{ category.name }}</p>
  224. \t\t\t</a>
  225. \t\t</div>
  226. \t{% endfor %}
  227. </div>
  228. {% endblock %}""Category/index.twig""/home/xs230941/tas-lab.net/public_html/app/template/default/Category/index.twig");
  229.     }
  230. }