<?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;
/* @NZCustomPlugin/default/not_published.twig */
class __TwigTemplate_fd05b1d1baaed26cae478bf6ee37af126d93158e6fa4b29aa1b4da8bf317bb55 extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'stylesheet' => [$this, 'block_stylesheet'],
'main' => [$this, 'block_main'],
];
}
protected function doGetParent(array $context)
{
// line 2
return $this->loadTemplate(((array_key_exists("layout_template", $context)) ? (_twig_default_filter((isset($context["layout_template"]) || array_key_exists("layout_template", $context) ? $context["layout_template"] : (function () { throw new RuntimeError('Variable "layout_template" does not exist.', 2, $this->source); })()), "default_frame.twig")) : ("default_frame.twig")), "@NZCustomPlugin/default/not_published.twig", 2);
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@NZCustomPlugin/default/not_published.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@NZCustomPlugin/default/not_published.twig"));
$this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 4
public function block_stylesheet($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
// line 5
echo "<style>
.message-container {
max-width: 600px;
margin: 80px auto;
padding: 20px;
}
.message-card {
background: white;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
padding: 40px;
text-align: center;
}
.message-icon {
font-size: 60px;
margin-bottom: 20px;
}
.message-icon.before {
color: #ffc107;
}
.message-icon.after {
color: #6c757d;
}
.message-icon.inactive {
color: #dc3545;
}
.message-title {
font-size: 24px;
font-weight: bold;
margin-bottom: 15px;
color: #333;
}
.message-text {
font-size: 16px;
color: #666;
line-height: 1.6;
margin-bottom: 10px;
}
.date-info {
font-size: 18px;
color: #007bff;
margin-top: 20px;
font-weight: 600;
}
.btn-back {
display: inline-block;
margin-top: 30px;
padding: 12px 30px;
background: #6c757d;
color: white;
text-decoration: none;
border-radius: 4px;
transition: background 0.3s;
}
.btn-back:hover {
background: #5a6268;
color: white;
text-decoration: none;
}
</style>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 67
public function block_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 68
echo "<div class=\"message-container\">
<div class=\"message-card\">
<div class=\"message-icon ";
// line 70
echo twig_escape_filter($this->env, (isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 70, $this->source); })()), "html", null, true);
echo "\">
";
// line 71
if (((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 71, $this->source); })()) == "before")) {
// line 72
echo " <i class=\"fa fa-clock\"></i>
";
} elseif (( // line 73
(isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 73, $this->source); })()) == "after")) {
// line 74
echo " <i class=\"fa fa-calendar-times\"></i>
";
} else {
// line 76
echo " <i class=\"fa fa-ban\"></i>
";
}
// line 78
echo " </div>
<h1 class=\"message-title\">";
// line 80
echo twig_escape_filter($this->env, (isset($context["message"]) || array_key_exists("message", $context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.', 80, $this->source); })()), "html", null, true);
echo "</h1>
";
// line 82
if ((((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 82, $this->source); })()) == "before") && (isset($context["publish_start_date"]) || array_key_exists("publish_start_date", $context) ? $context["publish_start_date"] : (function () { throw new RuntimeError('Variable "publish_start_date" does not exist.', 82, $this->source); })()))) {
// line 83
echo " <p class=\"message-text\">公開開始までお待ちください。</p>
<div class=\"date-info\">
公開開始日時: ";
// line 85
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, (isset($context["publish_start_date"]) || array_key_exists("publish_start_date", $context) ? $context["publish_start_date"] : (function () { throw new RuntimeError('Variable "publish_start_date" does not exist.', 85, $this->source); })()), "Y年m月d日 H:i"), "html", null, true);
echo "
</div>
";
} elseif ((( // line 87
(isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 87, $this->source); })()) == "after") && (isset($context["publish_end_date"]) || array_key_exists("publish_end_date", $context) ? $context["publish_end_date"] : (function () { throw new RuntimeError('Variable "publish_end_date" does not exist.', 87, $this->source); })()))) {
// line 88
echo " <p class=\"message-text\">フォームの受付は終了しました。</p>
<div class=\"date-info\">
公開終了日時: ";
// line 90
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, (isset($context["publish_end_date"]) || array_key_exists("publish_end_date", $context) ? $context["publish_end_date"] : (function () { throw new RuntimeError('Variable "publish_end_date" does not exist.', 90, $this->source); })()), "Y年m月d日 H:i"), "html", null, true);
echo "
</div>
";
} else {
// line 93
echo " <p class=\"message-text\">お探しのフォームは現在ご利用いただけません。</p>
";
}
// line 95
echo "
<a href=\"";
// line 96
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "\" class=\"btn-back\">
トップページへ戻る
</a>
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@NZCustomPlugin/default/not_published.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 210 => 96, 207 => 95, 203 => 93, 197 => 90, 193 => 88, 191 => 87, 186 => 85, 182 => 83, 180 => 82, 175 => 80, 171 => 78, 167 => 76, 163 => 74, 161 => 73, 158 => 72, 156 => 71, 152 => 70, 148 => 68, 138 => 67, 68 => 5, 58 => 4, 36 => 2,);
}
public function getSourceContext()
{
return new Source("{# レイアウトテンプレート名は文字列として渡される #}
{% extends layout_template|default('default_frame.twig') %}
{% block stylesheet %}
<style>
.message-container {
max-width: 600px;
margin: 80px auto;
padding: 20px;
}
.message-card {
background: white;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
padding: 40px;
text-align: center;
}
.message-icon {
font-size: 60px;
margin-bottom: 20px;
}
.message-icon.before {
color: #ffc107;
}
.message-icon.after {
color: #6c757d;
}
.message-icon.inactive {
color: #dc3545;
}
.message-title {
font-size: 24px;
font-weight: bold;
margin-bottom: 15px;
color: #333;
}
.message-text {
font-size: 16px;
color: #666;
line-height: 1.6;
margin-bottom: 10px;
}
.date-info {
font-size: 18px;
color: #007bff;
margin-top: 20px;
font-weight: 600;
}
.btn-back {
display: inline-block;
margin-top: 30px;
padding: 12px 30px;
background: #6c757d;
color: white;
text-decoration: none;
border-radius: 4px;
transition: background 0.3s;
}
.btn-back:hover {
background: #5a6268;
color: white;
text-decoration: none;
}
</style>
{% endblock %}
{% block main %}
<div class=\"message-container\">
<div class=\"message-card\">
<div class=\"message-icon {{ type }}\">
{% if type == 'before' %}
<i class=\"fa fa-clock\"></i>
{% elseif type == 'after' %}
<i class=\"fa fa-calendar-times\"></i>
{% else %}
<i class=\"fa fa-ban\"></i>
{% endif %}
</div>
<h1 class=\"message-title\">{{ message }}</h1>
{% if type == 'before' and publish_start_date %}
<p class=\"message-text\">公開開始までお待ちください。</p>
<div class=\"date-info\">
公開開始日時: {{ publish_start_date|date('Y年m月d日 H:i') }}
</div>
{% elseif type == 'after' and publish_end_date %}
<p class=\"message-text\">フォームの受付は終了しました。</p>
<div class=\"date-info\">
公開終了日時: {{ publish_end_date|date('Y年m月d日 H:i') }}
</div>
{% else %}
<p class=\"message-text\">お探しのフォームは現在ご利用いただけません。</p>
{% endif %}
<a href=\"{{ url('homepage') }}\" class=\"btn-back\">
トップページへ戻る
</a>
</div>
</div>
{% endblock %}
", "@NZCustomPlugin/default/not_published.twig", "/home/noie373zam/public_html/noiezam-ec/app/Plugin/NZCustomPlugin/Resource/template/default/not_published.twig");
}
}