var/cache/dev/twig/6e/6e39c44d870e54bc119daddc005d5cfd.php line 48

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/category.html.twig */
  14. class __TwigTemplate_2235424702302f698b61e8f800e39749 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/category.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/category.html.twig"));
  38.         $this->parent $this->loadTemplate("1-col-sidebar.html.twig""content/tmpl/category.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 4
  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 5
  54.         echo "\t<h1 class=\"page-title\">";
  55.         echo ((array_key_exists("category"$context)) ? (twig_get_attribute($this->env$this->source, (isset($context["category"]) || array_key_exists("category"$context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.'5$this->source); })()), "title", [], "any"falsefalsefalse5)) : (""));
  56.         echo ((array_key_exists("customer"$context)) ? (twig_get_attribute($this->env$this->source, (isset($context["customer"]) || array_key_exists("customer"$context) ? $context["customer"] : (function () { throw new RuntimeError('Variable "customer" does not exist.'5$this->source); })()), "title", [], "any"falsefalsefalse5)) : (""));
  57.         echo "</h1>
  58. \t";
  59.         // line 6
  60.         $context['_parent'] = $context;
  61.         $context['_seq'] = twig_ensure_traversable((isset($context["posts"]) || array_key_exists("posts"$context) ? $context["posts"] : (function () { throw new RuntimeError('Variable "posts" does not exist.'6$this->source); })()));
  62.         foreach ($context['_seq'] as $context["_key"] => $context["post"]) {
  63.             // line 7
  64.             echo "\t\t<div
  65. \t\t\tclass=\"row my-3\" ";
  66.             // line 8
  67.             if (twig_get_attribute($this->env$this->source$context["post"], "getVideoMedia", [], "method"falsefalsefalse8)) {
  68.                 echo " data-video-row=\"";
  69.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["post"], "getVideoMedia", [], "method"falsefalsefalse8), "getId", [], "method"falsefalsefalse8), "html"nulltrue);
  70.                 echo "\" ";
  71.             }
  72.             echo ">
  73. \t\t\t";
  74.             // line 16
  75.             echo "\t\t\t";
  76.             if (twig_get_attribute($this->env$this->source$context["post"], "hasVideoMedia", [], "method"falsefalsefalse16)) {
  77.                 // line 17
  78.                 echo "\t\t\t\t<div class=\"col-sm-2 post-thumbnail directoryitem\">
  79. \t\t\t\t\t<a href=\"";
  80.                 // line 18
  81.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["post"], "getURL", [], "method"falsefalsefalse18), "html"nulltrue);
  82.                 echo "?autoplay=1\" class=\"no-style\">
  83. \t\t\t\t\t\t<div class=\"ytThumbContainer ytThumbContainer-small\">
  84. \t\t\t\t\t\t\t";
  85.                 // line 20
  86.                 $context["mURL"] = "";
  87.                 // line 21
  88.                 echo "\t\t\t\t\t\t\t";
  89.                 if (twig_get_attribute($this->env$this->source$context["post"], "getMedia", [], "method"falsefalsefalse21)) {
  90.                     // line 22
  91.                     echo "\t\t\t\t\t\t\t\t";
  92.                     $context["mURL"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["post"], "getMedia", [], "method"falsefalsefalse22), "getURL", [], "method"falsefalsefalse22);
  93.                     // line 23
  94.                     echo "\t\t\t\t\t\t\t";
  95.                 }
  96.                 // line 24
  97.                 echo "\t\t\t\t\t\t\t";
  98.                 echo twig_get_attribute($this->env$this->source$context["post"], "getVideoMediaTag", ["""max-height:165px;"falsefalsetrue, (isset($context["mURL"]) || array_key_exists("mURL"$context) ? $context["mURL"] : (function () { throw new RuntimeError('Variable "mURL" does not exist.'24$this->source); })())], "method"falsefalsefalse24);
  99.                 echo "
  100. \t\t\t\t\t\t</div>
  101. \t\t\t\t\t</a>
  102. \t\t\t\t</div>
  103. \t\t\t";
  104.             } elseif ( !twig_test_empty(twig_get_attribute($this->env$this->source,             // line 28
  105. $context["post"], "getFeaturedImageTag", [], "method"falsefalsefalse28))) {
  106.                 // line 29
  107.                 echo "\t\t\t\t<div class=\"col-sm-2 post-thumbnail directoryitem\">
  108. \t\t\t\t\t";
  109.                 // line 31
  110.                 echo twig_get_attribute($this->env$this->source$context["post"], "getFeaturedImageTag", [""""], "method"falsefalsefalse31);
  111.                 echo "
  112. \t\t\t\t</div>
  113. \t\t\t";
  114.             }
  115.             // line 34
  116.             echo "
  117. \t\t\t<div class=";
  118.             // line 35
  119.             echo ((( !twig_get_attribute($this->env$this->source$context["post"], "hasVideoMedia", [], "method"falsefalsefalse35) && twig_test_empty(twig_get_attribute($this->env$this->source$context["post"], "getFeaturedImageTag", [], "method"falsefalsefalse35)))) ? ("col-sm-12") : ("col-sm-9"));
  120.             echo ">
  121. \t\t\t\t<h3 class=\"list-post-title\">
  122. \t\t\t\t\t<a href=\"";
  123.             // line 37
  124.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["post"], "getFullUrl", [(isset($context["site_code"]) || array_key_exists("site_code"$context) ? $context["site_code"] : (function () { throw new RuntimeError('Variable "site_code" does not exist.'37$this->source); })())], "method"falsefalsefalse37), "html"nulltrue);
  125.             echo "\">";
  126.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["post"], "title", [], "any"falsefalsefalse37), "html"nulltrue);
  127.             echo "</a>
  128. \t\t\t\t</h3>
  129. \t\t\t\t<p class=\"post-byline\">";
  130.             // line 39
  131.             echo twig_escape_filter($this->env$this->extensions['App\Twig\RCSExtension']->rcsDateFormat(twig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["post"], "publishedat", [], "any"falsefalsefalse39))), "html"nulltrue);
  132.             echo "</p>
  133. \t\t\t\t<p>";
  134.             // line 41
  135.             echo twig_get_attribute($this->env$this->source$context["post"], "getIntroText", [], "method"falsefalsefalse41);
  136.             echo "</p>
  137. \t\t\t\t<div>
  138. \t\t\t\t\t<a href=\"";
  139.             // line 43
  140.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["post"], "getFullUrl", [(isset($context["site_code"]) || array_key_exists("site_code"$context) ? $context["site_code"] : (function () { throw new RuntimeError('Variable "site_code" does not exist.'43$this->source); })())], "method"falsefalsefalse43), "html"nulltrue);
  141.             echo "\">Read More</a>
  142. \t\t\t\t</div>
  143. \t\t\t</div>
  144. \t\t</div>
  145. \t\t<hr>
  146. \t";
  147.         }
  148.         $_parent $context['_parent'];
  149.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['post'], $context['_parent'], $context['loop']);
  150.         $context array_intersect_key($context$_parent) + $_parent;
  151.         // line 49
  152.         echo "
  153. \t<div class=\"row\">
  154. \t\t<div class=\"col-md-12\">
  155. \t\t\t<div
  156. \t\t\t\tclass=\"paginate float-right\">
  157. \t\t\t\t";
  158.         // line 62
  159.         echo "
  160. \t\t\t\t<div class=\"input-group\">
  161. \t\t\t\t\t<div class=\"input-group-prepend px-3\">
  162. \t\t\t\t\t\t<span>
  163. \t\t\t\t\t\t\tShowing:
  164. \t\t\t\t\t\t\t";
  165.         // line 68
  166.         if (((isset($context["total"]) || array_key_exists("total"$context) ? $context["total"] : (function () { throw new RuntimeError('Variable "total" does not exist.'68$this->source); })()) > 0)) {
  167.             // line 69
  168.             echo "\t\t\t\t\t\t\t\t";
  169.             echo twig_escape_filter($this->env, ((((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'69$this->source); })()) - 1) * (isset($context["length"]) || array_key_exists("length"$context) ? $context["length"] : (function () { throw new RuntimeError('Variable "length" does not exist.'69$this->source); })())) + 1), "html"nulltrue);
  170.             echo "
  171. \t\t\t\t\t\t\t\t-
  172. \t\t\t\t\t\t\t";
  173.         } else {
  174.             // line 72
  175.             echo "\t\t\t\t\t\t\t\t0 -
  176. \t\t\t\t\t\t\t";
  177.         }
  178.         // line 74
  179.         echo "
  180. \t\t\t\t\t\t\t";
  181.         // line 75
  182.         if (((isset($context["total"]) || array_key_exists("total"$context) ? $context["total"] : (function () { throw new RuntimeError('Variable "total" does not exist.'75$this->source); })()) < ((((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'75$this->source); })()) - 1) * (isset($context["length"]) || array_key_exists("length"$context) ? $context["length"] : (function () { throw new RuntimeError('Variable "length" does not exist.'75$this->source); })())) + (isset($context["length"]) || array_key_exists("length"$context) ? $context["length"] : (function () { throw new RuntimeError('Variable "length" does not exist.'75$this->source); })())))) {
  183.             // line 76
  184.             echo "\t\t\t\t\t\t\t\t";
  185.             echo twig_escape_filter($this->env, (isset($context["total"]) || array_key_exists("total"$context) ? $context["total"] : (function () { throw new RuntimeError('Variable "total" does not exist.'76$this->source); })()), "html"nulltrue);
  186.             echo "
  187. \t\t\t\t\t\t\t";
  188.         } else {
  189.             // line 78
  190.             echo "\t\t\t\t\t\t\t\t";
  191.             echo twig_escape_filter($this->env, ((((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'78$this->source); })()) - 1) * (isset($context["length"]) || array_key_exists("length"$context) ? $context["length"] : (function () { throw new RuntimeError('Variable "length" does not exist.'78$this->source); })())) + (isset($context["length"]) || array_key_exists("length"$context) ? $context["length"] : (function () { throw new RuntimeError('Variable "length" does not exist.'78$this->source); })())), "html"nulltrue);
  192.             echo "
  193. \t\t\t\t\t\t\t";
  194.         }
  195.         // line 80
  196.         echo "
  197. \t\t\t\t\t\t\tof
  198. \t\t\t\t\t\t\t";
  199.         // line 83
  200.         echo twig_escape_filter($this->env, (isset($context["total"]) || array_key_exists("total"$context) ? $context["total"] : (function () { throw new RuntimeError('Variable "total" does not exist.'83$this->source); })()), "html"nulltrue);
  201.         echo "
  202. \t\t\t\t\t\t</span>
  203. \t\t\t\t\t</div>
  204. \t\t\t\t\t<div class=\"button-group input-group-append paging\">
  205. \t\t\t\t\t\t";
  206.         // line 87
  207.         if ((< (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'87$this->source); })()))) {
  208.             // line 88
  209.             echo "\t\t\t\t\t\t\t<a class=\"btn btn-secondary mx-1\" href=\"";
  210.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["meta"]) || array_key_exists("meta"$context) ? $context["meta"] : (function () { throw new RuntimeError('Variable "meta" does not exist.'88$this->source); })()), "root", [], "any"falsefalsefalse88), "html"nulltrue);
  211.             echo "/";
  212.             echo twig_escape_filter($this->env, ((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'88$this->source); })()) - 1), "html"nulltrue);
  213.             echo "\">
  214. \t\t\t\t\t\t\t\t<i class=\"fa fa-chevron-left\"></i>
  215. \t\t\t\t\t\t\t</a>
  216. \t\t\t\t\t\t";
  217.         }
  218.         // line 92
  219.         echo "\t\t\t\t\t\t";
  220.         if ((((((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'92$this->source); })()) - 1) * (isset($context["length"]) || array_key_exists("length"$context) ? $context["length"] : (function () { throw new RuntimeError('Variable "length" does not exist.'92$this->source); })())) + (isset($context["length"]) || array_key_exists("length"$context) ? $context["length"] : (function () { throw new RuntimeError('Variable "length" does not exist.'92$this->source); })())) < (isset($context["total"]) || array_key_exists("total"$context) ? $context["total"] : (function () { throw new RuntimeError('Variable "total" does not exist.'92$this->source); })()))) {
  221.             // line 93
  222.             echo "\t\t\t\t\t\t\t<a class=\"btn btn-secondary mx-1\" href=\"";
  223.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["meta"]) || array_key_exists("meta"$context) ? $context["meta"] : (function () { throw new RuntimeError('Variable "meta" does not exist.'93$this->source); })()), "root", [], "any"falsefalsefalse93), "html"nulltrue);
  224.             echo "/";
  225.             echo twig_escape_filter($this->env, ((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'93$this->source); })()) + 1), "html"nulltrue);
  226.             echo "\">
  227. \t\t\t\t\t\t\t\t<i class=\"fa fa-chevron-right\"></i>
  228. \t\t\t\t\t\t\t</a>
  229. \t\t\t\t\t\t";
  230.         }
  231.         // line 97
  232.         echo "\t\t\t\t\t</div>
  233. \t\t\t\t</div>
  234. \t\t\t</div>
  235. \t\t</div>
  236. \t</div>
  237.     
  238. <script>
  239.     \t\t(function (\$) {
  240. \$(function () {
  241. \$('[data-video-row]').each(function () { // \$video = \$(this).find('video').first();
  242. \$(this).on('mouseover', function () {
  243. \$(this).find('video').first()[0].play();
  244. \$(this).find('.ytThumbContainer').first().stop(true, true).addClass('ytThumbContainer-playing', 500);
  245. // console.log(\$video);
  246. // console.log(\$(this).attr(\"data-video-row\"));
  247. });
  248. \$(this).on('mouseleave', function () {
  249. // \$(this).find('video').first()[0].pause();
  250. // \$(this).find('video').first()[0].currentTime=0;
  251. \$(this).find('video').first()[0].load();
  252. \$(this).find('.ytThumbContainer').first().stop(true, true).removeClass('ytThumbContainer-playing', 100);
  253. });
  254. });
  255. /*\t
  256. \t\t\t
  257. \t\t\t
  258. \t\t\t\$('#user-dashboard-container').on('click', '#addNote', function() {
  259. \t\t\t\t\$(\"#contactNotes\").append(noteHtml.join(''));
  260. \t\t\t\t\$(\"#updateNotes\").show();
  261. \t\t\t});
  262. \t\t\t
  263. \t\t\t\$('#user-dashboard-container').on('click', '.deleteNote', function() {
  264. \t\t\t\t\$(this).parent().parent().remove();
  265. \t\t\t});
  266. \t\t\t*/
  267. });
  268. }(jQuery));
  269. \t</script>
  270. ";
  271.         
  272.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  273.         
  274.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  275.     }
  276.     public function getTemplateName()
  277.     {
  278.         return "content/tmpl/category.html.twig";
  279.     }
  280.     public function isTraitable()
  281.     {
  282.         return false;
  283.     }
  284.     public function getDebugInfo()
  285.     {
  286.         return array (  250 => 97,  240 => 93,  237 => 92,  227 => 88,  225 => 87,  218 => 83,  213 => 80,  207 => 78,  201 => 76,  199 => 75,  196 => 74,  192 => 72,  185 => 69,  183 => 68,  175 => 62,  168 => 49,  156 => 43,  151 => 41,  146 => 39,  139 => 37,  134 => 35,  131 => 34,  125 => 31,  121 => 29,  119 => 28,  111 => 24,  108 => 23,  105 => 22,  102 => 21,  100 => 20,  95 => 18,  92 => 17,  89 => 16,  81 => 8,  78 => 7,  74 => 6,  68 => 5,  58 => 4,  35 => 1,);
  287.     }
  288.     public function getSourceContext()
  289.     {
  290.         return new Source("{% extends \"1-col-sidebar.html.twig\" %}
  291. {# category view #}
  292. {% block column %}
  293. \t<h1 class=\"page-title\">{{ category is defined ? category.title | raw : '' }}{{ customer is defined ? customer.title | raw : '' }}</h1>
  294. \t{% for post in posts %}
  295. \t\t<div
  296. \t\t\tclass=\"row my-3\" {% if post.getVideoMedia() %} data-video-row=\"{{post.getVideoMedia().getId()}}\" {% endif %}>
  297. \t\t\t{# {% if post.getFeaturedImageTag() is not empty %}
  298. \t\t\t\t\t\t\t<div class=\"col-3 post-thumbnail\">
  299. \t\t\t\t\t\t\t    <a href=\"{{ post.getFullUrl() }}\" title=\"{{ post.getTitle() }}\">
  300. \t\t\t\t\t\t\t\t{{ post.getFeaturedImageTag(\"\",\"\")|raw }}
  301. \t\t\t\t\t\t\t\t</a>
  302. \t\t\t\t\t\t\t</div>
  303. \t\t\t\t\t\t{% endif %} #}
  304. \t\t\t{% if post.hasVideoMedia()%}
  305. \t\t\t\t<div class=\"col-sm-2 post-thumbnail directoryitem\">
  306. \t\t\t\t\t<a href=\"{{ post.getURL() }}?autoplay=1\" class=\"no-style\">
  307. \t\t\t\t\t\t<div class=\"ytThumbContainer ytThumbContainer-small\">
  308. \t\t\t\t\t\t\t{% set mURL = \"\" %}
  309. \t\t\t\t\t\t\t{% if post.getMedia() %}
  310. \t\t\t\t\t\t\t\t{% set mURL = post.getMedia().getURL() %}
  311. \t\t\t\t\t\t\t{% endif %}
  312. \t\t\t\t\t\t\t{{ post.getVideoMediaTag(\"\",\"max-height:165px;\", false, false, true, mURL)|raw }}
  313. \t\t\t\t\t\t</div>
  314. \t\t\t\t\t</a>
  315. \t\t\t\t</div>
  316. \t\t\t{% elseif post.getFeaturedImageTag() is not empty %}
  317. \t\t\t\t<div class=\"col-sm-2 post-thumbnail directoryitem\">
  318. \t\t\t\t\t{{ post.getFeaturedImageTag(\"\",\"\")|raw }}
  319. \t\t\t\t</div>
  320. \t\t\t{% endif %}
  321. \t\t\t<div class={{ not post.hasVideoMedia() and post.getFeaturedImageTag() is empty ? \"col-sm-12\" : \"col-sm-9\" }}>
  322. \t\t\t\t<h3 class=\"list-post-title\">
  323. \t\t\t\t\t<a href=\"{{ post.getFullUrl(site_code) }}\">{{ post.title }}</a>
  324. \t\t\t\t</h3>
  325. \t\t\t\t<p class=\"post-byline\">{{ post.publishedat | date | rcsDateFormat }}</p>
  326. \t\t\t\t<p>{{ post.getIntroText()|raw }}</p>
  327. \t\t\t\t<div>
  328. \t\t\t\t\t<a href=\"{{ post.getFullUrl(site_code) }}\">Read More</a>
  329. \t\t\t\t</div>
  330. \t\t\t</div>
  331. \t\t</div>
  332. \t\t<hr>
  333. \t{% endfor %}
  334. \t<div class=\"row\">
  335. \t\t<div class=\"col-md-12\">
  336. \t\t\t<div
  337. \t\t\t\tclass=\"paginate float-right\">
  338. \t\t\t\t{#
  339. \t\t\t\t                {% if page < totalpages %}
  340. \t\t\t\t                    <a href=\"{{ meta.root }}/{{ page+1 }}\">&laquo; Older Posts</a>
  341. \t\t\t\t                {% endif %}
  342. \t\t\t\t        \t\t{% if page > 1 %}
  343. \t\t\t\t                    <a class=\"float-right\" href=\"/{{ meta.root }}/{{ page-1 }}\">Newer Posts &raquo;</a>
  344. \t\t\t\t                {% endif %}
  345. \t\t\t\t                #}
  346. \t\t\t\t<div class=\"input-group\">
  347. \t\t\t\t\t<div class=\"input-group-prepend px-3\">
  348. \t\t\t\t\t\t<span>
  349. \t\t\t\t\t\t\tShowing:
  350. \t\t\t\t\t\t\t{% if total > 0 %}
  351. \t\t\t\t\t\t\t\t{{ ((page - 1) * length) + 1 }}
  352. \t\t\t\t\t\t\t\t-
  353. \t\t\t\t\t\t\t{% else %}
  354. \t\t\t\t\t\t\t\t0 -
  355. \t\t\t\t\t\t\t{% endif %}
  356. \t\t\t\t\t\t\t{% if total < ((page - 1) * length) + length %}
  357. \t\t\t\t\t\t\t\t{{ total }}
  358. \t\t\t\t\t\t\t{% else %}
  359. \t\t\t\t\t\t\t\t{{ ((page - 1) * length) + length }}
  360. \t\t\t\t\t\t\t{% endif %}
  361. \t\t\t\t\t\t\tof
  362. \t\t\t\t\t\t\t{{ total }}
  363. \t\t\t\t\t\t</span>
  364. \t\t\t\t\t</div>
  365. \t\t\t\t\t<div class=\"button-group input-group-append paging\">
  366. \t\t\t\t\t\t{% if 1 < page %}
  367. \t\t\t\t\t\t\t<a class=\"btn btn-secondary mx-1\" href=\"{{ meta.root }}/{{ page - 1 }}\">
  368. \t\t\t\t\t\t\t\t<i class=\"fa fa-chevron-left\"></i>
  369. \t\t\t\t\t\t\t</a>
  370. \t\t\t\t\t\t{% endif %}
  371. \t\t\t\t\t\t{% if ((page - 1) * length) + length < total %}
  372. \t\t\t\t\t\t\t<a class=\"btn btn-secondary mx-1\" href=\"{{ meta.root }}/{{ page + 1 }}\">
  373. \t\t\t\t\t\t\t\t<i class=\"fa fa-chevron-right\"></i>
  374. \t\t\t\t\t\t\t</a>
  375. \t\t\t\t\t\t{% endif %}
  376. \t\t\t\t\t</div>
  377. \t\t\t\t</div>
  378. \t\t\t</div>
  379. \t\t</div>
  380. \t</div>
  381.     
  382. <script>
  383.     \t\t(function (\$) {
  384. \$(function () {
  385. \$('[data-video-row]').each(function () { // \$video = \$(this).find('video').first();
  386. \$(this).on('mouseover', function () {
  387. \$(this).find('video').first()[0].play();
  388. \$(this).find('.ytThumbContainer').first().stop(true, true).addClass('ytThumbContainer-playing', 500);
  389. // console.log(\$video);
  390. // console.log(\$(this).attr(\"data-video-row\"));
  391. });
  392. \$(this).on('mouseleave', function () {
  393. // \$(this).find('video').first()[0].pause();
  394. // \$(this).find('video').first()[0].currentTime=0;
  395. \$(this).find('video').first()[0].load();
  396. \$(this).find('.ytThumbContainer').first().stop(true, true).removeClass('ytThumbContainer-playing', 100);
  397. });
  398. });
  399. /*\t
  400. \t\t\t
  401. \t\t\t
  402. \t\t\t\$('#user-dashboard-container').on('click', '#addNote', function() {
  403. \t\t\t\t\$(\"#contactNotes\").append(noteHtml.join(''));
  404. \t\t\t\t\$(\"#updateNotes\").show();
  405. \t\t\t});
  406. \t\t\t
  407. \t\t\t\$('#user-dashboard-container').on('click', '.deleteNote', function() {
  408. \t\t\t\t\$(this).parent().parent().remove();
  409. \t\t\t});
  410. \t\t\t*/
  411. });
  412. }(jQuery));
  413. \t</script>
  414. {% endblock %}
  415. ""content/tmpl/category.html.twig""/var/www/vhosts/rooferscoffeeshop.com/staging.rooferscoffeeshop.com/rcs-website/templates/content/tmpl/category.html.twig");
  416.     }
  417. }