<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* Books/list.twig */
class __TwigTemplate_cfeec38904e2902a0693c561643dee42 extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'javascript' => [$this, 'block_javascript'],
'main' => [$this, 'block_main'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 1
return "default_frame.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Books/list.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Books/list.twig"));
// line 14
$context["body_class"] = "books";
// line 1
$this->parent = $this->loadTemplate("default_frame.twig", "Books/list.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 2
public function block_javascript($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
// line 3
echo " <script>
function epubwindow(epubUrl) {
var windowW = \$(window).width();
var windowH = \$(window).height();
window.open(
epubUrl, //url
\"_blank\", //新規ウィンドウにドキュメントを読み込む
\"width=windowW,height=windowH,menubar=0,toolbar=0\"
)};
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 16
public function block_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 17
echo "<div class=\"ec-role\">
<div class=\"ec-pageHeader\">
<h1 class=\"mainttl\">月刊『健康教室』・弊社発行書籍の災害関連記事の公開について(無償)</h1>
</div>
<div id=\"undercolumn\">
<div id=\"undercolumn_aboutus\">
<p class=\"intro\">
能登半島地震の被災支援に携わる方々に資するため、『健康教室』バックナンバーや弊社発行書籍から、執筆者の方々のご厚意により、震災関連記事をPDFにて公開させていただく運びとなりました。どなたでも無償でご覧いただけます。子どもたち、教職員、地域の方々に向けた、現在および今後のケアにお役立ていただければと思います。<br />
今後も、追っていくつかの記事を公開していく予定です。
</p>
<h3 class=\"subtitle\">現在公開中のPDFならびに電子書籍</h3>
<div class=\"article-area\">
<div class=\"article-box\">
<a href=\"";
// line 31
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/pdf/saigaikansen.pdf", "user_data"), "html", null, true);
echo "\">
<h4>「災害時の感染症 その予防と対策」</h4>
</a><span class=\"beclick\">☜タイトルをクリック</span>
<p>※2016年時点の記事です。下記の「破傷風」あわせてお読みください。<br>岡田晴恵先生(白鴎大学教育学部教授)<br>『健康教室』2016年7月号掲載</p>
</div>
<div class=\"article-box\">
<a href=\"";
// line 37
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/pdf/hashofu.pdf", "user_data"), "html", null, true);
echo "\">
<h4>「破傷風」</h4>
</a><span class=\"beclick\">☜タイトルをクリック</span>
<p>岡田晴恵先生(白鴎大学教育学部教授)<br>『学校の感染症対策(改訂増補版)』より</p>
</div>
<div class=\"article-box\">
<a href=\"";
// line 43
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/pdf/201805_kato.pdf", "user_data"), "html", null, true);
echo "\">
<h4>「災害時の学校におけるトイレの使用・運用方法について」</h4>
</a><span class=\"beclick\">☜タイトルをクリック</span>
<p>加藤篤先生(特定非営利活動法人日本トイレ研究所代表理事)<br />『健康教室』2018年5月号掲載</p>
</div>
<div class=\"article-box\">
<a href=\"";
// line 49
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/pdf/201607_kume.pdf", "user_data"), "html", null, true);
echo "\">
<h4>「睡眠障害相談室から~現代の子どもたちの『眠りの悩み』~」</h4>
</a><span class=\"beclick\">☜タイトルをクリック</span>
<p>連載第16回「ストレス性の不眠:熊本・大分の震災に寄せて」<br />粂和彦先生(名古屋市立大学)<br />『健康教室』2016年7月号掲載</p>
</div>
</div>
";
// line 56
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)) {
// line 57
echo " <div class=\"table-ebook__area\">
";
// line 58
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["eBook"]) {
// line 59
echo " <dl class=\"table-ebook__list flex\">
<dt class=\"ebook-img\">
<img src=\"";
// line 61
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", false, false, true, 61), 61, $this->source)), "save_image"), "html", null, true);
echo "\" width=\"100%\" height=\"auto\">
</dt>
<dd class=\"ebook-txt\">
<h4 class=\"ebook_title\">";
// line 64
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["eBook"], "title", [], "any", false, false, true, 64), 64, $this->source), "html", null, true);
echo "</h4>
<div class=\"ebook_intro\">
<p class=\"ebook_published_period\">掲載期間:";
// line 66
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["eBook"], "start_date", [], "any", false, false, true, 66), 66, $this->source), "Y年m月d日 H時i分"), "html", null, true);
echo "〜";
if (twig_get_attribute($this->env, $this->source, $context["eBook"], "end_date", [], "any", false, false, true, 66)) {
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["eBook"], "end_date", [], "any", false, false, true, 66), 66, $this->source), "Y年m月d日 H時i分"), "html", null, true);
}
echo "</p>
";
// line 67
if (twig_get_attribute($this->env, $this->source, $context["eBook"], "epub_comment", [], "any", false, false, true, 67)) {
echo "<p class=\"intro\">";
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["eBook"], "epub_comment", [], "any", false, false, true, 67), 67, $this->source);
echo "</p>";
}
// line 68
echo " <p class=\"btn-area\">
<a href=javascript:epubwindow(\"/epub?book=";
// line 69
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", false, false, true, 69), 69, $this->source)), "html", null, true);
echo "\") class=\"open-button green-btn\">この書籍を読む</a>
</p>
</div>
</dd>
</dl>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['eBook'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 76
echo " </div>
";
} else {
// line 78
echo " <p class=\"ec-para-normal\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("只今、公開されている電子書籍はございません。"), "html", null, true);
echo "</p>
";
}
// line 80
echo " </div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "Books/list.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'default_frame.twig' %}
{% block javascript %}
<script>
function epubwindow(epubUrl) {
var windowW = \$(window).width();
var windowH = \$(window).height();
window.open(
epubUrl, //url
\"_blank\", //新規ウィンドウにドキュメントを読み込む
\"width=windowW,height=windowH,menubar=0,toolbar=0\"
)};
</script>
{% endblock javascript %}
{% set body_class = 'books' %}
{% block main %}
<div class=\"ec-role\">
<div class=\"ec-pageHeader\">
<h1 class=\"mainttl\">月刊『健康教室』・弊社発行書籍の災害関連記事の公開について(無償)</h1>
</div>
<div id=\"undercolumn\">
<div id=\"undercolumn_aboutus\">
<p class=\"intro\">
能登半島地震の被災支援に携わる方々に資するため、『健康教室』バックナンバーや弊社発行書籍から、執筆者の方々のご厚意により、震災関連記事をPDFにて公開させていただく運びとなりました。どなたでも無償でご覧いただけます。子どもたち、教職員、地域の方々に向けた、現在および今後のケアにお役立ていただければと思います。<br />
今後も、追っていくつかの記事を公開していく予定です。
</p>
<h3 class=\"subtitle\">現在公開中のPDFならびに電子書籍</h3>
<div class=\"article-area\">
<div class=\"article-box\">
<a href=\"{{ asset('assets/pdf/saigaikansen.pdf', 'user_data') }}\">
<h4>「災害時の感染症 その予防と対策」</h4>
</a><span class=\"beclick\">☜タイトルをクリック</span>
<p>※2016年時点の記事です。下記の「破傷風」あわせてお読みください。<br>岡田晴恵先生(白鴎大学教育学部教授)<br>『健康教室』2016年7月号掲載</p>
</div>
<div class=\"article-box\">
<a href=\"{{ asset('assets/pdf/hashofu.pdf', 'user_data') }}\">
<h4>「破傷風」</h4>
</a><span class=\"beclick\">☜タイトルをクリック</span>
<p>岡田晴恵先生(白鴎大学教育学部教授)<br>『学校の感染症対策(改訂増補版)』より</p>
</div>
<div class=\"article-box\">
<a href=\"{{ asset('assets/pdf/201805_kato.pdf', 'user_data') }}\">
<h4>「災害時の学校におけるトイレの使用・運用方法について」</h4>
</a><span class=\"beclick\">☜タイトルをクリック</span>
<p>加藤篤先生(特定非営利活動法人日本トイレ研究所代表理事)<br />『健康教室』2018年5月号掲載</p>
</div>
<div class=\"article-box\">
<a href=\"{{ asset('assets/pdf/201607_kume.pdf', 'user_data') }}\">
<h4>「睡眠障害相談室から~現代の子どもたちの『眠りの悩み』~」</h4>
</a><span class=\"beclick\">☜タイトルをクリック</span>
<p>連載第16回「ストレス性の不眠:熊本・大分の震災に寄せて」<br />粂和彦先生(名古屋市立大学)<br />『健康教室』2016年7月号掲載</p>
</div>
</div>
{% if eBooks|length > 0 %}
<div class=\"table-ebook__area\">
{% for eBook in eBooks %}
<dl class=\"table-ebook__list flex\">
<dt class=\"ebook-img\">
<img src=\"{{ asset(eBook.epub_thumbnail_image|no_image_product, 'save_image') }}\" width=\"100%\" height=\"auto\">
</dt>
<dd class=\"ebook-txt\">
<h4 class=\"ebook_title\">{{ eBook.title }}</h4>
<div class=\"ebook_intro\">
<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>
{% if eBook.epub_comment %}<p class=\"intro\">{{ eBook.epub_comment|raw }}</p>{% endif %}
<p class=\"btn-area\">
<a href=javascript:epubwindow(\"/epub?book={{ eBook.epub_file_name|epub_file }}\") class=\"open-button green-btn\">この書籍を読む</a>
</p>
</div>
</dd>
</dl>
{% endfor %}
</div>
{% else %}
<p class=\"ec-para-normal\">{{ '只今、公開されている電子書籍はございません。'|trans }}</p>
{% endif %}
</div>
</div>
</div>
{% endblock %}", "Books/list.twig", "/home/higashiyamashobo/www/higashiyamashobo.jpn.org/ec-cube/app/template/default/Books/list.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 14, "if" => 56, "for" => 58);
static $filters = array("escape" => 31, "length" => 56, "no_image_product" => 61, "date" => 66, "raw" => 67, "epub_file" => 69, "trans" => 78);
static $functions = array("asset" => 31);
try {
$this->sandbox->checkSecurity(
['set', 'if', 'for'],
['escape', 'length', 'no_image_product', 'date', 'raw', 'epub_file', 'trans'],
['asset']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}