var/cache/dev/twig/d2/d25688a833e9bd0157d708d39fdd2642149566d50009fb1cf768bc366dbf8c45.php line 38

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. /* News/detail.twig */
  14. class __TwigTemplate_6ddf78619d093ec95547935fcac6e63feb3e109bbafea1b6465820fc60ec8744 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 11
  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""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""News/detail.twig"));
  38.         $this->parent $this->loadTemplate("default_frame.twig""News/detail.twig"11);
  39.         $this->parent->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 13
  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 14
  54.         echo "
  55. <div class=\"ec-searchnavRole\">
  56.   <div class=\"ec-searchnavRole__topicpath\">
  57.     <ol class=\"ec-topicpath\">
  58.       <li class=\"ec-topicpath__item\"><a href=\"";
  59.         // line 19
  60.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("news_index");
  61.         echo "\">";
  62.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ニュース一覧"), "html"nulltrue);
  63.         echo "</a>
  64.       <li class=\"ec-topicpath__divider\">|</li>
  65.       <li class=\"ec-topicpath__item--active\">";
  66.         // line 21
  67.         echo twig_escape_filter($this->envtwig_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.'21$this->source); })()), "title", [], "any"falsefalsefalse21), "html"nulltrue);
  68.         echo "</li>
  69.     </ol>
  70.   </div>
  71. </div>
  72. <div class=\"ec-role\">
  73.   <hr>
  74.   <div class=\"news-";
  75.         // line 31
  76.         echo twig_escape_filter($this->envtwig_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.'31$this->source); })()), "id", [], "any"falsefalsefalse31), "html"nulltrue);
  77.         echo " row\">
  78.     <div class=\"col-md-8 col-md-offset-2\">
  79.       <p class=\"text-right\"><small>";
  80.         // line 33
  81.         echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_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.'33$this->source); })()), "publish_date", [], "any"falsefalsefalse33), "Y/m/d"), "html"nulltrue);
  82.         echo "</small></p>
  83.       <h1 class=\"npsr-title\">";
  84.         // line 34
  85.         echo twig_escape_filter($this->envtwig_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.'34$this->source); })()), "title", [], "any"falsefalsefalse34), "html"nulltrue);
  86.         echo "</h1>
  87.       ";
  88.         // line 36
  89.         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.'36$this->source); })()), "np_thumbnail_url", [], "any"falsefalsefalse36) == true)) {
  90.             // line 37
  91.             echo "      <div class=\"npsr-thumbnail\">
  92.         <img src=\"";
  93.             // line 38
  94.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(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.'38$this->source); })()), "np_thumbnail_url", [], "any"falsefalsefalse38), "save_image"), "html"nulltrue);
  95.             echo "\" alt=\"";
  96.             echo twig_escape_filter($this->envtwig_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.'38$this->source); })()), "title", [], "any"falsefalsefalse38), "html"nulltrue);
  97.             echo "\">
  98.       </div>
  99.       ";
  100.         }
  101.         // line 41
  102.         echo "      <div class=\"npsr-content\">
  103.         ";
  104.         // line 42
  105.         echo 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.'42$this->source); })()), "description", [], "any"falsefalsefalse42);
  106.         echo "
  107.       </div>
  108.     </div>
  109.   </div>
  110. </div>
  111. ";
  112.         
  113.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  114.         
  115.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  116.     }
  117.     public function getTemplateName()
  118.     {
  119.         return "News/detail.twig";
  120.     }
  121.     public function isTraitable()
  122.     {
  123.         return false;
  124.     }
  125.     public function getDebugInfo()
  126.     {
  127.         return array (  125 => 42,  122 => 41,  114 => 38,  111 => 37,  109 => 36,  104 => 34,  100 => 33,  95 => 31,  82 => 21,  75 => 19,  68 => 14,  58 => 13,  35 => 11,);
  128.     }
  129.     public function getSourceContext()
  130.     {
  131.         return new Source("{#
  132. This file is part of EC-CUBE
  133. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  134. http://www.ec-cube.co.jp/
  135. For the full copyright and license information, please view the LICENSE
  136. file that was distributed with this source code.
  137. #}
  138. {% extends 'default_frame.twig' %}
  139. {% block main %}
  140. <div class=\"ec-searchnavRole\">
  141.   <div class=\"ec-searchnavRole__topicpath\">
  142.     <ol class=\"ec-topicpath\">
  143.       <li class=\"ec-topicpath__item\"><a href=\"{{ url('news_index') }}\">{{ 'ニュース一覧'|trans }}</a>
  144.       <li class=\"ec-topicpath__divider\">|</li>
  145.       <li class=\"ec-topicpath__item--active\">{{ news.title }}</li>
  146.     </ol>
  147.   </div>
  148. </div>
  149. <div class=\"ec-role\">
  150.   <hr>
  151.   <div class=\"news-{{ news.id }} row\">
  152.     <div class=\"col-md-8 col-md-offset-2\">
  153.       <p class=\"text-right\"><small>{{ news.publish_date|date(\"Y/m/d\") }}</small></p>
  154.       <h1 class=\"npsr-title\">{{ news.title }}</h1>
  155.       {% if news.np_thumbnail_url == true %}
  156.       <div class=\"npsr-thumbnail\">
  157.         <img src=\"{{ asset( news.np_thumbnail_url , 'save_image') }}\" alt=\"{{ news.title }}\">
  158.       </div>
  159.       {% endif %}
  160.       <div class=\"npsr-content\">
  161.         {{ news.description|raw }}
  162.       </div>
  163.     </div>
  164.   </div>
  165. </div>
  166. {% endblock %}
  167. ""News/detail.twig""/home/xs538259/exterior-plus.jp/public_html/app/template/default/News/detail.twig");
  168.     }
  169. }