<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @user_data/store_info.twig */
class __TwigTemplate_136a54a29f7f766a830b0ab01a3d0e12 extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'javascript' => [$this, 'block_javascript'],
'stylesheet' => [$this, 'block_stylesheet'],
'main' => [$this, 'block_main'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 1
return "default_frame.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@user_data/store_info.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@user_data/store_info.twig"));
$this->parent = $this->loadTemplate("default_frame.twig", "@user_data/store_info.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_javascript($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
// line 4
echo "<script>
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 8
public function block_stylesheet($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
// line 9
echo "<style>
.fcolbox .subtxt1 p:nth-child(odd){
max-width: 10em;
}
.def_btn3{
color:#fff;
max-width:800px;
margin:0 auto 2em;
border-radius: 5px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
}
.def_btn3:hover,
.def_btn3:focus,
.def_btn3:active{
color:#fff;
}
</style>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 29
public function block_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 30
echo "<div class=\"comuni\"><h1 class=\"title_bar nikke\">店舗情報</h1>
<p style=\"text-align:center\">営業時間は、各店舗・時期によって異なります。詳細については、下記「お知らせ・ブログ」または当社SNSをご確認ください。</p>
<a class=\"def_btn3\" target=\"blank\" href=\"https://www.kimpara.jp/blog\">お知らせ・ブログ – 制服のキンパラ</a>
<!--内容ここから-->
<div class=\"fcolbox shopinfo\">
";
// line 35
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["Store"]) {
// line 36
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["Store"], "visible", [], "any", false, false, true, 36)) {
// line 37
echo " <div class=\"col2\">
<h5>";
// line 38
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Store"], "store_name", [], "any", false, false, true, 38), 38, $this->source), "html", null, true);
echo "</h5>
<div class=\"subtxt1\">
<p>所在地</p>
<p>〒";
// line 41
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Store"], "zip01", [], "any", false, false, true, 41), 41, $this->source), "html", null, true);
echo "-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Store"], "zip02", [], "any", false, false, true, 41), 41, $this->source), "html", null, true);
echo "<br>
";
// line 42
if ( !(null === twig_get_attribute($this->env, $this->source, $context["Store"], "Pref", [], "any", false, false, true, 42))) {
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["Store"], "Pref", [], "any", false, false, true, 42), "name", [], "any", false, false, true, 42), 42, $this->source), "html", null, true);
}
// line 43
echo " ";
if ( !(null === twig_get_attribute($this->env, $this->source, $context["Store"], "addr01", [], "any", false, false, true, 43))) {
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Store"], "addr01", [], "any", false, false, true, 43), 43, $this->source), "html", null, true);
}
// line 44
echo " ";
if ( !(null === twig_get_attribute($this->env, $this->source, $context["Store"], "addr02", [], "any", false, false, true, 44))) {
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Store"], "addr02", [], "any", false, false, true, 44), 44, $this->source), "html", null, true);
}
// line 45
echo " </p>
";
// line 46
if ( !(null === twig_get_attribute($this->env, $this->source, $context["Store"], "phone_number", [], "any", false, false, true, 46))) {
// line 47
echo " <p>電話番号</p>
<p>";
// line 48
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Store"], "phone_number", [], "any", false, false, true, 48), 48, $this->source), "html", null, true);
echo "</p>
";
}
// line 50
echo " ";
if ( !(null === twig_get_attribute($this->env, $this->source, $context["Store"], "staff_name", [], "any", false, false, true, 50))) {
// line 51
echo " <p>担当者名</p>
<p>";
// line 52
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Store"], "staff_name", [], "any", false, false, true, 52), 52, $this->source), "html", null, true);
echo "</p>
";
}
// line 54
echo " <p>営業時間</p>
<p>
";
// line 56
if ( !(null === twig_get_attribute($this->env, $this->source, $context["Store"], "business_start_time", [], "any", false, false, true, 56))) {
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Store"], "business_start_time", [], "any", false, false, true, 56), 56, $this->source), "H:i"), "html", null, true);
}
echo "〜
";
// line 57
if ( !(null === twig_get_attribute($this->env, $this->source, $context["Store"], "business_end_time", [], "any", false, false, true, 57))) {
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Store"], "business_end_time", [], "any", false, false, true, 57), 57, $this->source), "H:i"), "html", null, true);
}
// line 58
echo " </p>
";
// line 59
if ( !(null === twig_get_attribute($this->env, $this->source, $context["Store"], "email01", [], "any", false, false, true, 59))) {
// line 60
echo " <p>メールアドレス1</p>
<p>
";
// line 62
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Store"], "email01", [], "any", false, false, true, 62), 62, $this->source), "html", null, true);
echo "
</p>
";
}
// line 65
echo " ";
if ( !(null === twig_get_attribute($this->env, $this->source, $context["Store"], "email02", [], "any", false, false, true, 65))) {
// line 66
echo " <p>メールアドレス2</p>
<p>
";
// line 68
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Store"], "email02", [], "any", false, false, true, 68), 68, $this->source), "html", null, true);
echo "
</p>
";
}
// line 71
echo " ";
if ( !(null === twig_get_attribute($this->env, $this->source, $context["Store"], "fax_number", [], "any", false, false, true, 71))) {
// line 72
echo " <p>FAX番号</p>
<p>
";
// line 74
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Store"], "fax_number", [], "any", false, false, true, 74), 74, $this->source), "html", null, true);
echo "
</p>
";
}
// line 77
echo " ";
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", false, false, true, 77), [], "array", false, false, true, 77)) && !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", false, false, true, 77), [], "array", false, false, true, 77)))) {
// line 78
echo " <iframe class=\"gmap_frame\" id=\"gmap_frame1\" src=\"https://maps.google.com/maps?q=";
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", false, false, true, 78), [], "array", false, false, true, 78), 78, $this->source), "html", null, true);
echo "&ie=UTF8&iwloc=&output=embed\" width=\"100%\" height=\"100%\" frameborder=\"0\" style=\"border:0\" allowfullscreen=\"\"></iframe>
";
}
// line 80
echo " </div>
</div>
";
}
// line 83
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Store'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 84
echo " </div>
<!--内容ここまで-->
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@user_data/store_info.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'default_frame.twig' %}
{% block javascript %}
<script>
</script>
{% endblock %}
{% block stylesheet %}
<style>
.fcolbox .subtxt1 p:nth-child(odd){
max-width: 10em;
}
.def_btn3{
color:#fff;
max-width:800px;
margin:0 auto 2em;
border-radius: 5px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
}
.def_btn3:hover,
.def_btn3:focus,
.def_btn3:active{
color:#fff;
}
</style>
{% endblock %}
{% block main %}
<div class=\"comuni\"><h1 class=\"title_bar nikke\">店舗情報</h1>
<p style=\"text-align:center\">営業時間は、各店舗・時期によって異なります。詳細については、下記「お知らせ・ブログ」または当社SNSをご確認ください。</p>
<a class=\"def_btn3\" target=\"blank\" href=\"https://www.kimpara.jp/blog\">お知らせ・ブログ – 制服のキンパラ</a>
<!--内容ここから-->
<div class=\"fcolbox shopinfo\">
{% for Store in Stores %}
{% if Store.visible %}
<div class=\"col2\">
<h5>{{Store.store_name}}</h5>
<div class=\"subtxt1\">
<p>所在地</p>
<p>〒{{Store.zip01}}-{{Store.zip02}}<br>
{% if Store.Pref is not null %}{{Store.Pref.name}}{% endif %}
{% if Store.addr01 is not null %}{{Store.addr01}}{% endif %}
{% if Store.addr02 is not null %}{{Store.addr02}}{% endif %}
</p>
{% if Store.phone_number is not null %}
<p>電話番号</p>
<p>{{Store.phone_number}}</p>
{% endif %}
{% if Store.staff_name is not null %}
<p>担当者名</p>
<p>{{Store.staff_name}}</p>
{% endif %}
<p>営業時間</p>
<p>
{% if Store.business_start_time is not null %}{{Store.business_start_time|date('H:i')}}{% endif %}〜
{% if Store.business_end_time is not null %}{{Store.business_end_time|date('H:i')}}{% endif %}
</p>
{% if Store.email01 is not null %}
<p>メールアドレス1</p>
<p>
{{Store.email01}}
</p>
{% endif %}
{% if Store.email02 is not null %}
<p>メールアドレス2</p>
<p>
{{Store.email02}}
</p>
{% endif %}
{% if Store.fax_number is not null %}
<p>FAX番号</p>
<p>
{{Store.fax_number}}
</p>
{% endif %}
{% if Address[Store.store_id] is not null and Address[Store.store_id] is not empty %}
<iframe class=\"gmap_frame\" id=\"gmap_frame1\" src=\"https://maps.google.com/maps?q={{ Address[Store.store_id] }}&ie=UTF8&iwloc=&output=embed\" width=\"100%\" height=\"100%\" frameborder=\"0\" style=\"border:0\" allowfullscreen=\"\"></iframe>
{% endif %}
</div>
</div>
{% endif %}
{% endfor %}
</div>
<!--内容ここまで-->
</div>
{% endblock %}", "@user_data/store_info.twig", "/home/nmiwakim01/seifuku-kimpara.com/public_html/app/template/user_data/store_info.twig");
}
public function checkSecurity()
{
static $tags = array("for" => 35, "if" => 36);
static $filters = array("escape" => 38, "date" => 56);
static $functions = array();
try {
$this->sandbox->checkSecurity(
['for', 'if'],
['escape', 'date'],
[]
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}