<?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;
/* content/tmpl/ebooks-list.html.twig */
class __TwigTemplate_940ae52a783ec2d9652239bcc6a0ec19 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.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", "content/tmpl/ebooks-list.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "content/tmpl/ebooks-list.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "content/tmpl/ebooks-list.html.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_body($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", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 3
echo "
\t";
// line 4
$this->loadTemplate("content/tmpl/ebooks-list.html.twig", "content/tmpl/ebooks-list.html.twig", 4, "1394193382")->display($context);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "content/tmpl/ebooks-list.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 71 => 4, 68 => 3, 58 => 2, 35 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"base.html.twig\" %}
{% block body %}
\t{% embed \"1-col-sidebar.html.twig\" %}
\t\t{% block column %}
\t\t\t{% if site_code == constant(\"App\\\\Entity\\\\Content::SITE_RCS\") %}
\t\t\t\t{% include \"includes/curtain-ads/rlw.html.twig\" %}
\t\t\t{% endif %}
\t\t\t<style>
\t\t\t\t.book {
\t\t\t\t\theight: 288px;
\t\t\t\t\tmargin: auto;
\t\t\t\t\tbox-shadow: 5px 4px 6px 2px #0000006e;
\t\t\t\t\tposition: relative;
\t\t\t\t\ttransition: 0.2s ease-in-out;
\t\t\t\t\twidth: 223px;
\t\t\t\t\toverflow: hidden;
\t\t\t\t}
\t\t\t\t.book:hover {
\t\t\t\t\tbox-shadow: 0 12px 15px -2px #0000006e;
\t\t\t\t\tpadding: 0;
\t\t\t\t\ttransform: scale(1.05);
\t\t\t\t}
\t\t\t\t.book:hover > .title {
\t\t\t\t\tbottom: 15px;
\t\t\t\t}
\t\t\t\t.title {
\t\t\t\t\t/*position: absolute;*/
\t\t\t\t\tbottom: 5px;
\t\t\t\t\tleft: 0;
\t\t\t\t\twidth: 100%;
\t\t\t\t\ttext-align: center;
\t\t\t\t\tfont-weight: bolder;
\t\t\t\t\ttransition: 0.2s ease-in-out;
\t\t\t\t\tpadding: 0 10px;
\t\t\t\t}
\t\t\t\t.book-container {
\t\t\t\t\tmargin-top: 20px;
\t\t\t\t\tmargin-bottom: 14px;
\t\t\t\t}
\t\t\t\t.cover-art {
\t\t\t\t\tmax-height: 288px;
\t\t\t\t\tmargin: auto;
\t\t\t\t\tdisplay: block;
\t\t\t\t}
\t\t\t\t.row {
\t\t\t\t\tdisplay: flex;
\t\t\t\t\tflex-direction: row;
\t\t\t\t}
\t\t\t\t.column {
\t\t\t\t\tjustify-content: center;
\t\t\t\t\tdisplay: flex;
\t\t\t\t\tflex-direction: column;
\t\t\t\t}
\t\t\t</style>
\t\t\t<div class=\"row\">
\t\t\t\t{% if customer is defined %}
\t\t\t\t\t<h1>{{customer}}</h1>
\t\t\t\t{% else %}
\t\t\t\t\t<h1>{{title}}</h1>
\t\t\t\t{% endif %}
\t\t\t\t{% if showSortSelect is defined and showSortSelect %}
\t\t\t\t\t{% include \"includes/ebooks-sort-select.html.twig\" %}
\t\t\t\t{% endif %}
\t\t\t</div>
\t\t\t<div class=\"row\">
\t\t\t\t{% for eBook in eBooks %}
\t\t\t\t\t<a class=\"col-lg-4 col-md-6\" href=\"{{eBook.getURL()}}\">
\t\t\t\t\t\t<div class=\"book-container\">
\t\t\t\t\t\t\t<div class=\"book\">
\t\t\t\t\t\t\t\t{% if eBook.getMedia() %}
\t\t\t\t\t\t\t\t\t{{eBook.getMedia().getImageTag('cover-art')|raw}}
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t{# <span class=\"title\">{{eBook}}</span> #}
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"title\">{{eBook.getTitle()}}</div>
\t\t\t\t\t</a>
\t\t\t\t{% endfor %}
\t\t\t</div>
\t\t{% endblock %}
\t{% endembed %}
{% endblock %}
", "content/tmpl/ebooks-list.html.twig", "/var/www/vhosts/rooferscoffeeshop.com/staging.rooferscoffeeshop.com/rcs-website/templates/content/tmpl/ebooks-list.html.twig");
}
}
/* content/tmpl/ebooks-list.html.twig */
class __TwigTemplate_940ae52a783ec2d9652239bcc6a0ec19___1394193382 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'column' => [$this, 'block_column'],
];
}
protected function doGetParent(array $context)
{
return "1-col-sidebar.html.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", "content/tmpl/ebooks-list.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "content/tmpl/ebooks-list.html.twig"));
$this->parent = $this->loadTemplate("1-col-sidebar.html.twig", "content/tmpl/ebooks-list.html.twig", 4);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 6
public function block_column($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", "column"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "column"));
// line 7
echo "
\t\t\t";
// line 8
if (((isset($context["site_code"]) || array_key_exists("site_code", $context) ? $context["site_code"] : (function () { throw new RuntimeError('Variable "site_code" does not exist.', 8, $this->source); })()) == twig_constant("App\\Entity\\Content::SITE_RCS"))) {
// line 9
echo "
\t\t\t\t";
// line 10
$this->loadTemplate("includes/curtain-ads/rlw.html.twig", "content/tmpl/ebooks-list.html.twig", 10)->display($context);
// line 11
echo "\t\t\t";
}
// line 12
echo "\t\t\t<style>
\t\t\t\t.book {
\t\t\t\t\theight: 288px;
\t\t\t\t\tmargin: auto;
\t\t\t\t\tbox-shadow: 5px 4px 6px 2px #0000006e;
\t\t\t\t\tposition: relative;
\t\t\t\t\ttransition: 0.2s ease-in-out;
\t\t\t\t\twidth: 223px;
\t\t\t\t\toverflow: hidden;
\t\t\t\t}
\t\t\t\t.book:hover {
\t\t\t\t\tbox-shadow: 0 12px 15px -2px #0000006e;
\t\t\t\t\tpadding: 0;
\t\t\t\t\ttransform: scale(1.05);
\t\t\t\t}
\t\t\t\t.book:hover > .title {
\t\t\t\t\tbottom: 15px;
\t\t\t\t}
\t\t\t\t.title {
\t\t\t\t\t/*position: absolute;*/
\t\t\t\t\tbottom: 5px;
\t\t\t\t\tleft: 0;
\t\t\t\t\twidth: 100%;
\t\t\t\t\ttext-align: center;
\t\t\t\t\tfont-weight: bolder;
\t\t\t\t\ttransition: 0.2s ease-in-out;
\t\t\t\t\tpadding: 0 10px;
\t\t\t\t}
\t\t\t\t.book-container {
\t\t\t\t\tmargin-top: 20px;
\t\t\t\t\tmargin-bottom: 14px;
\t\t\t\t}
\t\t\t\t.cover-art {
\t\t\t\t\tmax-height: 288px;
\t\t\t\t\tmargin: auto;
\t\t\t\t\tdisplay: block;
\t\t\t\t}
\t\t\t\t.row {
\t\t\t\t\tdisplay: flex;
\t\t\t\t\tflex-direction: row;
\t\t\t\t}
\t\t\t\t.column {
\t\t\t\t\tjustify-content: center;
\t\t\t\t\tdisplay: flex;
\t\t\t\t\tflex-direction: column;
\t\t\t\t}
\t\t\t</style>
\t\t\t<div class=\"row\">
\t\t\t\t";
// line 60
if (array_key_exists("customer", $context)) {
// line 61
echo "\t\t\t\t\t<h1>";
echo twig_escape_filter($this->env, (isset($context["customer"]) || array_key_exists("customer", $context) ? $context["customer"] : (function () { throw new RuntimeError('Variable "customer" does not exist.', 61, $this->source); })()), "html", null, true);
echo "</h1>
\t\t\t\t";
} else {
// line 63
echo "\t\t\t\t\t<h1>";
echo twig_escape_filter($this->env, (isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 63, $this->source); })()), "html", null, true);
echo "</h1>
\t\t\t\t";
}
// line 65
echo "\t\t\t\t";
if ((array_key_exists("showSortSelect", $context) && (isset($context["showSortSelect"]) || array_key_exists("showSortSelect", $context) ? $context["showSortSelect"] : (function () { throw new RuntimeError('Variable "showSortSelect" does not exist.', 65, $this->source); })()))) {
// line 66
echo "\t\t\t\t\t";
$this->loadTemplate("includes/ebooks-sort-select.html.twig", "content/tmpl/ebooks-list.html.twig", 66)->display($context);
// line 67
echo "\t\t\t\t";
}
// line 68
echo "\t\t\t</div>
\t\t\t<div class=\"row\">
\t\t\t\t";
// line 71
$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.', 71, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["eBook"]) {
// line 72
echo "\t\t\t\t\t<a class=\"col-lg-4 col-md-6\" href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["eBook"], "getURL", [], "method", false, false, false, 72), "html", null, true);
echo "\">
\t\t\t\t\t\t<div class=\"book-container\">
\t\t\t\t\t\t\t<div class=\"book\">
\t\t\t\t\t\t\t\t";
// line 75
if (twig_get_attribute($this->env, $this->source, $context["eBook"], "getMedia", [], "method", false, false, false, 75)) {
// line 76
echo "\t\t\t\t\t\t\t\t\t";
echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["eBook"], "getMedia", [], "method", false, false, false, 76), "getImageTag", ["cover-art"], "method", false, false, false, 76);
echo "
\t\t\t\t\t\t\t\t";
}
// line 78
echo "\t\t\t\t\t\t\t\t";
// line 79
echo "\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"title\">";
// line 81
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["eBook"], "getTitle", [], "method", false, false, false, 81), "html", null, true);
echo "</div>
\t\t\t\t\t</a>
\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['eBook'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 84
echo "\t\t\t</div>
\t\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "content/tmpl/ebooks-list.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 367 => 84, 358 => 81, 354 => 79, 352 => 78, 346 => 76, 344 => 75, 337 => 72, 333 => 71, 328 => 68, 325 => 67, 322 => 66, 319 => 65, 313 => 63, 307 => 61, 305 => 60, 255 => 12, 252 => 11, 250 => 10, 247 => 9, 245 => 8, 242 => 7, 232 => 6, 71 => 4, 68 => 3, 58 => 2, 35 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"base.html.twig\" %}
{% block body %}
\t{% embed \"1-col-sidebar.html.twig\" %}
\t\t{% block column %}
\t\t\t{% if site_code == constant(\"App\\\\Entity\\\\Content::SITE_RCS\") %}
\t\t\t\t{% include \"includes/curtain-ads/rlw.html.twig\" %}
\t\t\t{% endif %}
\t\t\t<style>
\t\t\t\t.book {
\t\t\t\t\theight: 288px;
\t\t\t\t\tmargin: auto;
\t\t\t\t\tbox-shadow: 5px 4px 6px 2px #0000006e;
\t\t\t\t\tposition: relative;
\t\t\t\t\ttransition: 0.2s ease-in-out;
\t\t\t\t\twidth: 223px;
\t\t\t\t\toverflow: hidden;
\t\t\t\t}
\t\t\t\t.book:hover {
\t\t\t\t\tbox-shadow: 0 12px 15px -2px #0000006e;
\t\t\t\t\tpadding: 0;
\t\t\t\t\ttransform: scale(1.05);
\t\t\t\t}
\t\t\t\t.book:hover > .title {
\t\t\t\t\tbottom: 15px;
\t\t\t\t}
\t\t\t\t.title {
\t\t\t\t\t/*position: absolute;*/
\t\t\t\t\tbottom: 5px;
\t\t\t\t\tleft: 0;
\t\t\t\t\twidth: 100%;
\t\t\t\t\ttext-align: center;
\t\t\t\t\tfont-weight: bolder;
\t\t\t\t\ttransition: 0.2s ease-in-out;
\t\t\t\t\tpadding: 0 10px;
\t\t\t\t}
\t\t\t\t.book-container {
\t\t\t\t\tmargin-top: 20px;
\t\t\t\t\tmargin-bottom: 14px;
\t\t\t\t}
\t\t\t\t.cover-art {
\t\t\t\t\tmax-height: 288px;
\t\t\t\t\tmargin: auto;
\t\t\t\t\tdisplay: block;
\t\t\t\t}
\t\t\t\t.row {
\t\t\t\t\tdisplay: flex;
\t\t\t\t\tflex-direction: row;
\t\t\t\t}
\t\t\t\t.column {
\t\t\t\t\tjustify-content: center;
\t\t\t\t\tdisplay: flex;
\t\t\t\t\tflex-direction: column;
\t\t\t\t}
\t\t\t</style>
\t\t\t<div class=\"row\">
\t\t\t\t{% if customer is defined %}
\t\t\t\t\t<h1>{{customer}}</h1>
\t\t\t\t{% else %}
\t\t\t\t\t<h1>{{title}}</h1>
\t\t\t\t{% endif %}
\t\t\t\t{% if showSortSelect is defined and showSortSelect %}
\t\t\t\t\t{% include \"includes/ebooks-sort-select.html.twig\" %}
\t\t\t\t{% endif %}
\t\t\t</div>
\t\t\t<div class=\"row\">
\t\t\t\t{% for eBook in eBooks %}
\t\t\t\t\t<a class=\"col-lg-4 col-md-6\" href=\"{{eBook.getURL()}}\">
\t\t\t\t\t\t<div class=\"book-container\">
\t\t\t\t\t\t\t<div class=\"book\">
\t\t\t\t\t\t\t\t{% if eBook.getMedia() %}
\t\t\t\t\t\t\t\t\t{{eBook.getMedia().getImageTag('cover-art')|raw}}
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t{# <span class=\"title\">{{eBook}}</span> #}
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"title\">{{eBook.getTitle()}}</div>
\t\t\t\t\t</a>
\t\t\t\t{% endfor %}
\t\t\t</div>
\t\t{% endblock %}
\t{% endembed %}
{% endblock %}
", "content/tmpl/ebooks-list.html.twig", "/var/www/vhosts/rooferscoffeeshop.com/staging.rooferscoffeeshop.com/rcs-website/templates/content/tmpl/ebooks-list.html.twig");
}
}