var/cache/dev/twig/d0/d0f7dcaeccf28912eed75b756d73311e1089f6075e5a1a5abc5424518c0d0559.php line 48

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. /* @NZCustomPlugin/default/not_published.twig */
  14. class __TwigTemplate_fd05b1d1baaed26cae478bf6ee37af126d93158e6fa4b29aa1b4da8bf317bb55 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.             'stylesheet' => [$this'block_stylesheet'],
  24.             'main' => [$this'block_main'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 2
  30.         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);
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@NZCustomPlugin/default/not_published.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@NZCustomPlugin/default/not_published.twig"));
  39.         $this->getParent($context)->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  42.         
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  44.     }
  45.     // line 4
  46.     public function block_stylesheet($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  51.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  53.         // line 5
  54.         echo "<style>
  55. .message-container {
  56.     max-width: 600px;
  57.     margin: 80px auto;
  58.     padding: 20px;
  59. }
  60. .message-card {
  61.     background: white;
  62.     border-radius: 8px;
  63.     box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  64.     padding: 40px;
  65.     text-align: center;
  66. }
  67. .message-icon {
  68.     font-size: 60px;
  69.     margin-bottom: 20px;
  70. }
  71. .message-icon.before {
  72.     color: #ffc107;
  73. }
  74. .message-icon.after {
  75.     color: #6c757d;
  76. }
  77. .message-icon.inactive {
  78.     color: #dc3545;
  79. }
  80. .message-title {
  81.     font-size: 24px;
  82.     font-weight: bold;
  83.     margin-bottom: 15px;
  84.     color: #333;
  85. }
  86. .message-text {
  87.     font-size: 16px;
  88.     color: #666;
  89.     line-height: 1.6;
  90.     margin-bottom: 10px;
  91. }
  92. .date-info {
  93.     font-size: 18px;
  94.     color: #007bff;
  95.     margin-top: 20px;
  96.     font-weight: 600;
  97. }
  98. .btn-back {
  99.     display: inline-block;
  100.     margin-top: 30px;
  101.     padding: 12px 30px;
  102.     background: #6c757d;
  103.     color: white;
  104.     text-decoration: none;
  105.     border-radius: 4px;
  106.     transition: background 0.3s;
  107. }
  108. .btn-back:hover {
  109.     background: #5a6268;
  110.     color: white;
  111.     text-decoration: none;
  112. }
  113. </style>
  114. ";
  115.         
  116.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  117.         
  118.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  119.     }
  120.     // line 67
  121.     public function block_main($context, array $blocks = [])
  122.     {
  123.         $macros $this->macros;
  124.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  125.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  126.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  127.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  128.         // line 68
  129.         echo "<div class=\"message-container\">
  130.     <div class=\"message-card\">
  131.         <div class=\"message-icon ";
  132.         // line 70
  133.         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"nulltrue);
  134.         echo "\">
  135.             ";
  136.         // line 71
  137.         if (((isset($context["type"]) || array_key_exists("type"$context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.'71$this->source); })()) == "before")) {
  138.             // line 72
  139.             echo "                <i class=\"fa fa-clock\"></i>
  140.             ";
  141.         } elseif ((        // line 73
  142. (isset($context["type"]) || array_key_exists("type"$context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.'73$this->source); })()) == "after")) {
  143.             // line 74
  144.             echo "                <i class=\"fa fa-calendar-times\"></i>
  145.             ";
  146.         } else {
  147.             // line 76
  148.             echo "                <i class=\"fa fa-ban\"></i>
  149.             ";
  150.         }
  151.         // line 78
  152.         echo "        </div>
  153.         
  154.         <h1 class=\"message-title\">";
  155.         // line 80
  156.         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"nulltrue);
  157.         echo "</h1>
  158.         
  159.         ";
  160.         // line 82
  161.         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); })()))) {
  162.             // line 83
  163.             echo "            <p class=\"message-text\">公開開始までお待ちください。</p>
  164.             <div class=\"date-info\">
  165.                 公開開始日時: ";
  166.             // line 85
  167.             echo twig_escape_filter($this->envtwig_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"nulltrue);
  168.             echo "
  169.             </div>
  170.         ";
  171.         } elseif (((        // line 87
  172. (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); })()))) {
  173.             // line 88
  174.             echo "            <p class=\"message-text\">フォームの受付は終了しました。</p>
  175.             <div class=\"date-info\">
  176.                 公開終了日時: ";
  177.             // line 90
  178.             echo twig_escape_filter($this->envtwig_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"nulltrue);
  179.             echo "
  180.             </div>
  181.         ";
  182.         } else {
  183.             // line 93
  184.             echo "            <p class=\"message-text\">お探しのフォームは現在ご利用いただけません。</p>
  185.         ";
  186.         }
  187.         // line 95
  188.         echo "        
  189.         <a href=\"";
  190.         // line 96
  191.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  192.         echo "\" class=\"btn-back\">
  193.             トップページへ戻る
  194.         </a>
  195.     </div>
  196. </div>
  197. ";
  198.         
  199.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  200.         
  201.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  202.     }
  203.     public function getTemplateName()
  204.     {
  205.         return "@NZCustomPlugin/default/not_published.twig";
  206.     }
  207.     public function isTraitable()
  208.     {
  209.         return false;
  210.     }
  211.     public function getDebugInfo()
  212.     {
  213.         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,);
  214.     }
  215.     public function getSourceContext()
  216.     {
  217.         return new Source("{# レイアウトテンプレート名は文字列として渡される #}
  218. {% extends layout_template|default('default_frame.twig') %}
  219. {% block stylesheet %}
  220. <style>
  221. .message-container {
  222.     max-width: 600px;
  223.     margin: 80px auto;
  224.     padding: 20px;
  225. }
  226. .message-card {
  227.     background: white;
  228.     border-radius: 8px;
  229.     box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  230.     padding: 40px;
  231.     text-align: center;
  232. }
  233. .message-icon {
  234.     font-size: 60px;
  235.     margin-bottom: 20px;
  236. }
  237. .message-icon.before {
  238.     color: #ffc107;
  239. }
  240. .message-icon.after {
  241.     color: #6c757d;
  242. }
  243. .message-icon.inactive {
  244.     color: #dc3545;
  245. }
  246. .message-title {
  247.     font-size: 24px;
  248.     font-weight: bold;
  249.     margin-bottom: 15px;
  250.     color: #333;
  251. }
  252. .message-text {
  253.     font-size: 16px;
  254.     color: #666;
  255.     line-height: 1.6;
  256.     margin-bottom: 10px;
  257. }
  258. .date-info {
  259.     font-size: 18px;
  260.     color: #007bff;
  261.     margin-top: 20px;
  262.     font-weight: 600;
  263. }
  264. .btn-back {
  265.     display: inline-block;
  266.     margin-top: 30px;
  267.     padding: 12px 30px;
  268.     background: #6c757d;
  269.     color: white;
  270.     text-decoration: none;
  271.     border-radius: 4px;
  272.     transition: background 0.3s;
  273. }
  274. .btn-back:hover {
  275.     background: #5a6268;
  276.     color: white;
  277.     text-decoration: none;
  278. }
  279. </style>
  280. {% endblock %}
  281. {% block main %}
  282. <div class=\"message-container\">
  283.     <div class=\"message-card\">
  284.         <div class=\"message-icon {{ type }}\">
  285.             {% if type == 'before' %}
  286.                 <i class=\"fa fa-clock\"></i>
  287.             {% elseif type == 'after' %}
  288.                 <i class=\"fa fa-calendar-times\"></i>
  289.             {% else %}
  290.                 <i class=\"fa fa-ban\"></i>
  291.             {% endif %}
  292.         </div>
  293.         
  294.         <h1 class=\"message-title\">{{ message }}</h1>
  295.         
  296.         {% if type == 'before' and publish_start_date %}
  297.             <p class=\"message-text\">公開開始までお待ちください。</p>
  298.             <div class=\"date-info\">
  299.                 公開開始日時: {{ publish_start_date|date('Y年m月d日 H:i') }}
  300.             </div>
  301.         {% elseif type == 'after' and publish_end_date %}
  302.             <p class=\"message-text\">フォームの受付は終了しました。</p>
  303.             <div class=\"date-info\">
  304.                 公開終了日時: {{ publish_end_date|date('Y年m月d日 H:i') }}
  305.             </div>
  306.         {% else %}
  307.             <p class=\"message-text\">お探しのフォームは現在ご利用いただけません。</p>
  308.         {% endif %}
  309.         
  310.         <a href=\"{{ url('homepage') }}\" class=\"btn-back\">
  311.             トップページへ戻る
  312.         </a>
  313.     </div>
  314. </div>
  315. {% endblock %}
  316. ""@NZCustomPlugin/default/not_published.twig""/home/noie373zam/public_html/noiezam-ec/app/Plugin/NZCustomPlugin/Resource/template/default/not_published.twig");
  317.     }
  318. }