<?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;
}
</style>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 16
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 17
echo "<div class=\"comuni\"><h1 class=\"title_bar nikke\">店舗情報</h1>
<!--内容ここから-->
<div class=\"fcolbox shopinfo\">
";
// line 20
$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.', 20, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["Store"]) {
// line 21
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["Store"], "visible", [], "any", false, false, true, 21)) {
// line 22
echo " <div class=\"col2\">
<h5>";
// line 23
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Store"], "store_name", [], "any", false, false, true, 23), 23, $this->source), "html", null, true);
echo "</h5>
<div class=\"subtxt1\">
<p>所在地</p>
<p>〒";
// line 26
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Store"], "zip01", [], "any", false, false, true, 26), 26, $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, 26), 26, $this->source), "html", null, true);
echo "<br>
";
// line 27
if ( !(null === twig_get_attribute($this->env, $this->source, $context["Store"], "Pref", [], "any", false, false, true, 27))) {
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, 27), "name", [], "any", false, false, true, 27), 27, $this->source), "html", null, true);
}
// line 28
echo " ";
if ( !(null === twig_get_attribute($this->env, $this->source, $context["Store"], "addr01", [], "any", false, false, true, 28))) {
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Store"], "addr01", [], "any", false, false, true, 28), 28, $this->source), "html", null, true);
}
// line 29
echo " ";
if ( !(null === twig_get_attribute($this->env, $this->source, $context["Store"], "addr02", [], "any", false, false, true, 29))) {
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Store"], "addr02", [], "any", false, false, true, 29), 29, $this->source), "html", null, true);
}
// line 30
echo " </p>
";
// line 31
if ( !(null === twig_get_attribute($this->env, $this->source, $context["Store"], "phone_number", [], "any", false, false, true, 31))) {
// line 32
echo " <p>電話番号</p>
<p>";
// line 33
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Store"], "phone_number", [], "any", false, false, true, 33), 33, $this->source), "html", null, true);
echo "</p>
";
}
// line 35
echo " ";
if ( !(null === twig_get_attribute($this->env, $this->source, $context["Store"], "staff_name", [], "any", false, false, true, 35))) {
// line 36
echo " <p>担当者名</p>
<p>";
// line 37
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Store"], "staff_name", [], "any", false, false, true, 37), 37, $this->source), "html", null, true);
echo "</p>
";
}
// line 39
echo " <p>営業時間</p>
<p>
";
// line 41
if ( !(null === twig_get_attribute($this->env, $this->source, $context["Store"], "business_start_time", [], "any", false, false, true, 41))) {
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, 41), 41, $this->source), "H:i"), "html", null, true);
}
echo "〜
";
// line 42
if ( !(null === twig_get_attribute($this->env, $this->source, $context["Store"], "business_end_time", [], "any", false, false, true, 42))) {
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, 42), 42, $this->source), "H:i"), "html", null, true);
}
// line 43
echo " </p>
";
// line 44
if ( !(null === twig_get_attribute($this->env, $this->source, $context["Store"], "email01", [], "any", false, false, true, 44))) {
// line 45
echo " <p>メールアドレス1</p>
<p>
";
// line 47
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Store"], "email01", [], "any", false, false, true, 47), 47, $this->source), "html", null, true);
echo "
</p>
";
}
// line 50
echo " ";
if ( !(null === twig_get_attribute($this->env, $this->source, $context["Store"], "email02", [], "any", false, false, true, 50))) {
// line 51
echo " <p>メールアドレス2</p>
<p>
";
// line 53
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Store"], "email02", [], "any", false, false, true, 53), 53, $this->source), "html", null, true);
echo "
</p>
";
}
// line 56
echo " ";
if ( !(null === twig_get_attribute($this->env, $this->source, $context["Store"], "fax_number", [], "any", false, false, true, 56))) {
// line 57
echo " <p>FAX番号</p>
<p>
";
// line 59
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Store"], "fax_number", [], "any", false, false, true, 59), 59, $this->source), "html", null, true);
echo "
</p>
";
}
// line 62
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.', 62, $this->source); })()), twig_get_attribute($this->env, $this->source, $context["Store"], "store_id", [], "any", false, false, true, 62), [], "array", false, false, true, 62)) && !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", false, false, true, 62), [], "array", false, false, true, 62)))) {
// line 63
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.', 63, $this->source); })()), twig_get_attribute($this->env, $this->source, $context["Store"], "store_id", [], "any", false, false, true, 63), [], "array", false, false, true, 63), 63, $this->source), "html", null, true);
echo "&ie=UTF8&iwloc=&output=embed\" width=\"100%\" height=\"100%\" frameborder=\"0\" style=\"border:0\" allowfullscreen=\"\"></iframe>
";
}
// line 65
echo " </div>
</div>
";
}
// line 68
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 69
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 ( 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,);
}
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;
}
</style>
{% endblock %}
{% block main %}
<div class=\"comuni\"><h1 class=\"title_bar nikke\">店舗情報</h1>
<!--内容ここから-->
<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" => 20, "if" => 21);
static $filters = array("escape" => 23, "date" => 41);
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;
}
}
}