<?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.html.twig */
class __TwigTemplate_e090f86cb3025a665266effc7c18f80a 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)
{
// line 1
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.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.html.twig"));
$this->parent = $this->loadTemplate("1-col-sidebar.html.twig", "content/tmpl/ebooks.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_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 3
echo "
\t";
// line 4
if (((isset($context["site_code"]) || array_key_exists("site_code", $context) ? $context["site_code"] : (function () { throw new RuntimeError('Variable "site_code" does not exist.', 4, $this->source); })()) == twig_constant("App\\Entity\\Content::SITE_RCS"))) {
// line 5
echo "\t\t";
$this->loadTemplate("includes/curtain-ads/rlw.html.twig", "content/tmpl/ebooks.html.twig", 5)->display($context);
// line 6
echo "\t";
}
// line 7
echo "\t";
if (array_key_exists("content", $context)) {
// line 8
echo "\t\t";
if (twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 8, $this->source); })()), "getShowTitle", [], "method", false, false, false, 8)) {
// line 9
echo "\t\t\t<div class=\"row\">
\t\t\t\t<h1>";
// line 10
echo twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 10, $this->source); })()), "getTitle", [], "method", false, false, false, 10);
echo "</h1>
\t\t\t\t";
// line 11
$this->loadTemplate("includes/ebooks-sort-select.html.twig", "content/tmpl/ebooks.html.twig", 11)->display($context);
// line 12
echo "\t\t\t</div>
\t\t";
}
// line 15
echo "\t\t";
if (twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 15, $this->source); })()), "getFeaturedImageTag", [], "method", false, false, false, 15)) {
// line 16
echo "\t\t\t";
echo twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 16, $this->source); })()), "getFeaturedImageTag", ["display-block", ""], "method", false, false, false, 16);
echo "
\t\t";
}
// line 18
echo "\t\t";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 18, $this->source); })()), "getContentFull", [], "method", false, false, false, 18))) {
// line 19
echo "\t\t\t";
echo $this->extensions['App\Twig\RCSExtension']->wordpress(twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 19, $this->source); })()), "getContentFull", [], "method", false, false, false, 19));
echo "
\t\t";
}
// line 21
echo "\t";
}
// line 22
echo "\t<style>
\t\th1 {
\t\t\tdisplay: inline-block
\t\t}
\t\t.row {
\t\t\tdisplay: flex;
\t\t\tflex-direction: row;
\t\t\t/*justify-content: space-between;*/
\t\t}
\t\t.column {
\t\t\tjustify-content: center;
\t\t\tdisplay: flex;
\t\t\tflex-direction: column;
\t\t}
\t\t.book {
\t\t\theight: 288px;
\t\t\tmargin: auto;
\t\t\tbox-shadow: 5px 4px 6px 2px #0000006e;
\t\t\tposition: relative;
\t\t\ttransition: 0.2s ease-in-out;
\t\t\twidth: 223px;
\t\t\toverflow: hidden;
\t\t}
\t\t.book:hover {
\t\t\tbox-shadow: 0 12px 15px -2px #0000006e;
\t\t\tpadding: 0;
\t\t\ttransform: scale(1.05);
\t\t}
\t\t.book:hover > .title {
\t\t\tbottom: 15px;
\t\t}
\t\t.title {
\t\t\t/*position: absolute;*/
\t\t\tbottom: -6px;
\t\t\tleft: 0;
\t\t\twidth: 100%;
\t\t\ttext-align: center;
\t\t\tfont-weight: bolder;
\t\t\ttransition: 0.2s ease-in-out;
\t\t\tpadding: 0 10px;
\t\t}
\t\t.book-container {
\t\t\tmargin-top: 20px;
\t\t\tmargin-bottom: 14px;
\t\t}
\t\t.cover-art {
\t\t\tmax-height: 288px;
\t\t\tmargin: auto;
\t\t\tdisplay: block;
\t\t}
\t</style>
\t";
// line 74
if (array_key_exists("customers", $context)) {
// line 75
echo "\t\t<div class=\"row\">
\t\t\t";
// line 76
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["customers"]) || array_key_exists("customers", $context) ? $context["customers"] : (function () { throw new RuntimeError('Variable "customers" does not exist.', 76, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["customer"]) {
// line 77
echo "\t\t\t\t<a class=\"col-lg-4 col-md-6 \" href=\"/ebooks-by/";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["customer"], "getDirectoryContent", [], "method", false, false, false, 77), "getSlug", [], "method", false, false, false, 77), "html", null, true);
echo "\">
\t\t\t\t\t<div class=\"book-container\">
\t\t\t\t\t\t<div class=\"book\">
\t\t\t\t\t\t\t";
// line 80
echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_random($this->env, twig_get_attribute($this->env, $this->source, $context["customer"], "getLatestContent", [19, 0], "method", false, false, false, 80)), "getMedia", [], "method", false, false, false, 80), "getImageTag", ["cover-art"], "method", false, false, false, 80);
echo "
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"title\">";
// line 83
echo twig_escape_filter($this->env, $context["customer"], "html", null, true);
echo "</div>
\t\t\t\t</a>
\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['customer'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 86
echo "\t\t</div>
\t";
} elseif ( // line 87
array_key_exists("categories", $context)) {
// line 88
echo "\t\t<div class=\"row\">
\t\t\t";
// line 89
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["categories"]) || array_key_exists("categories", $context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.', 89, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 90
echo "\t\t\t\t<a class=\"col-lg-4 col-md-6 \" href=\"/category/ebooks/";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "getSlug", [], "method", false, false, false, 90), "html", null, true);
echo "\">
\t\t\t\t\t<div class=\"book-container\">
\t\t\t\t\t\t<div class=\"book\">
\t\t\t\t\t\t\t";
// line 94
echo "\t\t\t\t\t\t\t";
if (twig_get_attribute($this->env, $this->source, $context["category"], "getMedia", [], "method", false, false, false, 94)) {
// line 95
echo "\t\t\t\t\t\t\t\t<img src=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["category"], "getMedia", [], "method", false, false, false, 95), "getURL", [], "method", false, false, false, 95), "html", null, true);
echo "\" class=\"cover-art\" loading=\"lazy\">
\t\t\t\t\t\t\t";
} elseif (((twig_get_attribute($this->env, $this->source, // line 96
$context["category"], "getId", [], "method", false, false, false, 96) == 1309) && ((isset($context["site_code"]) || array_key_exists("site_code", $context) ? $context["site_code"] : (function () { throw new RuntimeError('Variable "site_code" does not exist.', 96, $this->source); })()) == twig_constant("App\\Entity\\Content::SITE_RCS")))) {
// line 97
echo "\t\t\t\t\t\t\t\t<img src=\"https://www.rooferscoffeeshop.com/uploads/media/2023/07/ebook-business-industry.png\" class=\"cover-art\" loading=\"lazy\">
\t\t\t\t\t\t\t";
} elseif (((twig_get_attribute($this->env, $this->source, // line 98
$context["category"], "getId", [], "method", false, false, false, 98) == 1309) && ((isset($context["site_code"]) || array_key_exists("site_code", $context) ? $context["site_code"] : (function () { throw new RuntimeError('Variable "site_code" does not exist.', 98, $this->source); })()) == twig_constant("App\\Entity\\Content::SITE_CCS")))) {
// line 99
echo "\t\t\t\t\t\t\t\t<img src=\"https://www.rooferscoffeeshop.com/uploads/media/2023/07/ccs-ebook-business-industry.png\" class=\"cover-art\" loading=\"lazy\">
\t\t\t\t\t\t\t";
// line 101
echo "\t\t\t\t\t\t\t";
} elseif (((twig_get_attribute($this->env, $this->source, $context["category"], "getId", [], "method", false, false, false, 101) == 1313) && ((isset($context["site_code"]) || array_key_exists("site_code", $context) ? $context["site_code"] : (function () { throw new RuntimeError('Variable "site_code" does not exist.', 101, $this->source); })()) == twig_constant("App\\Entity\\Content::SITE_RCS")))) {
// line 102
echo "\t\t\t\t\t\t\t\t<img src=\"https://www.rooferscoffeeshop.com/uploads/media/2023/07/ebook-catalogs.png\" class=\"cover-art\" loading=\"lazy\">
\t\t\t\t\t\t\t";
} elseif (((twig_get_attribute($this->env, $this->source, // line 103
$context["category"], "getId", [], "method", false, false, false, 103) == 1313) && ((isset($context["site_code"]) || array_key_exists("site_code", $context) ? $context["site_code"] : (function () { throw new RuntimeError('Variable "site_code" does not exist.', 103, $this->source); })()) == twig_constant("App\\Entity\\Content::SITE_CCS")))) {
// line 104
echo "\t\t\t\t\t\t\t\t<img src=\"https://www.rooferscoffeeshop.com/uploads/media/2023/07/ccs-ebook-catalogs.png\" class=\"cover-art\" loading=\"lazy\">
\t\t\t\t\t\t\t";
// line 106
echo "\t\t\t\t\t\t\t";
} elseif (((twig_get_attribute($this->env, $this->source, $context["category"], "getId", [], "method", false, false, false, 106) == 1312) && ((isset($context["site_code"]) || array_key_exists("site_code", $context) ? $context["site_code"] : (function () { throw new RuntimeError('Variable "site_code" does not exist.', 106, $this->source); })()) == twig_constant("App\\Entity\\Content::SITE_RCS")))) {
// line 107
echo "\t\t\t\t\t\t\t\t<img src=\"https://www.rooferscoffeeshop.com/uploads/media/2023/07/ebook-design.png\" class=\"cover-art\" loading=\"lazy\">
\t\t\t\t\t\t\t";
} elseif (((twig_get_attribute($this->env, $this->source, // line 108
$context["category"], "getId", [], "method", false, false, false, 108) == 1312) && ((isset($context["site_code"]) || array_key_exists("site_code", $context) ? $context["site_code"] : (function () { throw new RuntimeError('Variable "site_code" does not exist.', 108, $this->source); })()) == twig_constant("App\\Entity\\Content::SITE_CCS")))) {
// line 109
echo "\t\t\t\t\t\t\t\t<img src=\"https://www.rooferscoffeeshop.com/uploads/media/2023/07/ccs-ebook-design.png\" class=\"cover-art\" loading=\"lazy\">
\t\t\t\t\t\t\t";
// line 111
echo "\t\t\t\t\t\t\t";
} elseif (((twig_get_attribute($this->env, $this->source, $context["category"], "getId", [], "method", false, false, false, 111) == 1369) && ((isset($context["site_code"]) || array_key_exists("site_code", $context) ? $context["site_code"] : (function () { throw new RuntimeError('Variable "site_code" does not exist.', 111, $this->source); })()) == twig_constant("App\\Entity\\Content::SITE_CCS")))) {
// line 112
echo "\t\t\t\t\t\t\t\t<img src=\"https://www.rooferscoffeeshop.com/uploads/media/2023/07/ccs-ebook-homeowner.png\" class=\"cover-art\" loading=\"lazy\">
\t\t\t\t\t\t\t";
// line 114
echo "\t\t\t\t\t\t\t";
} elseif (((twig_get_attribute($this->env, $this->source, $context["category"], "getId", [], "method", false, false, false, 114) == 1310) && ((isset($context["site_code"]) || array_key_exists("site_code", $context) ? $context["site_code"] : (function () { throw new RuntimeError('Variable "site_code" does not exist.', 114, $this->source); })()) == twig_constant("App\\Entity\\Content::SITE_RCS")))) {
// line 115
echo "\t\t\t\t\t\t\t\t<img src=\"https://www.rooferscoffeeshop.com/uploads/media/2023/07/ebook-materials-install.png\" class=\"cover-art\" loading=\"lazy\">
\t\t\t\t\t\t\t";
} elseif (((twig_get_attribute($this->env, $this->source, // line 116
$context["category"], "getId", [], "method", false, false, false, 116) == 1310) && ((isset($context["site_code"]) || array_key_exists("site_code", $context) ? $context["site_code"] : (function () { throw new RuntimeError('Variable "site_code" does not exist.', 116, $this->source); })()) == twig_constant("App\\Entity\\Content::SITE_CCS")))) {
// line 117
echo "\t\t\t\t\t\t\t\t<img src=\"https://www.rooferscoffeeshop.com/uploads/media/2023/07/ccs-ebook-materials-install.png\" class=\"cover-art\" loading=\"lazy\">
\t\t\t\t\t\t\t";
// line 119
echo "\t\t\t\t\t\t\t";
} elseif (((twig_get_attribute($this->env, $this->source, $context["category"], "getId", [], "method", false, false, false, 119) == 1311) && ((isset($context["site_code"]) || array_key_exists("site_code", $context) ? $context["site_code"] : (function () { throw new RuntimeError('Variable "site_code" does not exist.', 119, $this->source); })()) == twig_constant("App\\Entity\\Content::SITE_RCS")))) {
// line 120
echo "\t\t\t\t\t\t\t\t<img src=\"https://www.rooferscoffeeshop.com/uploads/media/2023/07/ebook-tech-software.png\" class=\"cover-art\" loading=\"lazy\">
\t\t\t\t\t\t\t";
} elseif (((twig_get_attribute($this->env, $this->source, // line 121
$context["category"], "getId", [], "method", false, false, false, 121) == 1311) && ((isset($context["site_code"]) || array_key_exists("site_code", $context) ? $context["site_code"] : (function () { throw new RuntimeError('Variable "site_code" does not exist.', 121, $this->source); })()) == twig_constant("App\\Entity\\Content::SITE_CCS")))) {
// line 122
echo "\t\t\t\t\t\t\t\t<img src=\"https://www.rooferscoffeeshop.com/uploads/media/2023/07/ccs-ebook-tech-software.png\" class=\"cover-art\" loading=\"lazy\">
\t\t\t\t\t\t\t";
} else {
// line 125
echo "\t\t\t\t\t\t\t\t";
echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["category"], "getPinnedEbook", [(isset($context["site_code"]) || array_key_exists("site_code", $context) ? $context["site_code"] : (function () { throw new RuntimeError('Variable "site_code" does not exist.', 125, $this->source); })())], "method", false, false, false, 125), "getMedia", [], "method", false, false, false, 125), "getImageTag", ["cover-art"], "method", false, false, false, 125);
echo "
\t\t\t\t\t\t\t";
}
// line 127
echo "\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"title\">";
// line 129
echo twig_escape_filter($this->env, $context["category"], "html", null, true);
echo "</div>
\t\t\t\t</a>
\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 132
echo "\t\t</div>
\t";
} else {
// line 134
echo "\t\t<div class=\"row\">
\t\t\t";
// line 135
$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.', 135, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["eBook"]) {
// line 136
echo "\t\t\t\t<a class=\"col-lg-4 col-md-6 \" href=\"/ebooks/";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["eBook"], "getSlug", [], "method", false, false, false, 136), "html", null, true);
echo "\">
\t\t\t\t\t<div class=\"book-container\">
\t\t\t\t\t\t<div class=\"book\">
\t\t\t\t\t\t\t";
// line 139
echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["eBook"], "getMedia", [], "method", false, false, false, 139), "getImageTag", ["cover-art"], "method", false, false, false, 139);
echo "
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"title\">";
// line 142
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["eBook"], "getTitle", [], "method", false, false, false, 142), "html", null, true);
echo "</div>
\t\t\t\t</a>
\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 145
echo "\t\t</div>
\t";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "content/tmpl/ebooks.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 346 => 145, 337 => 142, 331 => 139, 324 => 136, 320 => 135, 317 => 134, 313 => 132, 304 => 129, 300 => 127, 294 => 125, 289 => 122, 287 => 121, 284 => 120, 281 => 119, 278 => 117, 276 => 116, 273 => 115, 270 => 114, 267 => 112, 264 => 111, 261 => 109, 259 => 108, 256 => 107, 253 => 106, 250 => 104, 248 => 103, 245 => 102, 242 => 101, 239 => 99, 237 => 98, 234 => 97, 232 => 96, 227 => 95, 224 => 94, 217 => 90, 213 => 89, 210 => 88, 208 => 87, 205 => 86, 196 => 83, 190 => 80, 183 => 77, 179 => 76, 176 => 75, 174 => 74, 120 => 22, 117 => 21, 111 => 19, 108 => 18, 102 => 16, 99 => 15, 94 => 12, 92 => 11, 88 => 10, 85 => 9, 82 => 8, 79 => 7, 76 => 6, 73 => 5, 71 => 4, 68 => 3, 58 => 2, 35 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"1-col-sidebar.html.twig\" %}
{% block column %}
\t{% if site_code == constant(\"App\\\\Entity\\\\Content::SITE_RCS\") %}
\t\t{% include \"includes/curtain-ads/rlw.html.twig\" %}
\t{% endif %}
\t{% if content is defined %}
\t\t{% if content.getShowTitle() %}
\t\t\t<div class=\"row\">
\t\t\t\t<h1>{{ content.getTitle() | raw }}</h1>
\t\t\t\t{% include \"includes/ebooks-sort-select.html.twig\" %}
\t\t\t</div>
\t\t{% endif %}
\t\t{% if content.getFeaturedImageTag() %}
\t\t\t{{ content.getFeaturedImageTag(\"display-block\",\"\")|raw }}
\t\t{% endif %}
\t\t{% if content.getContentFull() is not empty %}
\t\t\t{{ content.getContentFull() | wordpress | raw }}
\t\t{% endif %}
\t{% endif %}
\t<style>
\t\th1 {
\t\t\tdisplay: inline-block
\t\t}
\t\t.row {
\t\t\tdisplay: flex;
\t\t\tflex-direction: row;
\t\t\t/*justify-content: space-between;*/
\t\t}
\t\t.column {
\t\t\tjustify-content: center;
\t\t\tdisplay: flex;
\t\t\tflex-direction: column;
\t\t}
\t\t.book {
\t\t\theight: 288px;
\t\t\tmargin: auto;
\t\t\tbox-shadow: 5px 4px 6px 2px #0000006e;
\t\t\tposition: relative;
\t\t\ttransition: 0.2s ease-in-out;
\t\t\twidth: 223px;
\t\t\toverflow: hidden;
\t\t}
\t\t.book:hover {
\t\t\tbox-shadow: 0 12px 15px -2px #0000006e;
\t\t\tpadding: 0;
\t\t\ttransform: scale(1.05);
\t\t}
\t\t.book:hover > .title {
\t\t\tbottom: 15px;
\t\t}
\t\t.title {
\t\t\t/*position: absolute;*/
\t\t\tbottom: -6px;
\t\t\tleft: 0;
\t\t\twidth: 100%;
\t\t\ttext-align: center;
\t\t\tfont-weight: bolder;
\t\t\ttransition: 0.2s ease-in-out;
\t\t\tpadding: 0 10px;
\t\t}
\t\t.book-container {
\t\t\tmargin-top: 20px;
\t\t\tmargin-bottom: 14px;
\t\t}
\t\t.cover-art {
\t\t\tmax-height: 288px;
\t\t\tmargin: auto;
\t\t\tdisplay: block;
\t\t}
\t</style>
\t{% if customers is defined %}
\t\t<div class=\"row\">
\t\t\t{% for customer in customers %}
\t\t\t\t<a class=\"col-lg-4 col-md-6 \" href=\"/ebooks-by/{{customer.getDirectoryContent().getSlug()}}\">
\t\t\t\t\t<div class=\"book-container\">
\t\t\t\t\t\t<div class=\"book\">
\t\t\t\t\t\t\t{{random(customer.getLatestContent(19, 0)).getMedia().getImageTag('cover-art')|raw}}
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"title\">{{customer}}</div>
\t\t\t\t</a>
\t\t\t{% endfor %}
\t\t</div>
\t{% elseif categories is defined %}
\t\t<div class=\"row\">
\t\t\t{% for category in categories %}
\t\t\t\t<a class=\"col-lg-4 col-md-6 \" href=\"/category/ebooks/{{category.getSlug()}}\">
\t\t\t\t\t<div class=\"book-container\">
\t\t\t\t\t\t<div class=\"book\">
\t\t\t\t\t\t\t{# Business & Industry #}
\t\t\t\t\t\t\t{% if category.getMedia() %}
\t\t\t\t\t\t\t\t<img src=\"{{category.getMedia().getURL()}}\" class=\"cover-art\" loading=\"lazy\">
\t\t\t\t\t\t\t{% elseif category.getId() == 1309 and site_code == constant(\"App\\\\Entity\\\\Content::SITE_RCS\") %}
\t\t\t\t\t\t\t\t<img src=\"https://www.rooferscoffeeshop.com/uploads/media/2023/07/ebook-business-industry.png\" class=\"cover-art\" loading=\"lazy\">
\t\t\t\t\t\t\t{% elseif category.getId() == 1309 and site_code == constant(\"App\\\\Entity\\\\Content::SITE_CCS\") %}
\t\t\t\t\t\t\t\t<img src=\"https://www.rooferscoffeeshop.com/uploads/media/2023/07/ccs-ebook-business-industry.png\" class=\"cover-art\" loading=\"lazy\">
\t\t\t\t\t\t\t{# Catalogs #}
\t\t\t\t\t\t\t{% elseif category.getId() == 1313 and site_code == constant(\"App\\\\Entity\\\\Content::SITE_RCS\") %}
\t\t\t\t\t\t\t\t<img src=\"https://www.rooferscoffeeshop.com/uploads/media/2023/07/ebook-catalogs.png\" class=\"cover-art\" loading=\"lazy\">
\t\t\t\t\t\t\t{% elseif category.getId() == 1313 and site_code == constant(\"App\\\\Entity\\\\Content::SITE_CCS\") %}
\t\t\t\t\t\t\t\t<img src=\"https://www.rooferscoffeeshop.com/uploads/media/2023/07/ccs-ebook-catalogs.png\" class=\"cover-art\" loading=\"lazy\">
\t\t\t\t\t\t\t{# Design #}
\t\t\t\t\t\t\t{% elseif category.getId() == 1312 and site_code == constant(\"App\\\\Entity\\\\Content::SITE_RCS\") %}
\t\t\t\t\t\t\t\t<img src=\"https://www.rooferscoffeeshop.com/uploads/media/2023/07/ebook-design.png\" class=\"cover-art\" loading=\"lazy\">
\t\t\t\t\t\t\t{% elseif category.getId() == 1312 and site_code == constant(\"App\\\\Entity\\\\Content::SITE_CCS\") %}
\t\t\t\t\t\t\t\t<img src=\"https://www.rooferscoffeeshop.com/uploads/media/2023/07/ccs-ebook-design.png\" class=\"cover-art\" loading=\"lazy\">
\t\t\t\t\t\t\t{# Homeowner #}
\t\t\t\t\t\t\t{% elseif category.getId() == 1369 and site_code == constant(\"App\\\\Entity\\\\Content::SITE_CCS\") %}
\t\t\t\t\t\t\t\t<img src=\"https://www.rooferscoffeeshop.com/uploads/media/2023/07/ccs-ebook-homeowner.png\" class=\"cover-art\" loading=\"lazy\">
\t\t\t\t\t\t\t{# Materials & Install #}
\t\t\t\t\t\t\t{% elseif category.getId() == 1310 and site_code == constant(\"App\\\\Entity\\\\Content::SITE_RCS\") %}
\t\t\t\t\t\t\t\t<img src=\"https://www.rooferscoffeeshop.com/uploads/media/2023/07/ebook-materials-install.png\" class=\"cover-art\" loading=\"lazy\">
\t\t\t\t\t\t\t{% elseif category.getId() == 1310 and site_code == constant(\"App\\\\Entity\\\\Content::SITE_CCS\") %}
\t\t\t\t\t\t\t\t<img src=\"https://www.rooferscoffeeshop.com/uploads/media/2023/07/ccs-ebook-materials-install.png\" class=\"cover-art\" loading=\"lazy\">
\t\t\t\t\t\t\t{# Tech & Software #}
\t\t\t\t\t\t\t{% elseif category.getId() == 1311 and site_code == constant(\"App\\\\Entity\\\\Content::SITE_RCS\") %}
\t\t\t\t\t\t\t\t<img src=\"https://www.rooferscoffeeshop.com/uploads/media/2023/07/ebook-tech-software.png\" class=\"cover-art\" loading=\"lazy\">
\t\t\t\t\t\t\t{% elseif category.getId() == 1311 and site_code == constant(\"App\\\\Entity\\\\Content::SITE_CCS\") %}
\t\t\t\t\t\t\t\t<img src=\"https://www.rooferscoffeeshop.com/uploads/media/2023/07/ccs-ebook-tech-software.png\" class=\"cover-art\" loading=\"lazy\">
\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t{{(category.getPinnedEbook(site_code)).getMedia().getImageTag('cover-art')|raw}}
\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"title\">{{category}}</div>
\t\t\t\t</a>
\t\t\t{% endfor %}
\t\t</div>
\t{% else %}
\t\t<div class=\"row\">
\t\t\t{% for eBook in eBooks %}
\t\t\t\t<a class=\"col-lg-4 col-md-6 \" href=\"/ebooks/{{eBook.getSlug()}}\">
\t\t\t\t\t<div class=\"book-container\">
\t\t\t\t\t\t<div class=\"book\">
\t\t\t\t\t\t\t{{eBook.getMedia().getImageTag('cover-art')|raw}}
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"title\">{{eBook.getTitle()}}</div>
\t\t\t\t</a>
\t\t\t{% endfor %}
\t\t</div>
\t{% endif %}
{% endblock %}
", "content/tmpl/ebooks.html.twig", "/var/www/vhosts/rooferscoffeeshop.com/staging.rooferscoffeeshop.com/rcs-website/templates/content/tmpl/ebooks.html.twig");
}
}