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

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. </style>
  80. ";
  81.         
  82.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  83.         
  84.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  85.     }
  86.     // line 16
  87.     public function block_main($context, array $blocks = [])
  88.     {
  89.         $macros $this->macros;
  90.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  91.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  92.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  93.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  94.         // line 17
  95.         echo "<div class=\"comuni\"><h1 class=\"title_bar nikke\">店舗情報</h1>
  96. <!--内容ここから-->
  97.    <div class=\"fcolbox shopinfo\">
  98.       ";
  99.         // line 20
  100.         $context['_parent'] = $context;
  101.         $context['_seq'] = twig_ensure_traversable((isset($context["Stores"]) || array_key_exists("Stores"$context) ? $context["Stores"] : (function () { throw new RuntimeError('Variable "Stores" does not exist.'20$this->source); })()));
  102.         foreach ($context['_seq'] as $context["_key"] => $context["Store"]) {
  103.             // line 21
  104.             echo "         ";
  105.             if (twig_get_attribute($this->env$this->source$context["Store"], "visible", [], "any"falsefalsetrue21)) {
  106.                 // line 22
  107.                 echo "         <div class=\"col2\">
  108.             <h5>";
  109.                 // line 23
  110.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Store"], "store_name", [], "any"falsefalsetrue23), 23$this->source), "html"nulltrue);
  111.                 echo "</h5>
  112.             <div class=\"subtxt1\">
  113.                <p>所在地</p>
  114.                <p>〒";
  115.                 // line 26
  116.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Store"], "zip01", [], "any"falsefalsetrue26), 26$this->source), "html"nulltrue);
  117.                 echo "-";
  118.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Store"], "zip02", [], "any"falsefalsetrue26), 26$this->source), "html"nulltrue);
  119.                 echo "<br>
  120.                   ";
  121.                 // line 27
  122.                 if ( !(null === twig_get_attribute($this->env$this->source$context["Store"], "Pref", [], "any"falsefalsetrue27))) {
  123.                     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"falsefalsetrue27), "name", [], "any"falsefalsetrue27), 27$this->source), "html"nulltrue);
  124.                 }
  125.                 // line 28
  126.                 echo "                  ";
  127.                 if ( !(null === twig_get_attribute($this->env$this->source$context["Store"], "addr01", [], "any"falsefalsetrue28))) {
  128.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Store"], "addr01", [], "any"falsefalsetrue28), 28$this->source), "html"nulltrue);
  129.                 }
  130.                 // line 29
  131.                 echo "                  ";
  132.                 if ( !(null === twig_get_attribute($this->env$this->source$context["Store"], "addr02", [], "any"falsefalsetrue29))) {
  133.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Store"], "addr02", [], "any"falsefalsetrue29), 29$this->source), "html"nulltrue);
  134.                 }
  135.                 // line 30
  136.                 echo "               </p>
  137.                ";
  138.                 // line 31
  139.                 if ( !(null === twig_get_attribute($this->env$this->source$context["Store"], "phone_number", [], "any"falsefalsetrue31))) {
  140.                     // line 32
  141.                     echo "               <p>電話番号</p>
  142.                <p>";
  143.                     // line 33
  144.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Store"], "phone_number", [], "any"falsefalsetrue33), 33$this->source), "html"nulltrue);
  145.                     echo "</p>
  146.                ";
  147.                 }
  148.                 // line 35
  149.                 echo "               ";
  150.                 if ( !(null === twig_get_attribute($this->env$this->source$context["Store"], "staff_name", [], "any"falsefalsetrue35))) {
  151.                     // line 36
  152.                     echo "               <p>担当者名</p>
  153.                <p>";
  154.                     // line 37
  155.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Store"], "staff_name", [], "any"falsefalsetrue37), 37$this->source), "html"nulltrue);
  156.                     echo "</p>
  157.                ";
  158.                 }
  159.                 // line 39
  160.                 echo "               <p>営業時間</p>
  161.                <p>
  162.                   ";
  163.                 // line 41
  164.                 if ( !(null === twig_get_attribute($this->env$this->source$context["Store"], "business_start_time", [], "any"falsefalsetrue41))) {
  165.                     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"falsefalsetrue41), 41$this->source), "H:i"), "html"nulltrue);
  166.                 }
  167.                 echo "〜
  168.                   ";
  169.                 // line 42
  170.                 if ( !(null === twig_get_attribute($this->env$this->source$context["Store"], "business_end_time", [], "any"falsefalsetrue42))) {
  171.                     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"falsefalsetrue42), 42$this->source), "H:i"), "html"nulltrue);
  172.                 }
  173.                 // line 43
  174.                 echo "               </p>
  175.                ";
  176.                 // line 44
  177.                 if ( !(null === twig_get_attribute($this->env$this->source$context["Store"], "email01", [], "any"falsefalsetrue44))) {
  178.                     // line 45
  179.                     echo "                  <p>メールアドレス1</p>
  180.                   <p>
  181.                      ";
  182.                     // line 47
  183.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Store"], "email01", [], "any"falsefalsetrue47), 47$this->source), "html"nulltrue);
  184.                     echo "
  185.                   </p>
  186.                ";
  187.                 }
  188.                 // line 50
  189.                 echo "               ";
  190.                 if ( !(null === twig_get_attribute($this->env$this->source$context["Store"], "email02", [], "any"falsefalsetrue50))) {
  191.                     // line 51
  192.                     echo "                  <p>メールアドレス2</p>
  193.                   <p>
  194.                      ";
  195.                     // line 53
  196.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Store"], "email02", [], "any"falsefalsetrue53), 53$this->source), "html"nulltrue);
  197.                     echo "
  198.                   </p>
  199.                ";
  200.                 }
  201.                 // line 56
  202.                 echo "               ";
  203.                 if ( !(null === twig_get_attribute($this->env$this->source$context["Store"], "fax_number", [], "any"falsefalsetrue56))) {
  204.                     // line 57
  205.                     echo "                  <p>FAX番号</p>
  206.                   <p>
  207.                      ";
  208.                     // line 59
  209.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Store"], "fax_number", [], "any"falsefalsetrue59), 59$this->source), "html"nulltrue);
  210.                     echo "
  211.                   </p>
  212.                ";
  213.                 }
  214.                 // line 62
  215.                 echo "               ";
  216.                 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.'62$this->source); })()), twig_get_attribute($this->env$this->source$context["Store"], "store_id", [], "any"falsefalsetrue62), [], "array"falsefalsetrue62)) &&  !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.'62$this->source); })()), twig_get_attribute($this->env$this->source$context["Store"], "store_id", [], "any"falsefalsetrue62), [], "array"falsefalsetrue62)))) {
  217.                     // line 63
  218.                     echo "               <iframe class=\"gmap_frame\" id=\"gmap_frame1\" src=\"https://maps.google.com/maps?q=";
  219.                     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.'63$this->source); })()), twig_get_attribute($this->env$this->source$context["Store"], "store_id", [], "any"falsefalsetrue63), [], "array"falsefalsetrue63), 63$this->source), "html"nulltrue);
  220.                     echo "&amp;ie=UTF8&amp;iwloc=&amp;output=embed\" width=\"100%\" height=\"100%\" frameborder=\"0\" style=\"border:0\" allowfullscreen=\"\"></iframe>
  221.                ";
  222.                 }
  223.                 // line 65
  224.                 echo "            </div>
  225.          </div>
  226.          ";
  227.             }
  228.             // line 68
  229.             echo "      ";
  230.         }
  231.         $_parent $context['_parent'];
  232.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Store'], $context['_parent'], $context['loop']);
  233.         $context array_intersect_key($context$_parent) + $_parent;
  234.         // line 69
  235.         echo "   </div>
  236. <!--内容ここまで-->
  237. </div>
  238. ";
  239.         
  240.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  241.         
  242.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  243.     }
  244.     public function getTemplateName()
  245.     {
  246.         return "@user_data/store_info.twig";
  247.     }
  248.     public function isTraitable()
  249.     {
  250.         return false;
  251.     }
  252.     public function getDebugInfo()
  253.     {
  254.         return array (  259 => 69,  253 => 68,  248 => 65,  242 => 63,  239 => 62,  233 => 59,  229 => 57,  226 => 56,  220 => 53,  216 => 51,  213 => 50,  207 => 47,  203 => 45,  201 => 44,  198 => 43,  194 => 42,  188 => 41,  184 => 39,  179 => 37,  176 => 36,  173 => 35,  168 => 33,  165 => 32,  163 => 31,  160 => 30,  155 => 29,  150 => 28,  146 => 27,  140 => 26,  134 => 23,  131 => 22,  128 => 21,  124 => 20,  119 => 17,  109 => 16,  94 => 9,  84 => 8,  72 => 4,  62 => 3,  39 => 1,);
  255.     }
  256.     public function getSourceContext()
  257.     {
  258.         return new Source("{% extends 'default_frame.twig' %}
  259. {% block javascript %}
  260. <script>
  261. </script>
  262. {% endblock %}
  263. {% block stylesheet %}
  264. <style>
  265.    .fcolbox .subtxt1 p:nth-child(odd){
  266.       max-width: 10em;
  267.    }
  268. </style>
  269. {% endblock %}
  270. {% block main %}
  271. <div class=\"comuni\"><h1 class=\"title_bar nikke\">店舗情報</h1>
  272. <!--内容ここから-->
  273.    <div class=\"fcolbox shopinfo\">
  274.       {% for Store in Stores %}
  275.          {% if Store.visible %}
  276.          <div class=\"col2\">
  277.             <h5>{{Store.store_name}}</h5>
  278.             <div class=\"subtxt1\">
  279.                <p>所在地</p>
  280.                <p>〒{{Store.zip01}}-{{Store.zip02}}<br>
  281.                   {% if Store.Pref is not null %}{{Store.Pref.name}}{% endif %}
  282.                   {% if Store.addr01 is not null %}{{Store.addr01}}{% endif %}
  283.                   {% if Store.addr02 is not null %}{{Store.addr02}}{% endif %}
  284.                </p>
  285.                {% if Store.phone_number is not null %}
  286.                <p>電話番号</p>
  287.                <p>{{Store.phone_number}}</p>
  288.                {% endif %}
  289.                {% if Store.staff_name is not null %}
  290.                <p>担当者名</p>
  291.                <p>{{Store.staff_name}}</p>
  292.                {% endif %}
  293.                <p>営業時間</p>
  294.                <p>
  295.                   {% if Store.business_start_time is not null %}{{Store.business_start_time|date('H:i')}}{% endif %}〜
  296.                   {% if Store.business_end_time is not null %}{{Store.business_end_time|date('H:i')}}{% endif %}
  297.                </p>
  298.                {% if Store.email01 is not null %}
  299.                   <p>メールアドレス1</p>
  300.                   <p>
  301.                      {{Store.email01}}
  302.                   </p>
  303.                {% endif %}
  304.                {% if Store.email02 is not null %}
  305.                   <p>メールアドレス2</p>
  306.                   <p>
  307.                      {{Store.email02}}
  308.                   </p>
  309.                {% endif %}
  310.                {% if Store.fax_number is not null %}
  311.                   <p>FAX番号</p>
  312.                   <p>
  313.                      {{Store.fax_number}}
  314.                   </p>
  315.                {% endif %}
  316.                {% if Address[Store.store_id] is not null and Address[Store.store_id] is not empty %}
  317.                <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>
  318.                {% endif %}
  319.             </div>
  320.          </div>
  321.          {% endif %}
  322.       {% endfor %}
  323.    </div>
  324. <!--内容ここまで-->
  325. </div>
  326. {% endblock %}""@user_data/store_info.twig""/home/nmiwakim01/seifuku-kimpara.com/public_html/app/template/user_data/store_info.twig");
  327.     }
  328.     
  329.     public function checkSecurity()
  330.     {
  331.         static $tags = array("for" => 20"if" => 21);
  332.         static $filters = array("escape" => 23"date" => 41);
  333.         static $functions = array();
  334.         try {
  335.             $this->sandbox->checkSecurity(
  336.                 ['for''if'],
  337.                 ['escape''date'],
  338.                 []
  339.             );
  340.         } catch (SecurityError $e) {
  341.             $e->setSourceContext($this->source);
  342.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  343.                 $e->setTemplateLine($tags[$e->getTagName()]);
  344.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  345.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  346.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  347.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  348.             }
  349.             throw $e;
  350.         }
  351.     }
  352. }