var/cache/dev/twig/21/21cd93b1c30dee830fee077b69968006b0a026b5d7f74b15615065aacb8a6591.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. /* @user_data/News/detail.twig */
  14. class __TwigTemplate_5031f083785231d740b617b83d0a0759bd5711a382fde5e1bf2df5e41e647b64 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($contextarray_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
  55.         class=\"sub-container\">
  56.         <!-- SUB H1 -->
  57.         <div class=\"sub-h1Wrap\">
  58.             ";
  59.         // line 9
  60.         echo "            <h1 class=\"sub-h1\">お知らせ</h1>
  61.         </div>
  62.         <!-- /SUB H1 -->
  63.         <div
  64.             class=\"l-container\">
  65.             <!-- パンくずリスト -->
  66.             <ol class=\"sub-breadcrumbs\">
  67.                 <li>
  68.                     <a href=\"";
  69.         // line 17
  70.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  71.         echo "\">HOME</a>
  72.                 </li>
  73.                 ";
  74.         // line 20
  75.         echo "                <li>お知らせ</li>
  76.             </ol>
  77.             <!-- /パンくずリスト -->
  78.             <div
  79.                 class=\"l-2ColumnContainer\">
  80.                 <!-- メインコンテンツ -->
  81.                 <div
  82.                     class=\"l-main\">
  83.                     <!-- PAGE CONTENTS -->
  84.                     <h2 class=\"mod-hl-01\">
  85.                         <span class=\"isJp\">";
  86.         // line 31
  87.         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); })()), "title", [], "any"falsefalsefalse31), "html"nulltrue);
  88.         echo "</span>
  89.                     </h2>                    
  90.                     <p class=\"textRight marginTop10\">";
  91.         // line 33
  92.         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);
  93.         echo "</p>           
  94.                     <p class=\"marginTop20\">
  95.                         ";
  96.         // line 35
  97.         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.'35$this->source); })()), "description", [], "any"falsefalsefalse35));
  98.         echo "
  99.                         ";
  100.         // line 36
  101.         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); })()), "url", [], "any"falsefalsefalse36)) {
  102.             // line 37
  103.             echo "                            <br>
  104.                             <a href=\"";
  105.             // line 38
  106.             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); })()), "url", [], "any"falsefalsefalse38), "html"nulltrue);
  107.             echo "\" ";
  108.             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.'38$this->source); })()), "link_method", [], "any"falsefalsefalse38) == "1")) {
  109.                 echo "target=\"_blank\"";
  110.             }
  111.             echo ">";
  112.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("詳しくはこちら"), "html"nulltrue);
  113.             echo "</a>
  114.                         ";
  115.         }
  116.         // line 39
  117.         echo "         
  118.                     </p>                           
  119.                     <!-- /PAGE CONTENTS -->
  120.                 </div>
  121.                 <!-- /メインコンテンツ -->
  122.                 <!-- サイドメニュー -->
  123.                 ";
  124.         // line 48
  125.         echo twig_include($this->env$context"Block/l_sub.twig", array(), truetrue);
  126.         echo "
  127.                 <!-- /サイドメニュー -->
  128.             </div>
  129.         </div>
  130.     </div>
  131. ";
  132.         
  133.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  134.         
  135.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  136.     }
  137.     public function getTemplateName()
  138.     {
  139.         return "@user_data/News/detail.twig";
  140.     }
  141.     public function isTraitable()
  142.     {
  143.         return false;
  144.     }
  145.     public function getDebugInfo()
  146.     {
  147.         return array (  143 => 48,  132 => 39,  121 => 38,  118 => 37,  116 => 36,  112 => 35,  107 => 33,  102 => 31,  89 => 20,  84 => 17,  74 => 9,  68 => 4,  58 => 3,  35 => 1,);
  148.     }
  149.     public function getSourceContext()
  150.     {
  151.         return new Source("{% extends 'default_frame.twig' %}
  152. {% block main %}
  153.     <div
  154.         class=\"sub-container\">
  155.         <!-- SUB H1 -->
  156.         <div class=\"sub-h1Wrap\">
  157.             {# 必要に応じて増やしてください #}
  158.             <h1 class=\"sub-h1\">お知らせ</h1>
  159.         </div>
  160.         <!-- /SUB H1 -->
  161.         <div
  162.             class=\"l-container\">
  163.             <!-- パンくずリスト -->
  164.             <ol class=\"sub-breadcrumbs\">
  165.                 <li>
  166.                     <a href=\"{{ url('homepage') }}\">HOME</a>
  167.                 </li>
  168.                 {# 必要に応じて増やしてください #}
  169.                 <li>お知らせ</li>
  170.             </ol>
  171.             <!-- /パンくずリスト -->
  172.             <div
  173.                 class=\"l-2ColumnContainer\">
  174.                 <!-- メインコンテンツ -->
  175.                 <div
  176.                     class=\"l-main\">
  177.                     <!-- PAGE CONTENTS -->
  178.                     <h2 class=\"mod-hl-01\">
  179.                         <span class=\"isJp\">{{ News.title }}</span>
  180.                     </h2>                    
  181.                     <p class=\"textRight marginTop10\">{{ News.publish_date|date('Y.m.d') }}</p>           
  182.                     <p class=\"marginTop20\">
  183.                         {{ News.description|raw|nl2br }}
  184.                         {% if News.url %}
  185.                             <br>
  186.                             <a href=\"{{ News.url }}\" {% if News.link_method == '1' %}target=\"_blank\"{% endif %}>{{ '詳しくはこちら'|trans }}</a>
  187.                         {% endif %}         
  188.                     </p>                           
  189.                     <!-- /PAGE CONTENTS -->
  190.                 </div>
  191.                 <!-- /メインコンテンツ -->
  192.                 <!-- サイドメニュー -->
  193.                 {{ include('Block/l_sub.twig', ignore_missing = true) }}
  194.                 <!-- /サイドメニュー -->
  195.             </div>
  196.         </div>
  197.     </div>
  198. {% endblock %}""@user_data/News/detail.twig""/home/hiniaratest/test-page.website/public_html/nagae-hanko.test-page.website/app/template/user_data/News/detail.twig");
  199.     }
  200. }