var/cache/dev/twig/4f/4f6e0877490df003b78637ef5672644a.php line 54

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. /* Books/list.twig */
  14. class __TwigTemplate_cfeec38904e2902a0693c561643dee42 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.             'javascript' => [$this'block_javascript'],
  24.             'main' => [$this'block_main'],
  25.         ];
  26.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  27.         $this->checkSecurity();
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return "default_frame.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Books/list.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Books/list.twig"));
  41.         // line 14
  42.         $context["body_class"] = "books";
  43.         // line 1
  44.         $this->parent $this->loadTemplate("default_frame.twig""Books/list.twig"1);
  45.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 2
  52.     public function block_javascript($context, array $blocks = [])
  53.     {
  54.         $macros $this->macros;
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  59.         // line 3
  60.         echo "    <script>
  61.     function epubwindow(epubUrl) {
  62.         var windowW = \$(window).width();
  63.         var windowH = \$(window).height();
  64.         window.open(
  65.             epubUrl, //url
  66.             \"_blank\",   //新規ウィンドウにドキュメントを読み込む
  67.             \"width=windowW,height=windowH,menubar=0,toolbar=0\"
  68.     )};
  69.     </script>
  70. ";
  71.         
  72.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  73.         
  74.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  75.     }
  76.     // line 16
  77.     public function block_main($context, array $blocks = [])
  78.     {
  79.         $macros $this->macros;
  80.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  81.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  82.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  83.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  84.         // line 17
  85.         echo "<div class=\"ec-role\">
  86.     <div class=\"ec-pageHeader\">
  87.         <h1 class=\"mainttl\">月刊『健康教室』・弊社発行書籍の災害関連記事の公開について(無償)</h1>
  88.     </div>
  89.     <div id=\"undercolumn\">
  90.         <div id=\"undercolumn_aboutus\">
  91.             <p class=\"intro\">
  92.                 能登半島地震の被災支援に携わる方々に資するため、『健康教室』バックナンバーや弊社発行書籍から、執筆者の方々のご厚意により、震災関連記事をPDFにて公開させていただく運びとなりました。どなたでも無償でご覧いただけます。子どもたち、教職員、地域の方々に向けた、現在および今後のケアにお役立ていただければと思います。<br />
  93.                 今後も、追っていくつかの記事を公開していく予定です。
  94.             </p>
  95.             <h3 class=\"subtitle\">現在公開中のPDFならびに電子書籍</h3>
  96.             <div class=\"article-area\">
  97.                 <div class=\"article-box\">
  98.                     <a href=\"";
  99.         // line 31
  100.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/pdf/saigaikansen.pdf""user_data"), "html"nulltrue);
  101.         echo "\">
  102.                     <h4>「災害時の感染症 その予防と対策」</h4>
  103.                     </a><span class=\"beclick\">&#9756;タイトルをクリック</span>
  104.                     <p>※2016年時点の記事です。下記の「破傷風」あわせてお読みください。<br>岡田晴恵先生(白鴎大学教育学部教授)<br>『健康教室』2016年7月号掲載</p>
  105.                 </div>
  106.                 <div class=\"article-box\">
  107.                     <a href=\"";
  108.         // line 37
  109.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/pdf/hashofu.pdf""user_data"), "html"nulltrue);
  110.         echo "\">
  111.                     <h4>「破傷風」</h4>
  112.                     </a><span class=\"beclick\">&#9756;タイトルをクリック</span>
  113.                     <p>岡田晴恵先生(白鴎大学教育学部教授)<br>『学校の感染症対策(改訂増補版)』より</p>
  114.                 </div>
  115.                 <div class=\"article-box\">
  116.                     <a href=\"";
  117.         // line 43
  118.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/pdf/201805_kato.pdf""user_data"), "html"nulltrue);
  119.         echo "\">
  120.                     <h4>「災害時の学校におけるトイレの使用・運用方法について」</h4>
  121.                     </a><span class=\"beclick\">&#9756;タイトルをクリック</span>
  122.                     <p>加藤篤先生(特定非営利活動法人日本トイレ研究所代表理事)<br />『健康教室』2018年5月号掲載</p>
  123.                 </div>
  124.                 <div class=\"article-box\">
  125.                     <a href=\"";
  126.         // line 49
  127.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/pdf/201607_kume.pdf""user_data"), "html"nulltrue);
  128.         echo "\">
  129.                     <h4>「睡眠障害相談室から~現代の子どもたちの『眠りの悩み』~」</h4>
  130.                     </a><span class=\"beclick\">&#9756;タイトルをクリック</span>
  131.                     <p>連載第16回「ストレス性の不眠:熊本・大分の震災に寄せて」<br />粂和彦先生(名古屋市立大学)<br />『健康教室』2016年7月号掲載</p>
  132.                 </div>
  133.             </div>
  134.             ";
  135.         // line 56
  136.         if ((twig_length_filter($this->env, (isset($context["eBooks"]) || array_key_exists("eBooks"$context) ? $context["eBooks"] : (function () { throw new RuntimeError('Variable "eBooks" does not exist.'56$this->source); })())) > 0)) {
  137.             // line 57
  138.             echo "                <div class=\"table-ebook__area\">
  139.                     ";
  140.             // line 58
  141.             $context['_parent'] = $context;
  142.             $context['_seq'] = twig_ensure_traversable((isset($context["eBooks"]) || array_key_exists("eBooks"$context) ? $context["eBooks"] : (function () { throw new RuntimeError('Variable "eBooks" does not exist.'58$this->source); })()));
  143.             foreach ($context['_seq'] as $context["_key"] => $context["eBook"]) {
  144.                 // line 59
  145.                 echo "                    <dl class=\"table-ebook__list flex\">
  146.                         <dt class=\"ebook-img\">
  147.                             <img src=\"";
  148.                 // line 61
  149.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["eBook"], "epub_thumbnail_image", [], "any"falsefalsetrue61), 61$this->source)), "save_image"), "html"nulltrue);
  150.                 echo "\" width=\"100%\" height=\"auto\">
  151.                         </dt>
  152.                         <dd class=\"ebook-txt\">
  153.                             <h4 class=\"ebook_title\">";
  154.                 // line 64
  155.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["eBook"], "title", [], "any"falsefalsetrue64), 64$this->source), "html"nulltrue);
  156.                 echo "</h4>
  157.                             <div class=\"ebook_intro\">
  158.                                 <p class=\"ebook_published_period\">掲載期間:";
  159.                 // line 66
  160.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["eBook"], "start_date", [], "any"falsefalsetrue66), 66$this->source), "Y年m月d日 H時i分"), "html"nulltrue);
  161.                 echo "〜";
  162.                 if (twig_get_attribute($this->env$this->source$context["eBook"], "end_date", [], "any"falsefalsetrue66)) {
  163.                     echo twig_escape_filter($this->envtwig_date_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["eBook"], "end_date", [], "any"falsefalsetrue66), 66$this->source), "Y年m月d日 H時i分"), "html"nulltrue);
  164.                 }
  165.                 echo "</p>
  166.                                 ";
  167.                 // line 67
  168.                 if (twig_get_attribute($this->env$this->source$context["eBook"], "epub_comment", [], "any"falsefalsetrue67)) {
  169.                     echo "<p class=\"intro\">";
  170.                     echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["eBook"], "epub_comment", [], "any"falsefalsetrue67), 67$this->source);
  171.                     echo "</p>";
  172.                 }
  173.                 // line 68
  174.                 echo "                                <p class=\"btn-area\">
  175.                                     <a href=javascript:epubwindow(\"/epub?book=";
  176.                 // line 69
  177.                 echo twig_escape_filter($this->env$this->extensions['Plugin\EPub42\Twig\Extension\EccubeExtension']->getEpubFile($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["eBook"], "epub_file_name", [], "any"falsefalsetrue69), 69$this->source)), "html"nulltrue);
  178.                 echo "\") class=\"open-button green-btn\">この書籍を読む</a>
  179.                                 </p>
  180.                             </div>
  181.                         </dd>
  182.                     </dl>
  183.                     ";
  184.             }
  185.             $_parent $context['_parent'];
  186.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['eBook'], $context['_parent'], $context['loop']);
  187.             $context array_intersect_key($context$_parent) + $_parent;
  188.             // line 76
  189.             echo "                </div>
  190.             ";
  191.         } else {
  192.             // line 78
  193.             echo "                <p class=\"ec-para-normal\">";
  194.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("只今、公開されている電子書籍はございません。"), "html"nulltrue);
  195.             echo "</p>
  196.             ";
  197.         }
  198.         // line 80
  199.         echo "        </div>
  200.     </div>
  201. </div>
  202. ";
  203.         
  204.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  205.         
  206.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  207.     }
  208.     public function getTemplateName()
  209.     {
  210.         return "Books/list.twig";
  211.     }
  212.     public function isTraitable()
  213.     {
  214.         return false;
  215.     }
  216.     public function getDebugInfo()
  217.     {
  218.         return array (  221 => 80,  215 => 78,  211 => 76,  198 => 69,  195 => 68,  189 => 67,  181 => 66,  176 => 64,  170 => 61,  166 => 59,  162 => 58,  159 => 57,  157 => 56,  147 => 49,  138 => 43,  129 => 37,  120 => 31,  104 => 17,  94 => 16,  74 => 3,  64 => 2,  53 => 1,  51 => 14,  38 => 1,);
  219.     }
  220.     public function getSourceContext()
  221.     {
  222.         return new Source("{% extends 'default_frame.twig' %}
  223. {% block javascript %}
  224.     <script>
  225.     function epubwindow(epubUrl) {
  226.         var windowW = \$(window).width();
  227.         var windowH = \$(window).height();
  228.         window.open(
  229.             epubUrl, //url
  230.             \"_blank\",   //新規ウィンドウにドキュメントを読み込む
  231.             \"width=windowW,height=windowH,menubar=0,toolbar=0\"
  232.     )};
  233.     </script>
  234. {% endblock javascript %}
  235. {% set body_class = 'books' %}
  236. {% block main %}
  237. <div class=\"ec-role\">
  238.     <div class=\"ec-pageHeader\">
  239.         <h1 class=\"mainttl\">月刊『健康教室』・弊社発行書籍の災害関連記事の公開について(無償)</h1>
  240.     </div>
  241.     <div id=\"undercolumn\">
  242.         <div id=\"undercolumn_aboutus\">
  243.             <p class=\"intro\">
  244.                 能登半島地震の被災支援に携わる方々に資するため、『健康教室』バックナンバーや弊社発行書籍から、執筆者の方々のご厚意により、震災関連記事をPDFにて公開させていただく運びとなりました。どなたでも無償でご覧いただけます。子どもたち、教職員、地域の方々に向けた、現在および今後のケアにお役立ていただければと思います。<br />
  245.                 今後も、追っていくつかの記事を公開していく予定です。
  246.             </p>
  247.             <h3 class=\"subtitle\">現在公開中のPDFならびに電子書籍</h3>
  248.             <div class=\"article-area\">
  249.                 <div class=\"article-box\">
  250.                     <a href=\"{{ asset('assets/pdf/saigaikansen.pdf', 'user_data') }}\">
  251.                     <h4>「災害時の感染症 その予防と対策」</h4>
  252.                     </a><span class=\"beclick\">&#9756;タイトルをクリック</span>
  253.                     <p>※2016年時点の記事です。下記の「破傷風」あわせてお読みください。<br>岡田晴恵先生(白鴎大学教育学部教授)<br>『健康教室』2016年7月号掲載</p>
  254.                 </div>
  255.                 <div class=\"article-box\">
  256.                     <a href=\"{{ asset('assets/pdf/hashofu.pdf', 'user_data') }}\">
  257.                     <h4>「破傷風」</h4>
  258.                     </a><span class=\"beclick\">&#9756;タイトルをクリック</span>
  259.                     <p>岡田晴恵先生(白鴎大学教育学部教授)<br>『学校の感染症対策(改訂増補版)』より</p>
  260.                 </div>
  261.                 <div class=\"article-box\">
  262.                     <a href=\"{{ asset('assets/pdf/201805_kato.pdf', 'user_data') }}\">
  263.                     <h4>「災害時の学校におけるトイレの使用・運用方法について」</h4>
  264.                     </a><span class=\"beclick\">&#9756;タイトルをクリック</span>
  265.                     <p>加藤篤先生(特定非営利活動法人日本トイレ研究所代表理事)<br />『健康教室』2018年5月号掲載</p>
  266.                 </div>
  267.                 <div class=\"article-box\">
  268.                     <a href=\"{{ asset('assets/pdf/201607_kume.pdf', 'user_data') }}\">
  269.                     <h4>「睡眠障害相談室から~現代の子どもたちの『眠りの悩み』~」</h4>
  270.                     </a><span class=\"beclick\">&#9756;タイトルをクリック</span>
  271.                     <p>連載第16回「ストレス性の不眠:熊本・大分の震災に寄せて」<br />粂和彦先生(名古屋市立大学)<br />『健康教室』2016年7月号掲載</p>
  272.                 </div>
  273.             </div>
  274.             {% if eBooks|length > 0 %}
  275.                 <div class=\"table-ebook__area\">
  276.                     {% for eBook in eBooks %}
  277.                     <dl class=\"table-ebook__list flex\">
  278.                         <dt class=\"ebook-img\">
  279.                             <img src=\"{{ asset(eBook.epub_thumbnail_image|no_image_product, 'save_image') }}\" width=\"100%\" height=\"auto\">
  280.                         </dt>
  281.                         <dd class=\"ebook-txt\">
  282.                             <h4 class=\"ebook_title\">{{ eBook.title }}</h4>
  283.                             <div class=\"ebook_intro\">
  284.                                 <p class=\"ebook_published_period\">掲載期間:{{ eBook.start_date|date('Y年m月d日 H時i分') }}〜{% if eBook.end_date %}{{ eBook.end_date|date('Y年m月d日 H時i分') }}{% endif %}</p>
  285.                                 {% if eBook.epub_comment %}<p class=\"intro\">{{ eBook.epub_comment|raw }}</p>{% endif %}
  286.                                 <p class=\"btn-area\">
  287.                                     <a href=javascript:epubwindow(\"/epub?book={{ eBook.epub_file_name|epub_file }}\") class=\"open-button green-btn\">この書籍を読む</a>
  288.                                 </p>
  289.                             </div>
  290.                         </dd>
  291.                     </dl>
  292.                     {% endfor %}
  293.                 </div>
  294.             {% else %}
  295.                 <p class=\"ec-para-normal\">{{ '只今、公開されている電子書籍はございません。'|trans }}</p>
  296.             {% endif %}
  297.         </div>
  298.     </div>
  299. </div>
  300. {% endblock %}""Books/list.twig""/home/higashiyamashobo/www/higashiyamashobo.jpn.org/ec-cube/app/template/default/Books/list.twig");
  301.     }
  302.     
  303.     public function checkSecurity()
  304.     {
  305.         static $tags = array("set" => 14"if" => 56"for" => 58);
  306.         static $filters = array("escape" => 31"length" => 56"no_image_product" => 61"date" => 66"raw" => 67"epub_file" => 69"trans" => 78);
  307.         static $functions = array("asset" => 31);
  308.         try {
  309.             $this->sandbox->checkSecurity(
  310.                 ['set''if''for'],
  311.                 ['escape''length''no_image_product''date''raw''epub_file''trans'],
  312.                 ['asset']
  313.             );
  314.         } catch (SecurityError $e) {
  315.             $e->setSourceContext($this->source);
  316.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  317.                 $e->setTemplateLine($tags[$e->getTagName()]);
  318.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  319.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  320.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  321.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  322.             }
  323.             throw $e;
  324.         }
  325.     }
  326. }