var/cache/dev/twig/1e/1e7b3b912b145346cca3166e1b569c748e5e9c64a56e48f61c36b4b36d967484.php line 79

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/News/detail.twig */
  14. class __TwigTemplate_9662883059a349bd2fa116c2e907c2c7c88f5b833eb6225055cfe220beb38b60 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.             'main' => [$this, 'block_main'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "default_frame.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros = $this->macros;
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@user_data/News/detail.twig"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@user_data/News/detail.twig"));
  38.         $this->parent = $this->loadTemplate("default_frame.twig", "@user_data/News/detail.twig", 1);
  39.         $this->parent->display($context, array_merge($this->blocks, $blocks));
  40.         
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  42.         
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  44.     }
  45.     // line 3
  46.     public function block_main($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", "main"));
  51.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
  53.         // line 4
  54.         echo "  <div class=\"news-detail-container\">
  55.     <div class=\"section-title\">
  56.       <h2 class=\"en wow fadeInUp\" data-wow-duration=\"1s\" data-wow-delay=\"0.3s\" style=\"visibility: visible; animation-duration: 1s; animation-delay: 0.3s; animation-name: fadeInUp;\">News</h2>
  57.       <p class=\"wow fadeInUp\" data-wow-duration=\"1s\" data-wow-delay=\"0.3s\" style=\"visibility: visible; animation-duration: 1s; animation-delay: 0.3s; animation-name: fadeInUp;\">新着情報</p>
  58.     </div>
  59.     <div class=\"news-detail-header\">
  60.       <div class=\"news-detail-date wow fadeInUp\" data-wow-duration=\"1s\" data-wow-delay=\"0.3s\" style=\"visibility: visible; animation-duration: 1s; animation-delay: 0.3s; animation-name: fadeInUp;\">
  61.         <p>
  62.           ";
  63.         // line 13
  64.         echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\IntlExtension']->date_day($this->env, twig_get_attribute($this->env, $this->source, (isset($context["News"]) || array_key_exists("News", $context) ? $context["News"] : (function () { throw new RuntimeError('Variable "News" does not exist.', 13, $this->source); })()), "publish_date", [], "any", false, false, false, 13)), "html", null, true);
  65.         echo "
  66.         </p>
  67.       </div>
  68.     
  69.       <div class=\"news-detail-title wow fadeInUp\" data-wow-duration=\"1s\" data-wow-delay=\"0.3s\" style=\"visibility: visible; animation-duration: 1s; animation-delay: 0.3s; animation-name: fadeInUp;\">
  70.         <p>
  71.           ";
  72.         // line 19
  73.         echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["News"]) || array_key_exists("News", $context) ? $context["News"] : (function () { throw new RuntimeError('Variable "News" does not exist.', 19, $this->source); })()), "title", [], "any", false, false, false, 19), "html", null, true);
  74.         echo "
  75.         </p>
  76.       </div>
  77.     </div>
  78.     <div class=\"news-detail-content wow fadeInUp\" data-wow-duration=\"1s\" data-wow-delay=\"0.3s\" style=\"visibility: visible; animation-duration: 1s; animation-delay: 0.3s; animation-name: fadeInUp;\">
  79.       <p>
  80.         ";
  81.         // line 26
  82.         echo twig_nl2br(twig_get_attribute($this->env, $this->source, (isset($context["News"]) || array_key_exists("News", $context) ? $context["News"] : (function () { throw new RuntimeError('Variable "News" does not exist.', 26, $this->source); })()), "description", [], "any", false, false, false, 26));
  83.         echo "
  84.       </p>
  85.       ";
  86.         // line 28
  87.         if (twig_get_attribute($this->env, $this->source, (isset($context["News"]) || array_key_exists("News", $context) ? $context["News"] : (function () { throw new RuntimeError('Variable "News" does not exist.', 28, $this->source); })()), "url", [], "any", false, false, false, 28)) {
  88.             // line 29
  89.             echo "        <br>
  90.         <a href=\"";
  91.             // line 30
  92.             echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["News"]) || array_key_exists("News", $context) ? $context["News"] : (function () { throw new RuntimeError('Variable "News" does not exist.', 30, $this->source); })()), "url", [], "any", false, false, false, 30), "html", null, true);
  93.             echo "\" ";
  94.             if ((twig_get_attribute($this->env, $this->source, (isset($context["News"]) || array_key_exists("News", $context) ? $context["News"] : (function () { throw new RuntimeError('Variable "News" does not exist.', 30, $this->source); })()), "link_method", [], "any", false, false, false, 30) == "1")) {
  95.                 echo "target=\"_blank\"";
  96.             }
  97.             echo ">";
  98.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("詳しくはこちら"), "html", null, true);
  99.             echo "</a>
  100.       ";
  101.         }
  102.         // line 32
  103.         echo "    </div>
  104.   </div>
  105. ";
  106.         
  107.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  108.         
  109.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  110.     }
  111.     public function getTemplateName()
  112.     {
  113.         return "@user_data/News/detail.twig";
  114.     }
  115.     public function isTraitable()
  116.     {
  117.         return false;
  118.     }
  119.     public function getDebugInfo()
  120.     {
  121.         return array (  119 => 32,  108 => 30,  105 => 29,  103 => 28,  98 => 26,  88 => 19,  79 => 13,  68 => 4,  58 => 3,  35 => 1,);
  122.     }
  123.     public function getSourceContext()
  124.     {
  125.         return new Source("{% extends 'default_frame.twig' %}
  126. {% block main %}
  127.   <div class=\"news-detail-container\">
  128.     <div class=\"section-title\">
  129.       <h2 class=\"en wow fadeInUp\" data-wow-duration=\"1s\" data-wow-delay=\"0.3s\" style=\"visibility: visible; animation-duration: 1s; animation-delay: 0.3s; animation-name: fadeInUp;\">News</h2>
  130.       <p class=\"wow fadeInUp\" data-wow-duration=\"1s\" data-wow-delay=\"0.3s\" style=\"visibility: visible; animation-duration: 1s; animation-delay: 0.3s; animation-name: fadeInUp;\">新着情報</p>
  131.     </div>
  132.     <div class=\"news-detail-header\">
  133.       <div class=\"news-detail-date wow fadeInUp\" data-wow-duration=\"1s\" data-wow-delay=\"0.3s\" style=\"visibility: visible; animation-duration: 1s; animation-delay: 0.3s; animation-name: fadeInUp;\">
  134.         <p>
  135.           {{ News.publish_date|date_day }}
  136.         </p>
  137.       </div>
  138.     
  139.       <div class=\"news-detail-title wow fadeInUp\" data-wow-duration=\"1s\" data-wow-delay=\"0.3s\" style=\"visibility: visible; animation-duration: 1s; animation-delay: 0.3s; animation-name: fadeInUp;\">
  140.         <p>
  141.           {{ News.title }}
  142.         </p>
  143.       </div>
  144.     </div>
  145.     <div class=\"news-detail-content wow fadeInUp\" data-wow-duration=\"1s\" data-wow-delay=\"0.3s\" style=\"visibility: visible; animation-duration: 1s; animation-delay: 0.3s; animation-name: fadeInUp;\">
  146.       <p>
  147.         {{ News.description|raw|nl2br }}
  148.       </p>
  149.       {% if News.url %}
  150.         <br>
  151.         <a href=\"{{ News.url }}\" {% if News.link_method == '1' %}target=\"_blank\"{% endif %}>{{ '詳しくはこちら'|trans }}</a>
  152.       {% endif %}
  153.     </div>
  154.   </div>
  155. {% endblock %}", "@user_data/News/detail.twig", "/home/inception18/salud.work/public_html/ec-sample.salud.work/app/template/user_data/News/detail.twig");
  156.     }
  157. }