var/cache/dev/twig/68/683bd1305efc4376c0dc80d4b9df0024.php line 52

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. /* @user_data/store_info.twig */
  14. class __TwigTemplate_136a54a29f7f766a830b0ab01a3d0e12 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.             'javascript' => [$this'block_javascript'],
  24.             'stylesheet' => [$this'block_stylesheet'],
  25.             'main' => [$this'block_main'],
  26.         ];
  27.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  28.         $this->checkSecurity();
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 1
  33.         return "default_frame.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@user_data/store_info.twig"));
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@user_data/store_info.twig"));
  42.         $this->parent $this->loadTemplate("default_frame.twig""@user_data/store_info.twig"1);
  43.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  46.         
  47.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  48.     }
  49.     // line 3
  50.     public function block_javascript($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  57.         // line 4
  58.         echo "<script>
  59. </script>
  60. ";
  61.         
  62.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  63.         
  64.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  65.     }
  66.     // line 8
  67.     public function block_stylesheet($context, array $blocks = [])
  68.     {
  69.         $macros $this->macros;
  70.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  71.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  72.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  73.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  74.         // line 9
  75.         echo "<style>
  76.    .fcolbox .subtxt1 p:nth-child(odd){
  77.       max-width: 10em;
  78.    }
  79.    .def_btn3{
  80.        color:#fff;
  81.        max-width:800px;
  82.        margin:0 auto 2em;
  83.     border-radius: 5px;
  84.     -webkit-border-radius: 5px;
  85.     -moz-border-radius: 5px;
  86.    }
  87.    .def_btn3:hover,
  88.    .def_btn3:focus,
  89.    .def_btn3:active{
  90.        color:#fff;
  91.    }
  92. </style>
  93. ";
  94.         
  95.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  96.         
  97.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  98.     }
  99.     // line 29
  100.     public function block_main($context, array $blocks = [])
  101.     {
  102.         $macros $this->macros;
  103.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  104.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  105.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  106.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  107.         // line 30
  108.         echo "<div class=\"comuni\"><h1 class=\"title_bar nikke\">店舗情報</h1>
  109. <p style=\"text-align:center\">営業時間は、各店舗・時期によって異なります。詳細については、下記「お知らせ・ブログ」または当社SNSをご確認ください。</p>
  110. <a class=\"def_btn3\" target=\"blank\" href=\"https://www.kimpara.jp/blog\">お知らせ・ブログ – 制服のキンパラ</a>
  111. <!--内容ここから-->
  112.    <div class=\"fcolbox shopinfo\">
  113.       ";
  114.         // line 35
  115.         $context['_parent'] = $context;
  116.         $context['_seq'] = twig_ensure_traversable((isset($context["Stores"]) || array_key_exists("Stores"$context) ? $context["Stores"] : (function () { throw new RuntimeError('Variable "Stores" does not exist.'35$this->source); })()));
  117.         foreach ($context['_seq'] as $context["_key"] => $context["Store"]) {
  118.             // line 36
  119.             echo "         ";
  120.             if (twig_get_attribute($this->env$this->source$context["Store"], "visible", [], "any"falsefalsetrue36)) {
  121.                 // line 37
  122.                 echo "         <div class=\"col2\">
  123.             <h5>";
  124.                 // line 38
  125.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Store"], "store_name", [], "any"falsefalsetrue38), 38$this->source), "html"nulltrue);
  126.                 echo "</h5>
  127.             <div class=\"subtxt1\">
  128.                <p>所在地</p>
  129.                <p>〒";
  130.                 // line 41
  131.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Store"], "zip01", [], "any"falsefalsetrue41), 41$this->source), "html"nulltrue);
  132.                 echo "-";
  133.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Store"], "zip02", [], "any"falsefalsetrue41), 41$this->source), "html"nulltrue);
  134.                 echo "<br>
  135.                   ";
  136.                 // line 42
  137.                 if ( !(null === twig_get_attribute($this->env$this->source$context["Store"], "Pref", [], "any"falsefalsetrue42))) {
  138.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["Store"], "Pref", [], "any"falsefalsetrue42), "name", [], "any"falsefalsetrue42), 42$this->source), "html"nulltrue);
  139.                 }
  140.                 // line 43
  141.                 echo "                  ";
  142.                 if ( !(null === twig_get_attribute($this->env$this->source$context["Store"], "addr01", [], "any"falsefalsetrue43))) {
  143.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Store"], "addr01", [], "any"falsefalsetrue43), 43$this->source), "html"nulltrue);
  144.                 }
  145.                 // line 44
  146.                 echo "                  ";
  147.                 if ( !(null === twig_get_attribute($this->env$this->source$context["Store"], "addr02", [], "any"falsefalsetrue44))) {
  148.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Store"], "addr02", [], "any"falsefalsetrue44), 44$this->source), "html"nulltrue);
  149.                 }
  150.                 // line 45
  151.                 echo "               </p>
  152.                ";
  153.                 // line 46
  154.                 if ( !(null === twig_get_attribute($this->env$this->source$context["Store"], "phone_number", [], "any"falsefalsetrue46))) {
  155.                     // line 47
  156.                     echo "               <p>電話番号</p>
  157.                <p>";
  158.                     // line 48
  159.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Store"], "phone_number", [], "any"falsefalsetrue48), 48$this->source), "html"nulltrue);
  160.                     echo "</p>
  161.                ";
  162.                 }
  163.                 // line 50
  164.                 echo "               ";
  165.                 if ( !(null === twig_get_attribute($this->env$this->source$context["Store"], "staff_name", [], "any"falsefalsetrue50))) {
  166.                     // line 51
  167.                     echo "               <p>担当者名</p>
  168.                <p>";
  169.                     // line 52
  170.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Store"], "staff_name", [], "any"falsefalsetrue52), 52$this->source), "html"nulltrue);
  171.                     echo "</p>
  172.                ";
  173.                 }
  174.                 // line 54
  175.                 echo "               <p>営業時間</p>
  176.                <p>
  177.                   ";
  178.                 // line 56
  179.                 if ( !(null === twig_get_attribute($this->env$this->source$context["Store"], "business_start_time", [], "any"falsefalsetrue56))) {
  180.                     echo twig_escape_filter($this->envtwig_date_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Store"], "business_start_time", [], "any"falsefalsetrue56), 56$this->source), "H:i"), "html"nulltrue);
  181.                 }
  182.                 echo "〜
  183.                   ";
  184.                 // line 57
  185.                 if ( !(null === twig_get_attribute($this->env$this->source$context["Store"], "business_end_time", [], "any"falsefalsetrue57))) {
  186.                     echo twig_escape_filter($this->envtwig_date_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Store"], "business_end_time", [], "any"falsefalsetrue57), 57$this->source), "H:i"), "html"nulltrue);
  187.                 }
  188.                 // line 58
  189.                 echo "               </p>
  190.                ";
  191.                 // line 59
  192.                 if ( !(null === twig_get_attribute($this->env$this->source$context["Store"], "email01", [], "any"falsefalsetrue59))) {
  193.                     // line 60
  194.                     echo "                  <p>メールアドレス1</p>
  195.                   <p>
  196.                      ";
  197.                     // line 62
  198.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Store"], "email01", [], "any"falsefalsetrue62), 62$this->source), "html"nulltrue);
  199.                     echo "
  200.                   </p>
  201.                ";
  202.                 }
  203.                 // line 65
  204.                 echo "               ";
  205.                 if ( !(null === twig_get_attribute($this->env$this->source$context["Store"], "email02", [], "any"falsefalsetrue65))) {
  206.                     // line 66
  207.                     echo "                  <p>メールアドレス2</p>
  208.                   <p>
  209.                      ";
  210.                     // line 68
  211.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Store"], "email02", [], "any"falsefalsetrue68), 68$this->source), "html"nulltrue);
  212.                     echo "
  213.                   </p>
  214.                ";
  215.                 }
  216.                 // line 71
  217.                 echo "               ";
  218.                 if ( !(null === twig_get_attribute($this->env$this->source$context["Store"], "fax_number", [], "any"falsefalsetrue71))) {
  219.                     // line 72
  220.                     echo "                  <p>FAX番号</p>
  221.                   <p>
  222.                      ";
  223.                     // line 74
  224.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Store"], "fax_number", [], "any"falsefalsetrue74), 74$this->source), "html"nulltrue);
  225.                     echo "
  226.                   </p>
  227.                ";
  228.                 }
  229.                 // line 77
  230.                 echo "               ";
  231.                 if (( !(null === twig_get_attribute($this->env$this->source, (isset($context["Address"]) || array_key_exists("Address"$context) ? $context["Address"] : (function () { throw new RuntimeError('Variable "Address" does not exist.'77$this->source); })()), twig_get_attribute($this->env$this->source$context["Store"], "store_id", [], "any"falsefalsetrue77), [], "array"falsefalsetrue77)) &&  !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["Address"]) || array_key_exists("Address"$context) ? $context["Address"] : (function () { throw new RuntimeError('Variable "Address" does not exist.'77$this->source); })()), twig_get_attribute($this->env$this->source$context["Store"], "store_id", [], "any"falsefalsetrue77), [], "array"falsefalsetrue77)))) {
  232.                     // line 78
  233.                     echo "               <iframe class=\"gmap_frame\" id=\"gmap_frame1\" src=\"https://maps.google.com/maps?q=";
  234.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["Address"]) || array_key_exists("Address"$context) ? $context["Address"] : (function () { throw new RuntimeError('Variable "Address" does not exist.'78$this->source); })()), twig_get_attribute($this->env$this->source$context["Store"], "store_id", [], "any"falsefalsetrue78), [], "array"falsefalsetrue78), 78$this->source), "html"nulltrue);
  235.                     echo "&amp;ie=UTF8&amp;iwloc=&amp;output=embed\" width=\"100%\" height=\"100%\" frameborder=\"0\" style=\"border:0\" allowfullscreen=\"\"></iframe>
  236.                ";
  237.                 }
  238.                 // line 80
  239.                 echo "            </div>
  240.          </div>
  241.          ";
  242.             }
  243.             // line 83
  244.             echo "      ";
  245.         }
  246.         $_parent $context['_parent'];
  247.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Store'], $context['_parent'], $context['loop']);
  248.         $context array_intersect_key($context$_parent) + $_parent;
  249.         // line 84
  250.         echo "   </div>
  251. <!--内容ここまで-->
  252. </div>
  253. ";
  254.         
  255.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  256.         
  257.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  258.     }
  259.     public function getTemplateName()
  260.     {
  261.         return "@user_data/store_info.twig";
  262.     }
  263.     public function isTraitable()
  264.     {
  265.         return false;
  266.     }
  267.     public function getDebugInfo()
  268.     {
  269.         return array (  274 => 84,  268 => 83,  263 => 80,  257 => 78,  254 => 77,  248 => 74,  244 => 72,  241 => 71,  235 => 68,  231 => 66,  228 => 65,  222 => 62,  218 => 60,  216 => 59,  213 => 58,  209 => 57,  203 => 56,  199 => 54,  194 => 52,  191 => 51,  188 => 50,  183 => 48,  180 => 47,  178 => 46,  175 => 45,  170 => 44,  165 => 43,  161 => 42,  155 => 41,  149 => 38,  146 => 37,  143 => 36,  139 => 35,  132 => 30,  122 => 29,  94 => 9,  84 => 8,  72 => 4,  62 => 3,  39 => 1,);
  270.     }
  271.     public function getSourceContext()
  272.     {
  273.         return new Source("{% extends 'default_frame.twig' %}
  274. {% block javascript %}
  275. <script>
  276. </script>
  277. {% endblock %}
  278. {% block stylesheet %}
  279. <style>
  280.    .fcolbox .subtxt1 p:nth-child(odd){
  281.       max-width: 10em;
  282.    }
  283.    .def_btn3{
  284.        color:#fff;
  285.        max-width:800px;
  286.        margin:0 auto 2em;
  287.     border-radius: 5px;
  288.     -webkit-border-radius: 5px;
  289.     -moz-border-radius: 5px;
  290.    }
  291.    .def_btn3:hover,
  292.    .def_btn3:focus,
  293.    .def_btn3:active{
  294.        color:#fff;
  295.    }
  296. </style>
  297. {% endblock %}
  298. {% block main %}
  299. <div class=\"comuni\"><h1 class=\"title_bar nikke\">店舗情報</h1>
  300. <p style=\"text-align:center\">営業時間は、各店舗・時期によって異なります。詳細については、下記「お知らせ・ブログ」または当社SNSをご確認ください。</p>
  301. <a class=\"def_btn3\" target=\"blank\" href=\"https://www.kimpara.jp/blog\">お知らせ・ブログ – 制服のキンパラ</a>
  302. <!--内容ここから-->
  303.    <div class=\"fcolbox shopinfo\">
  304.       {% for Store in Stores %}
  305.          {% if Store.visible %}
  306.          <div class=\"col2\">
  307.             <h5>{{Store.store_name}}</h5>
  308.             <div class=\"subtxt1\">
  309.                <p>所在地</p>
  310.                <p>〒{{Store.zip01}}-{{Store.zip02}}<br>
  311.                   {% if Store.Pref is not null %}{{Store.Pref.name}}{% endif %}
  312.                   {% if Store.addr01 is not null %}{{Store.addr01}}{% endif %}
  313.                   {% if Store.addr02 is not null %}{{Store.addr02}}{% endif %}
  314.                </p>
  315.                {% if Store.phone_number is not null %}
  316.                <p>電話番号</p>
  317.                <p>{{Store.phone_number}}</p>
  318.                {% endif %}
  319.                {% if Store.staff_name is not null %}
  320.                <p>担当者名</p>
  321.                <p>{{Store.staff_name}}</p>
  322.                {% endif %}
  323.                <p>営業時間</p>
  324.                <p>
  325.                   {% if Store.business_start_time is not null %}{{Store.business_start_time|date('H:i')}}{% endif %}〜
  326.                   {% if Store.business_end_time is not null %}{{Store.business_end_time|date('H:i')}}{% endif %}
  327.                </p>
  328.                {% if Store.email01 is not null %}
  329.                   <p>メールアドレス1</p>
  330.                   <p>
  331.                      {{Store.email01}}
  332.                   </p>
  333.                {% endif %}
  334.                {% if Store.email02 is not null %}
  335.                   <p>メールアドレス2</p>
  336.                   <p>
  337.                      {{Store.email02}}
  338.                   </p>
  339.                {% endif %}
  340.                {% if Store.fax_number is not null %}
  341.                   <p>FAX番号</p>
  342.                   <p>
  343.                      {{Store.fax_number}}
  344.                   </p>
  345.                {% endif %}
  346.                {% if Address[Store.store_id] is not null and Address[Store.store_id] is not empty %}
  347.                <iframe class=\"gmap_frame\" id=\"gmap_frame1\" src=\"https://maps.google.com/maps?q={{ Address[Store.store_id] }}&amp;ie=UTF8&amp;iwloc=&amp;output=embed\" width=\"100%\" height=\"100%\" frameborder=\"0\" style=\"border:0\" allowfullscreen=\"\"></iframe>
  348.                {% endif %}
  349.             </div>
  350.          </div>
  351.          {% endif %}
  352.       {% endfor %}
  353.    </div>
  354. <!--内容ここまで-->
  355. </div>
  356. {% endblock %}""@user_data/store_info.twig""/home/nmiwakim01/seifuku-kimpara.com/public_html/app/template/user_data/store_info.twig");
  357.     }
  358.     
  359.     public function checkSecurity()
  360.     {
  361.         static $tags = array("for" => 35"if" => 36);
  362.         static $filters = array("escape" => 38"date" => 56);
  363.         static $functions = array();
  364.         try {
  365.             $this->sandbox->checkSecurity(
  366.                 ['for''if'],
  367.                 ['escape''date'],
  368.                 []
  369.             );
  370.         } catch (SecurityError $e) {
  371.             $e->setSourceContext($this->source);
  372.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  373.                 $e->setTemplateLine($tags[$e->getTagName()]);
  374.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  375.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  376.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  377.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  378.             }
  379.             throw $e;
  380.         }
  381.     }
  382. }