var/cache/dev/twig/66/662282f35c72a0d44e8c46e8f864b742.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. /* content/tmpl/ebooks.html.twig */
  14. class __TwigTemplate_e090f86cb3025a665266effc7c18f80a extends 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.             'column' => [$this'block_column'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "1-col-sidebar.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/tmpl/ebooks.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/tmpl/ebooks.html.twig"));
  38.         $this->parent $this->loadTemplate("1-col-sidebar.html.twig""content/tmpl/ebooks.html.twig"1);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  42.         
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  44.     }
  45.     // line 2
  46.     public function block_column($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""column"));
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""column"));
  53.         // line 3
  54.         echo "
  55. \t";
  56.         // line 4
  57.         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"))) {
  58.             // line 5
  59.             echo "\t\t";
  60.             $this->loadTemplate("includes/curtain-ads/rlw.html.twig""content/tmpl/ebooks.html.twig"5)->display($context);
  61.             // line 6
  62.             echo "\t";
  63.         }
  64.         // line 7
  65.         echo "\t";
  66.         if (array_key_exists("content"$context)) {
  67.             // line 8
  68.             echo "\t\t";
  69.             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"falsefalsefalse8)) {
  70.                 // line 9
  71.                 echo "\t\t\t<div class=\"row\">
  72. \t\t\t\t<h1>";
  73.                 // line 10
  74.                 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"falsefalsefalse10);
  75.                 echo "</h1>
  76. \t\t\t\t";
  77.                 // line 11
  78.                 $this->loadTemplate("includes/ebooks-sort-select.html.twig""content/tmpl/ebooks.html.twig"11)->display($context);
  79.                 // line 12
  80.                 echo "\t\t\t</div>
  81. \t\t";
  82.             }
  83.             // line 15
  84.             echo "\t\t";
  85.             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"falsefalsefalse15)) {
  86.                 // line 16
  87.                 echo "\t\t\t";
  88.                 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"falsefalsefalse16);
  89.                 echo "
  90. \t\t";
  91.             }
  92.             // line 18
  93.             echo "\t\t";
  94.             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"falsefalsefalse18))) {
  95.                 // line 19
  96.                 echo "\t\t\t";
  97.                 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"falsefalsefalse19));
  98.                 echo "
  99. \t\t";
  100.             }
  101.             // line 21
  102.             echo "\t";
  103.         }
  104.         // line 22
  105.         echo "\t<style>
  106. \t\th1 {
  107. \t\t\tdisplay: inline-block
  108. \t\t}
  109. \t\t.row {
  110. \t\t\tdisplay: flex;
  111. \t\t\tflex-direction: row;
  112. \t\t\t/*justify-content: space-between;*/
  113. \t\t}
  114. \t\t.column {
  115. \t\t\tjustify-content: center;
  116. \t\t\tdisplay: flex;
  117. \t\t\tflex-direction: column;
  118. \t\t}
  119. \t\t.book {
  120. \t\t\theight: 288px;
  121. \t\t\tmargin: auto;
  122. \t\t\tbox-shadow: 5px 4px 6px 2px #0000006e;
  123. \t\t\tposition: relative;
  124. \t\t\ttransition: 0.2s ease-in-out;
  125. \t\t\twidth: 223px;
  126. \t\t\toverflow: hidden;
  127. \t\t}
  128. \t\t.book:hover {
  129. \t\t\tbox-shadow: 0 12px 15px -2px #0000006e;
  130. \t\t\tpadding: 0;
  131. \t\t\ttransform: scale(1.05);
  132. \t\t}
  133. \t\t.book:hover > .title {
  134. \t\t\tbottom: 15px;
  135. \t\t}
  136. \t\t.title {
  137. \t\t\t/*position: absolute;*/
  138. \t\t\tbottom: -6px;
  139. \t\t\tleft: 0;
  140. \t\t\twidth: 100%;
  141. \t\t\ttext-align: center;
  142. \t\t\tfont-weight: bolder;
  143. \t\t\ttransition: 0.2s ease-in-out;
  144. \t\t\tpadding: 0 10px;
  145. \t\t}
  146. \t\t.book-container {
  147. \t\t\tmargin-top: 20px;
  148. \t\t\tmargin-bottom: 14px;
  149. \t\t}
  150. \t\t.cover-art {
  151. \t\t\tmax-height: 288px;
  152. \t\t\tmargin: auto;
  153. \t\t\tdisplay: block;
  154. \t\t}
  155. \t</style>
  156. \t";
  157.         // line 74
  158.         if (array_key_exists("customers"$context)) {
  159.             // line 75
  160.             echo "\t\t<div class=\"row\">
  161. \t\t\t";
  162.             // line 76
  163.             $context['_parent'] = $context;
  164.             $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); })()));
  165.             foreach ($context['_seq'] as $context["_key"] => $context["customer"]) {
  166.                 // line 77
  167.                 echo "\t\t\t\t<a class=\"col-lg-4 col-md-6 \" href=\"/ebooks-by/";
  168.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["customer"], "getDirectoryContent", [], "method"falsefalsefalse77), "getSlug", [], "method"falsefalsefalse77), "html"nulltrue);
  169.                 echo "\">
  170. \t\t\t\t\t<div class=\"book-container\">
  171. \t\t\t\t\t\t<div class=\"book\">
  172. \t\t\t\t\t\t\t";
  173.                 // line 80
  174.                 echo twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_random($this->envtwig_get_attribute($this->env$this->source$context["customer"], "getLatestContent", [190], "method"falsefalsefalse80)), "getMedia", [], "method"falsefalsefalse80), "getImageTag", ["cover-art"], "method"falsefalsefalse80);
  175.                 echo "
  176. \t\t\t\t\t\t</div>
  177. \t\t\t\t\t</div>
  178. \t\t\t\t\t<div class=\"title\">";
  179.                 // line 83
  180.                 echo twig_escape_filter($this->env$context["customer"], "html"nulltrue);
  181.                 echo "</div>
  182. \t\t\t\t</a>
  183. \t\t\t";
  184.             }
  185.             $_parent $context['_parent'];
  186.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['customer'], $context['_parent'], $context['loop']);
  187.             $context array_intersect_key($context$_parent) + $_parent;
  188.             // line 86
  189.             echo "\t\t</div>
  190. \t";
  191.         } elseif (        // line 87
  192. array_key_exists("categories"$context)) {
  193.             // line 88
  194.             echo "\t\t<div class=\"row\">
  195. \t\t\t";
  196.             // line 89
  197.             $context['_parent'] = $context;
  198.             $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); })()));
  199.             foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  200.                 // line 90
  201.                 echo "\t\t\t\t<a class=\"col-lg-4 col-md-6 \" href=\"/category/ebooks/";
  202.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["category"], "getSlug", [], "method"falsefalsefalse90), "html"nulltrue);
  203.                 echo "\">
  204. \t\t\t\t\t<div class=\"book-container\">
  205. \t\t\t\t\t\t<div class=\"book\">
  206. \t\t\t\t\t\t\t";
  207.                 // line 94
  208.                 echo "\t\t\t\t\t\t\t";
  209.                 if (twig_get_attribute($this->env$this->source$context["category"], "getMedia", [], "method"falsefalsefalse94)) {
  210.                     // line 95
  211.                     echo "\t\t\t\t\t\t\t\t<img src=\"";
  212.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["category"], "getMedia", [], "method"falsefalsefalse95), "getURL", [], "method"falsefalsefalse95), "html"nulltrue);
  213.                     echo "\" class=\"cover-art\" loading=\"lazy\">
  214. \t\t\t\t\t\t\t";
  215.                 } elseif (((twig_get_attribute($this->env$this->source,                 // line 96
  216. $context["category"], "getId", [], "method"falsefalsefalse96) == 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")))) {
  217.                     // line 97
  218.                     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\">
  219. \t\t\t\t\t\t\t";
  220.                 } elseif (((twig_get_attribute($this->env$this->source,                 // line 98
  221. $context["category"], "getId", [], "method"falsefalsefalse98) == 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")))) {
  222.                     // line 99
  223.                     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\">
  224. \t\t\t\t\t\t\t";
  225.                     // line 101
  226.                     echo "\t\t\t\t\t\t\t";
  227.                 } elseif (((twig_get_attribute($this->env$this->source$context["category"], "getId", [], "method"falsefalsefalse101) == 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")))) {
  228.                     // line 102
  229.                     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\">
  230. \t\t\t\t\t\t\t";
  231.                 } elseif (((twig_get_attribute($this->env$this->source,                 // line 103
  232. $context["category"], "getId", [], "method"falsefalsefalse103) == 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")))) {
  233.                     // line 104
  234.                     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\">
  235. \t\t\t\t\t\t\t";
  236.                     // line 106
  237.                     echo "\t\t\t\t\t\t\t";
  238.                 } elseif (((twig_get_attribute($this->env$this->source$context["category"], "getId", [], "method"falsefalsefalse106) == 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")))) {
  239.                     // line 107
  240.                     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\">
  241. \t\t\t\t\t\t\t";
  242.                 } elseif (((twig_get_attribute($this->env$this->source,                 // line 108
  243. $context["category"], "getId", [], "method"falsefalsefalse108) == 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")))) {
  244.                     // line 109
  245.                     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\">
  246. \t\t\t\t\t\t\t";
  247.                     // line 111
  248.                     echo "\t\t\t\t\t\t\t";
  249.                 } elseif (((twig_get_attribute($this->env$this->source$context["category"], "getId", [], "method"falsefalsefalse111) == 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")))) {
  250.                     // line 112
  251.                     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\">
  252. \t\t\t\t\t\t\t";
  253.                     // line 114
  254.                     echo "\t\t\t\t\t\t\t";
  255.                 } elseif (((twig_get_attribute($this->env$this->source$context["category"], "getId", [], "method"falsefalsefalse114) == 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")))) {
  256.                     // line 115
  257.                     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\">
  258. \t\t\t\t\t\t\t";
  259.                 } elseif (((twig_get_attribute($this->env$this->source,                 // line 116
  260. $context["category"], "getId", [], "method"falsefalsefalse116) == 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")))) {
  261.                     // line 117
  262.                     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\">
  263. \t\t\t\t\t\t\t";
  264.                     // line 119
  265.                     echo "\t\t\t\t\t\t\t";
  266.                 } elseif (((twig_get_attribute($this->env$this->source$context["category"], "getId", [], "method"falsefalsefalse119) == 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")))) {
  267.                     // line 120
  268.                     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\">
  269. \t\t\t\t\t\t\t";
  270.                 } elseif (((twig_get_attribute($this->env$this->source,                 // line 121
  271. $context["category"], "getId", [], "method"falsefalsefalse121) == 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")))) {
  272.                     // line 122
  273.                     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\">
  274. \t\t\t\t\t\t\t";
  275.                 } else {
  276.                     // line 125
  277.                     echo "\t\t\t\t\t\t\t\t";
  278.                     echo twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse125), "getMedia", [], "method"falsefalsefalse125), "getImageTag", ["cover-art"], "method"falsefalsefalse125);
  279.                     echo "
  280. \t\t\t\t\t\t\t";
  281.                 }
  282.                 // line 127
  283.                 echo "\t\t\t\t\t\t</div>
  284. \t\t\t\t\t</div>
  285. \t\t\t\t\t<div class=\"title\">";
  286.                 // line 129
  287.                 echo twig_escape_filter($this->env$context["category"], "html"nulltrue);
  288.                 echo "</div>
  289. \t\t\t\t</a>
  290. \t\t\t";
  291.             }
  292.             $_parent $context['_parent'];
  293.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  294.             $context array_intersect_key($context$_parent) + $_parent;
  295.             // line 132
  296.             echo "\t\t</div>
  297. \t";
  298.         } else {
  299.             // line 134
  300.             echo "\t\t<div class=\"row\">
  301. \t\t\t";
  302.             // line 135
  303.             $context['_parent'] = $context;
  304.             $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); })()));
  305.             foreach ($context['_seq'] as $context["_key"] => $context["eBook"]) {
  306.                 // line 136
  307.                 echo "\t\t\t\t<a class=\"col-lg-4 col-md-6 \" href=\"/ebooks/";
  308.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["eBook"], "getSlug", [], "method"falsefalsefalse136), "html"nulltrue);
  309.                 echo "\">
  310. \t\t\t\t\t<div class=\"book-container\">
  311. \t\t\t\t\t\t<div class=\"book\">
  312. \t\t\t\t\t\t\t";
  313.                 // line 139
  314.                 echo twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["eBook"], "getMedia", [], "method"falsefalsefalse139), "getImageTag", ["cover-art"], "method"falsefalsefalse139);
  315.                 echo "
  316. \t\t\t\t\t\t</div>
  317. \t\t\t\t\t</div>
  318. \t\t\t\t\t<div class=\"title\">";
  319.                 // line 142
  320.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["eBook"], "getTitle", [], "method"falsefalsefalse142), "html"nulltrue);
  321.                 echo "</div>
  322. \t\t\t\t</a>
  323. \t\t\t";
  324.             }
  325.             $_parent $context['_parent'];
  326.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['eBook'], $context['_parent'], $context['loop']);
  327.             $context array_intersect_key($context$_parent) + $_parent;
  328.             // line 145
  329.             echo "\t\t</div>
  330. \t";
  331.         }
  332.         
  333.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  334.         
  335.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  336.     }
  337.     public function getTemplateName()
  338.     {
  339.         return "content/tmpl/ebooks.html.twig";
  340.     }
  341.     public function isTraitable()
  342.     {
  343.         return false;
  344.     }
  345.     public function getDebugInfo()
  346.     {
  347.         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,);
  348.     }
  349.     public function getSourceContext()
  350.     {
  351.         return new Source("{% extends \"1-col-sidebar.html.twig\" %}
  352. {% block column %}
  353. \t{% if site_code == constant(\"App\\\\Entity\\\\Content::SITE_RCS\") %}
  354. \t\t{% include \"includes/curtain-ads/rlw.html.twig\" %}
  355. \t{% endif %}
  356. \t{% if content is defined %}
  357. \t\t{% if content.getShowTitle() %}
  358. \t\t\t<div class=\"row\">
  359. \t\t\t\t<h1>{{ content.getTitle() | raw }}</h1>
  360. \t\t\t\t{% include \"includes/ebooks-sort-select.html.twig\" %}
  361. \t\t\t</div>
  362. \t\t{% endif %}
  363. \t\t{% if content.getFeaturedImageTag() %}
  364. \t\t\t{{ content.getFeaturedImageTag(\"display-block\",\"\")|raw }}
  365. \t\t{% endif %}
  366. \t\t{% if content.getContentFull() is not empty %}
  367. \t\t\t{{ content.getContentFull() | wordpress | raw }}
  368. \t\t{% endif %}
  369. \t{% endif %}
  370. \t<style>
  371. \t\th1 {
  372. \t\t\tdisplay: inline-block
  373. \t\t}
  374. \t\t.row {
  375. \t\t\tdisplay: flex;
  376. \t\t\tflex-direction: row;
  377. \t\t\t/*justify-content: space-between;*/
  378. \t\t}
  379. \t\t.column {
  380. \t\t\tjustify-content: center;
  381. \t\t\tdisplay: flex;
  382. \t\t\tflex-direction: column;
  383. \t\t}
  384. \t\t.book {
  385. \t\t\theight: 288px;
  386. \t\t\tmargin: auto;
  387. \t\t\tbox-shadow: 5px 4px 6px 2px #0000006e;
  388. \t\t\tposition: relative;
  389. \t\t\ttransition: 0.2s ease-in-out;
  390. \t\t\twidth: 223px;
  391. \t\t\toverflow: hidden;
  392. \t\t}
  393. \t\t.book:hover {
  394. \t\t\tbox-shadow: 0 12px 15px -2px #0000006e;
  395. \t\t\tpadding: 0;
  396. \t\t\ttransform: scale(1.05);
  397. \t\t}
  398. \t\t.book:hover > .title {
  399. \t\t\tbottom: 15px;
  400. \t\t}
  401. \t\t.title {
  402. \t\t\t/*position: absolute;*/
  403. \t\t\tbottom: -6px;
  404. \t\t\tleft: 0;
  405. \t\t\twidth: 100%;
  406. \t\t\ttext-align: center;
  407. \t\t\tfont-weight: bolder;
  408. \t\t\ttransition: 0.2s ease-in-out;
  409. \t\t\tpadding: 0 10px;
  410. \t\t}
  411. \t\t.book-container {
  412. \t\t\tmargin-top: 20px;
  413. \t\t\tmargin-bottom: 14px;
  414. \t\t}
  415. \t\t.cover-art {
  416. \t\t\tmax-height: 288px;
  417. \t\t\tmargin: auto;
  418. \t\t\tdisplay: block;
  419. \t\t}
  420. \t</style>
  421. \t{% if customers is defined %}
  422. \t\t<div class=\"row\">
  423. \t\t\t{% for customer in customers %}
  424. \t\t\t\t<a class=\"col-lg-4 col-md-6 \" href=\"/ebooks-by/{{customer.getDirectoryContent().getSlug()}}\">
  425. \t\t\t\t\t<div class=\"book-container\">
  426. \t\t\t\t\t\t<div class=\"book\">
  427. \t\t\t\t\t\t\t{{random(customer.getLatestContent(19, 0)).getMedia().getImageTag('cover-art')|raw}}
  428. \t\t\t\t\t\t</div>
  429. \t\t\t\t\t</div>
  430. \t\t\t\t\t<div class=\"title\">{{customer}}</div>
  431. \t\t\t\t</a>
  432. \t\t\t{% endfor %}
  433. \t\t</div>
  434. \t{% elseif categories is defined %}
  435. \t\t<div class=\"row\">
  436. \t\t\t{% for category in categories %}
  437. \t\t\t\t<a class=\"col-lg-4 col-md-6 \" href=\"/category/ebooks/{{category.getSlug()}}\">
  438. \t\t\t\t\t<div class=\"book-container\">
  439. \t\t\t\t\t\t<div class=\"book\">
  440. \t\t\t\t\t\t\t{# Business & Industry #}
  441. \t\t\t\t\t\t\t{% if category.getMedia() %}
  442. \t\t\t\t\t\t\t\t<img src=\"{{category.getMedia().getURL()}}\" class=\"cover-art\" loading=\"lazy\">
  443. \t\t\t\t\t\t\t{% elseif category.getId() == 1309 and site_code == constant(\"App\\\\Entity\\\\Content::SITE_RCS\") %}
  444. \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\">
  445. \t\t\t\t\t\t\t{% elseif category.getId() == 1309 and site_code == constant(\"App\\\\Entity\\\\Content::SITE_CCS\") %}
  446. \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\">
  447. \t\t\t\t\t\t\t{# Catalogs #}
  448. \t\t\t\t\t\t\t{% elseif category.getId() == 1313 and site_code == constant(\"App\\\\Entity\\\\Content::SITE_RCS\") %}
  449. \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\">
  450. \t\t\t\t\t\t\t{% elseif category.getId() == 1313 and site_code == constant(\"App\\\\Entity\\\\Content::SITE_CCS\") %}
  451. \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\">
  452. \t\t\t\t\t\t\t{# Design #}
  453. \t\t\t\t\t\t\t{% elseif category.getId() == 1312 and site_code == constant(\"App\\\\Entity\\\\Content::SITE_RCS\") %}
  454. \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\">
  455. \t\t\t\t\t\t\t{% elseif category.getId() == 1312 and site_code == constant(\"App\\\\Entity\\\\Content::SITE_CCS\") %}
  456. \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\">
  457. \t\t\t\t\t\t\t{# Homeowner #}
  458. \t\t\t\t\t\t\t{% elseif category.getId() == 1369 and site_code == constant(\"App\\\\Entity\\\\Content::SITE_CCS\") %}
  459. \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\">
  460. \t\t\t\t\t\t\t{# Materials & Install #}
  461. \t\t\t\t\t\t\t{% elseif category.getId() == 1310 and site_code == constant(\"App\\\\Entity\\\\Content::SITE_RCS\") %}
  462. \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\">
  463. \t\t\t\t\t\t\t{% elseif category.getId() == 1310 and site_code == constant(\"App\\\\Entity\\\\Content::SITE_CCS\") %}
  464. \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\">
  465. \t\t\t\t\t\t\t{# Tech & Software #}
  466. \t\t\t\t\t\t\t{% elseif category.getId() == 1311 and site_code == constant(\"App\\\\Entity\\\\Content::SITE_RCS\") %}
  467. \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\">
  468. \t\t\t\t\t\t\t{% elseif category.getId() == 1311 and site_code == constant(\"App\\\\Entity\\\\Content::SITE_CCS\") %}
  469. \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\">
  470. \t\t\t\t\t\t\t{% else %}
  471. \t\t\t\t\t\t\t\t{{(category.getPinnedEbook(site_code)).getMedia().getImageTag('cover-art')|raw}}
  472. \t\t\t\t\t\t\t{% endif %}
  473. \t\t\t\t\t\t</div>
  474. \t\t\t\t\t</div>
  475. \t\t\t\t\t<div class=\"title\">{{category}}</div>
  476. \t\t\t\t</a>
  477. \t\t\t{% endfor %}
  478. \t\t</div>
  479. \t{% else %}
  480. \t\t<div class=\"row\">
  481. \t\t\t{% for eBook in eBooks %}
  482. \t\t\t\t<a class=\"col-lg-4 col-md-6 \" href=\"/ebooks/{{eBook.getSlug()}}\">
  483. \t\t\t\t\t<div class=\"book-container\">
  484. \t\t\t\t\t\t<div class=\"book\">
  485. \t\t\t\t\t\t\t{{eBook.getMedia().getImageTag('cover-art')|raw}}
  486. \t\t\t\t\t\t</div>
  487. \t\t\t\t\t</div>
  488. \t\t\t\t\t<div class=\"title\">{{eBook.getTitle()}}</div>
  489. \t\t\t\t</a>
  490. \t\t\t{% endfor %}
  491. \t\t</div>
  492. \t{% endif %}
  493. {% endblock %}
  494. ""content/tmpl/ebooks.html.twig""/var/www/vhosts/rooferscoffeeshop.com/staging.rooferscoffeeshop.com/rcs-website/templates/content/tmpl/ebooks.html.twig");
  495.     }
  496. }