<?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/classified-index.html.twig */
class __TwigTemplate_7ac4118650a235c357b98ca7d6aac503 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/classified-index.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/classified-index.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "content/classified-index.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 "
";
// line 4
$this->loadTemplate("content/classified-index.html.twig", "content/classified-index.html.twig", 4, "489735572")->display($context);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "content/classified-index.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 %}
{% embed \"1-col-sidebar.html.twig\" %}
{% block column %}
\t\t{% if site_code == constant(\"App\\\\Entity\\\\Content::SITE_RCS\") %}
\t\t\t{% include \"includes/curtain-ads/classified.html.twig\" %}
\t\t{% elseif site_code == constant(\"App\\\\Entity\\\\Content::SITE_MCS\") %}
\t\t\t{% include \"includes/curtain-ads/classified-mcs.html.twig\" %}
\t\t{% endif %}
\t<div class=\"row\">
\t\t<div class=\"col-12\">
\t\t\t<h1>Classifieds By Region</h1>
\t\t</div>
\t</div>
\t<div class=\"row\">
\t\t<div class=\"col-md-12\" style=\"text-align: center; padding-top: 10px;\">
\t\t\t{% include \"includes/classified-image-map.html.twig\" %}
\t\t\t{#<img
\t\t\t\tsrc=\"/assets/img/classified-image-map.png\"
\t\t\t\talt=\"Classified Listings\"
\t\t\t\tclass=\"d-block mx-auto\"
\t\t\t\tloading='lazy'
\t\t\t/>#}
\t\t</div>
\t</div>
\t<div class=\"row\">
\t\t<div class=\"col-sm-12\">
\t\t\t<h2>Classified Listings</h2>
\t\t</div>
\t\t{#
\t\t<div class=\"col-sm-6\">
\t\t\t<a href=\"/classified-policy\" class=\"float-right\">Read our Classified Policy</a>
\t\t</div>
\t\t#}
\t</div>
\t
\t<form id=\"classified-sort\">
\t<input type=\"hidden\" name=\"page\" id=\"page\" />
\t<input type=\"hidden\" name=\"group\" value=\"{{ group }}\" />
\t
\t<div class=\"row\">
\t\t<div class=\"col-sm-12\">
\t\t\t
\t\t\t<div class=\"grey-block mb-3 search-classifieds\">
\t\t\t\t<div class=\"row mb-3\">
\t\t\t\t\t<div class=\"col-sm-6\">
\t\t\t\t\t\t<input
\t\t\t\t\t\t\ttype=\"text\"
\t\t\t\t\t\t\tclass=\"form-control\"
\t\t\t\t\t\t\tplaceholder=\"Keywords & Trade Names\"
\t\t\t\t\t\t\tname=\"keywords\"
\t\t\t\t\t\t\tvalue=\"{{ keywords }}\"
\t\t\t\t\t\t/>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"col-sm-6\">
\t\t\t\t\t\t<input
\t\t\t\t\t\t\ttype=\"text\"
\t\t\t\t\t\t\tclass=\"form-control\"
\t\t\t\t\t\t\tplaceholder=\"Location\"
\t\t\t\t\t\t\tname=\"location\"
\t\t\t\t\t\t\tvalue=\"{{ location }}\"
\t\t\t\t\t\t/>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t
\t\t\t\t<select name=\"category\" class=\"form-control\">
\t\t\t\t\t<option value=\"\">-- Choose a Category --</option>
\t\t\t\t\t{% for cat in listingCategories %}
\t\t\t\t\t\t<option
\t\t\t\t\t\t\tvalue=\"{{ cat.getId() }}\"
\t\t\t\t\t\t\t{% if cat.getId() == category %}
\t\t\t\t\t\t\t\tselected
\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t>{{ cat.getTitle() }}</option>
\t\t\t\t\t{% endfor %}
\t\t\t\t</select>
\t\t\t</div>
\t\t\t
\t\t\t<div class=\"row classifieds-locale\">
\t\t\t\t<div class=\"col-sm-12 listing-country listing-canada\">
\t\t\t\t\t<b>Canada</b>
\t\t\t\t\t<ul class=\"nav\">
\t\t\t\t\t\t{% for area in listingAreas %}
\t\t\t\t\t\t{% if 'Canada' in area.getTitle() %}
\t\t\t\t\t\t<li class=\"mr-3\">
\t\t\t\t\t\t\t<label><input
\t\t\t\t\t\t\t\ttype=\"checkbox\"
\t\t\t\t\t\t\t\tname=\"area[]\"
\t\t\t\t\t\t\t\tvalue=\"{{ area.getId() }}\"
\t\t\t\t\t\t\t\tid=\"{{ area.getTitle()|trim('Canada: ', 'left')|replace({' ': '', ',': ''}) }}\"
\t\t\t\t\t\t\t\t{% if area.getId() in areas %}
\t\t\t\t\t\t\t\t\tchecked
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t/> {{ area.getTitle()|trim('Canada: ', 'left') }}</label>
\t\t\t\t\t\t</li>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t</ul>
\t\t\t\t</div>
\t\t\t\t<div class=\"col-sm-12 listing-country listing-us\">
\t\t\t\t\t<b>United States</b>
\t\t\t\t\t<ul class=\"nav\">
\t\t\t\t\t\t{% for area in listingAreas %}
\t\t\t\t\t\t{% if 'Canada' not in area.getTitle() %}
\t\t\t\t\t\t<li class=\"mr-3\">
\t\t\t\t\t\t\t<label><input
\t\t\t\t\t\t\t\ttype=\"checkbox\"
\t\t\t\t\t\t\t\tname=\"area[]\"
\t\t\t\t\t\t\t\tvalue=\"{{ area.getId() }}\"
\t\t\t\t\t\t\t\tid=\"{{ area.getTitle() }}\"
\t\t\t\t\t\t\t\t{% if area.getId() in areas %}
\t\t\t\t\t\t\t\t\tchecked
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t/> {{ area.getTitle() }}</label>
\t\t\t\t\t\t</li>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t</ul>
\t\t\t\t</div>
\t\t\t\t{#
\t\t\t\t<div class=\"col-sm-4\">
\t\t\t\t\t<button
\t\t\t\t\t\tclass=\"btn btn-block btn-primary float-right\"
\t\t\t\t\t\ttype=\"submit\"
\t\t\t\t\t><i class=\"fa fa-search\"></i> Search Listings</button>
\t\t\t\t</div>
\t\t\t\t#}
\t\t\t</div>
\t\t\t\t
\t\t</div>
\t</div>
\t
\t<div class=\"row\">
\t\t<div class=\"col-sm-12 mt-3\">
\t\t\t<hr />
\t\t</div>
\t</div>
\t
\t{% if totalListings %}
\t<div class=\"row\">
\t\t<div class=\"col-sm-12\">
\t\t\t<div class=\"pagination float-right\">
\t\t\t\t{% set paging = (page == \"_\") ? 0 : page %}
\t\t\t\t<div class=\"input-group\">
\t\t\t\t\t<div class=\"input-group-prepend px-3\">
\t\t\t\t\t\t<span>
\t\t\t\t\t\tShowing:
\t\t\t\t\t\t
\t\t\t\t\t\t{{ paging * pagingSize + 1 }} -
\t\t\t\t\t\t
\t\t\t\t\t\t{% if totalListings < (paging * pagingSize + pagingSize) %}
\t\t\t\t\t\t\t{{ totalListings }}
\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t{{ paging * pagingSize + pagingSize }}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t
\t\t\t\t\t\tof
\t\t\t\t\t\t
\t\t\t\t\t\t{{ totalListings }}
\t\t\t\t\t\t</span>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"button-group input-group-append paging\">
\t\t\t\t\t\t{% if 0 < paging %}
\t\t\t\t\t\t<button class=\"btn paging\" value=\"{{ paging - 1 }}\">
\t\t\t\t\t\t\t<i class=\"fa fa-chevron-left\"></i>
\t\t\t\t\t\t</button>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% if (paging * pagingSize + pagingSize) < totalListings %}
\t\t\t\t\t\t<button class=\"btn paging\" value=\"{{ paging + 1 }}\">
\t\t\t\t\t\t\t<i class=\"fa fa-chevron-right\"></i>
\t\t\t\t\t\t</button>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
\t
\t{% else %}
\t
\t<div class=\"row\">
\t\t<div class=\"col-sm-12 text-center\">
\t\t\t<div class=\"alert alert-warning mb-0\"><i class=\"fa fa-exclamation-triangle\"></i> No Records Found</div>
\t\t</div>
\t</div>
\t
\t{% endif %}
\t
\t<div class=\"row\">
\t\t<div class=\"col-sm-12\">
\t\t\t<hr style=\"margin-bottom: 0;\" />
\t\t</div>
\t</div>
\t
\t<div class=\"row\">
\t\t<div class=\"col-sm-12\">
\t\t\t{% for listing in listings %}
\t\t\t{#<a href=\"{{ listing.getURL() }}\" class=\"no-style\">#}
\t\t\t\t<div class=\"row classified-index-row py-1{{ 0 < listing.getFeatured() ? ' featured' : '' }}\" style=\"min-height:200px;\"
\t\t\t\t\t{% if listing.getVideoMedia() %}
\t\t\t\t\t\tdata-video-row=\"{{listing.getVideoMedia().getId()}}\"
\t\t\t\t\t{% endif %}
\t\t\t\t>
\t\t\t\t\t
\t\t\t\t\t{% if listing.getFeaturedImageTag() or listing.getVideoMediaTag() %}
\t\t\t\t\t\t
\t\t\t\t\t\t{% if listing.hasVideoMedia() %}
\t\t\t\t\t\t\t<div class=\"col-sm-2\">
\t\t\t\t\t\t\t\t<a href=\"{{ listing.getURL() }}?autoplay=1\" class=\"no-style\">
\t\t\t\t\t\t\t\t\t<div class=\"ytThumbContainer ytThumbContainer-small\">
\t\t\t\t\t\t\t\t\t\t{#{{ listing.getFeaturedImageTag(\"ytThumbnail\",\"\")|raw }}#}
\t\t\t\t\t\t\t\t\t\t{% set mURL = \"\" %}
\t\t\t\t\t\t\t\t\t\t{% if listing.getMedia() %}
\t\t\t\t\t\t\t\t\t\t\t{% set mURL = listing.getMedia().getURL() %}
\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t{{ listing.getVideoMediaTag(\"\",\"max-height:165px;\", false, false, true, mURL)|raw }}
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t<script>
\t\t\t\t\t\t\t/*
\t\t\t\t\t\t\t\tvar video = document.querySelector(\"[data-video-mid='{{listing.getVideoMedia().getId()}}']\");
\t\t\t\t\t\t\t\tvar videoDiv = document.querySelector(\"[data-video-row='{{listing.getVideoMedia().getId()}}']\");
\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\tvideoDiv.addEventListener(\"mouseover\", console.log(\"test\"), true);
\t\t\t\t\t\t\t\t//videoDiv.addEventListener(\"mouseover\", video.play(), false);
\t\t\t\t\t\t\t\t//videoDiv.addEventListener(\"mouseout\", video.pause(), false);
\t\t\t\t\t\t\t*/
\t\t\t\t\t\t\t</script>
\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t<div class=\"col-sm-2\">
\t\t\t\t\t\t\t\t<a href=\"{{ listing.getURL() }}\" class=\"no-style\">
\t\t\t\t\t\t\t\t\t{{ listing.getFeaturedImageTag(\"\",\"max-height:165px;\")|raw }}
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t
\t\t\t\t\t\t<div class=\"col-sm-4\">
\t\t\t\t\t\t\t<a href=\"{{ listing.getURL() }}\" class=\"no-style\">
\t\t\t\t\t\t\t\t<h4 class=\"mb-0\">{{ listing.getTitle() | raw }}</h4>
\t\t\t\t\t\t\t\t{% set company_name = listing.getContentMetaValueByKey(\"_company_name\") %}
\t\t\t\t\t\t\t\t{% if company_name is not empty %}
\t\t\t\t\t\t\t\t\t<p>{{ company_name | raw }}</p>
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"col-sm-3\">
\t\t\t\t\t\t\t<a href=\"{{ listing.getURL() }}\" class=\"no-style\">
\t\t\t\t\t\t\t\t{% set jobLocation = listing.getContentMetaByKey(\"_job_location\") %}
\t\t\t\t\t\t\t\t{{ jobLocation ? jobLocation.getMetaValue() : \"\" }}
\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t</div>
\t\t\t\t\t{% else %}
\t\t\t\t\t\t<div class=\"col-sm-6\">
\t\t\t\t\t\t\t<a href=\"{{ listing.getURL() }}\" class=\"no-style\">
\t\t\t\t\t\t\t\t<h4 class=\"mb-0\">{{ listing.getTitle() | raw }}</h4>
\t\t\t\t\t\t\t\t<p>{{ listing.getContentMetaValueByKey(\"_company_name\") | raw }}</p>
\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"col-sm-3\">
\t\t\t\t\t\t\t<a href=\"{{ listing.getURL() }}\" class=\"no-style\">
\t\t\t\t\t\t\t\t{% set jobLocation = listing.getContentMetaByKey(\"_job_location\") %}
\t\t\t\t\t\t\t\t{{ jobLocation ? jobLocation.getMetaValue() : \"\" }}
\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t</div>
\t\t\t\t\t{% endif %}
\t\t\t\t\t<div class=\"col-sm-3\">
\t\t\t\t\t\t<a href=\"{{ listing.getURL() }}\" class=\"no-style\">
\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t{% set jobType = listing.getSecondaryCategoriesByTaxonomy(\"job_listing_type\") %}
\t\t\t\t\t\t\t\t{% if 1 < jobType | length %}
\t\t\t\t\t\t\t\t\t<strong>Multiple</strong>
\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t{% if jobType.first() %}
\t\t\t\t\t\t\t\t\t\t<strong>{{ jobType.first().getTitle() }}</strong>
\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t{{ post_age_format(date(listing.getPublishedAt()|date).diff(date(\"now\"))) }}
\t\t\t\t\t\t</a>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t{#</a>#}
\t\t\t<hr class=\"m-0\" />
\t\t\t{% endfor %}
\t\t</div>
\t\t
\t</div>
\t
\t
\t{% if totalListings %}
\t<div class=\"row\">
\t\t<div class=\"col-sm-12\">
\t\t\t<div class=\"pagination float-right\">
\t\t\t\t{% set paging = (page == \"_\") ? 0 : page %}
\t\t\t\t<div class=\"input-group\">
\t\t\t\t\t<div class=\"input-group-prepend px-3\">
\t\t\t\t\t\t<span>
\t\t\t\t\t\tShowing:
\t\t\t\t\t\t
\t\t\t\t\t\t{{ paging * pagingSize + 1 }} -
\t\t\t\t\t\t
\t\t\t\t\t\t{% if totalListings < (paging * pagingSize + pagingSize) %}
\t\t\t\t\t\t\t{{ totalListings }}
\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t{{ paging * pagingSize + pagingSize }}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t
\t\t\t\t\t\tof
\t\t\t\t\t\t
\t\t\t\t\t\t{{ totalListings }}
\t\t\t\t\t\t</span>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"button-group input-group-append paging\">
\t\t\t\t\t\t{% if 0 < paging %}
\t\t\t\t\t\t<button class=\"btn paging\" value=\"{{ paging - 1 }}\">
\t\t\t\t\t\t\t<i class=\"fa fa-chevron-left\"></i>
\t\t\t\t\t\t</button>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% if (paging * pagingSize + pagingSize) < totalListings %}
\t\t\t\t\t\t<button class=\"btn paging\" value=\"{{ paging + 1 }}\">
\t\t\t\t\t\t\t<i class=\"fa fa-chevron-right\"></i>
\t\t\t\t\t\t</button>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
\t{% endif %}
\t
\t
\t</form>
\t
\t
<script>
\t(function(\$){
\t\t\$(function(){
\t\t\t
\t\t\t\$('[data-video-row]').each(function() {
\t\t\t\t//\$video = \$(this).find('video').first();
\t\t\t\t\$(this).on('mouseover', function() {
\t\t\t\t\t\$(this).find('video').first()[0].play();
\t\t\t\t\t\$(this).find('.ytThumbContainer').first().stop(true,true).addClass('ytThumbContainer-playing', 500);
\t\t\t\t\t//console.log(\$video);
\t\t\t\t\t//console.log(\$(this).attr(\"data-video-row\"));
\t\t\t\t});
\t\t\t\t
\t\t\t\t\$(this).on('mouseleave', function() {
\t\t\t\t\t//\$(this).find('video').first()[0].pause();
\t\t\t\t\t//\$(this).find('video').first()[0].currentTime=0;
\t\t\t\t\t\$(this).find('video').first()[0].load();
\t\t\t\t\t\$(this).find('.ytThumbContainer').first().stop(true,true).removeClass('ytThumbContainer-playing', 100);
\t\t\t\t});
\t\t\t});
\t\t\t\t
\t\t\t/*\t
\t\t\t
\t\t\t
\t\t\t\$('#user-dashboard-container').on('click', '#addNote', function() {
\t\t\t\t\$(\"#contactNotes\").append(noteHtml.join(''));
\t\t\t\t\$(\"#updateNotes\").show();
\t\t\t});
\t\t\t
\t\t\t\$('#user-dashboard-container').on('click', '.deleteNote', function() {
\t\t\t\t\$(this).parent().parent().remove();
\t\t\t});
\t\t\t*/
\t\t\t
\t\t});
\t}(jQuery));
</script>
{% endblock %}
{% block sidebar %}
\t{% include \"includes/sidebar.html.twig\" %}
{% endblock %}
{% endembed %}
{% endblock %}", "content/classified-index.html.twig", "/var/www/vhosts/rooferscoffeeshop.com/staging.rooferscoffeeshop.com/rcs-website/templates/content/classified-index.html.twig");
}
}
/* content/classified-index.html.twig */
class __TwigTemplate_7ac4118650a235c357b98ca7d6aac503___489735572 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'column' => [$this, 'block_column'],
'sidebar' => [$this, 'block_sidebar'],
];
}
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/classified-index.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/classified-index.html.twig"));
$this->parent = $this->loadTemplate("1-col-sidebar.html.twig", "content/classified-index.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 5
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 6
echo "\t\t";
if (((isset($context["site_code"]) || array_key_exists("site_code", $context) ? $context["site_code"] : (function () { throw new RuntimeError('Variable "site_code" does not exist.', 6, $this->source); })()) == twig_constant("App\\Entity\\Content::SITE_RCS"))) {
// line 7
echo "\t\t\t";
$this->loadTemplate("includes/curtain-ads/classified.html.twig", "content/classified-index.html.twig", 7)->display($context);
// line 8
echo "\t\t";
} elseif (((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_MCS"))) {
// line 9
echo "\t\t\t";
$this->loadTemplate("includes/curtain-ads/classified-mcs.html.twig", "content/classified-index.html.twig", 9)->display($context);
// line 10
echo "\t\t";
}
// line 11
echo "
\t<div class=\"row\">
\t\t<div class=\"col-12\">
\t\t\t<h1>Classifieds By Region</h1>
\t\t</div>
\t</div>
\t<div class=\"row\">
\t\t<div class=\"col-md-12\" style=\"text-align: center; padding-top: 10px;\">
\t\t\t";
// line 19
$this->loadTemplate("includes/classified-image-map.html.twig", "content/classified-index.html.twig", 19)->display($context);
// line 20
echo "\t\t\t";
// line 26
echo "\t\t</div>
\t</div>
\t<div class=\"row\">
\t\t<div class=\"col-sm-12\">
\t\t\t<h2>Classified Listings</h2>
\t\t</div>
\t\t";
// line 39
echo "\t</div>
\t
\t<form id=\"classified-sort\">
\t<input type=\"hidden\" name=\"page\" id=\"page\" />
\t<input type=\"hidden\" name=\"group\" value=\"";
// line 43
echo twig_escape_filter($this->env, (isset($context["group"]) || array_key_exists("group", $context) ? $context["group"] : (function () { throw new RuntimeError('Variable "group" does not exist.', 43, $this->source); })()), "html", null, true);
echo "\" />
\t
\t<div class=\"row\">
\t\t<div class=\"col-sm-12\">
\t\t\t
\t\t\t<div class=\"grey-block mb-3 search-classifieds\">
\t\t\t\t<div class=\"row mb-3\">
\t\t\t\t\t<div class=\"col-sm-6\">
\t\t\t\t\t\t<input
\t\t\t\t\t\t\ttype=\"text\"
\t\t\t\t\t\t\tclass=\"form-control\"
\t\t\t\t\t\t\tplaceholder=\"Keywords & Trade Names\"
\t\t\t\t\t\t\tname=\"keywords\"
\t\t\t\t\t\t\tvalue=\"";
// line 56
echo twig_escape_filter($this->env, (isset($context["keywords"]) || array_key_exists("keywords", $context) ? $context["keywords"] : (function () { throw new RuntimeError('Variable "keywords" does not exist.', 56, $this->source); })()), "html", null, true);
echo "\"
\t\t\t\t\t\t/>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"col-sm-6\">
\t\t\t\t\t\t<input
\t\t\t\t\t\t\ttype=\"text\"
\t\t\t\t\t\t\tclass=\"form-control\"
\t\t\t\t\t\t\tplaceholder=\"Location\"
\t\t\t\t\t\t\tname=\"location\"
\t\t\t\t\t\t\tvalue=\"";
// line 65
echo twig_escape_filter($this->env, (isset($context["location"]) || array_key_exists("location", $context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.', 65, $this->source); })()), "html", null, true);
echo "\"
\t\t\t\t\t\t/>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t
\t\t\t\t<select name=\"category\" class=\"form-control\">
\t\t\t\t\t<option value=\"\">-- Choose a Category --</option>
\t\t\t\t\t";
// line 72
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["listingCategories"]) || array_key_exists("listingCategories", $context) ? $context["listingCategories"] : (function () { throw new RuntimeError('Variable "listingCategories" does not exist.', 72, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["cat"]) {
// line 73
echo "\t\t\t\t\t\t<option
\t\t\t\t\t\t\tvalue=\"";
// line 74
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["cat"], "getId", [], "method", false, false, false, 74), "html", null, true);
echo "\"
\t\t\t\t\t\t\t";
// line 75
if ((twig_get_attribute($this->env, $this->source, $context["cat"], "getId", [], "method", false, false, false, 75) == (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 75, $this->source); })()))) {
// line 76
echo "\t\t\t\t\t\t\t\tselected
\t\t\t\t\t\t\t";
}
// line 78
echo "\t\t\t\t\t\t>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["cat"], "getTitle", [], "method", false, false, false, 78), "html", null, true);
echo "</option>
\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cat'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 80
echo "\t\t\t\t</select>
\t\t\t</div>
\t\t\t
\t\t\t<div class=\"row classifieds-locale\">
\t\t\t\t<div class=\"col-sm-12 listing-country listing-canada\">
\t\t\t\t\t<b>Canada</b>
\t\t\t\t\t<ul class=\"nav\">
\t\t\t\t\t\t";
// line 87
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["listingAreas"]) || array_key_exists("listingAreas", $context) ? $context["listingAreas"] : (function () { throw new RuntimeError('Variable "listingAreas" does not exist.', 87, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["area"]) {
// line 88
echo "\t\t\t\t\t\t";
if (twig_in_filter("Canada", twig_get_attribute($this->env, $this->source, $context["area"], "getTitle", [], "method", false, false, false, 88))) {
// line 89
echo "\t\t\t\t\t\t<li class=\"mr-3\">
\t\t\t\t\t\t\t<label><input
\t\t\t\t\t\t\t\ttype=\"checkbox\"
\t\t\t\t\t\t\t\tname=\"area[]\"
\t\t\t\t\t\t\t\tvalue=\"";
// line 93
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["area"], "getId", [], "method", false, false, false, 93), "html", null, true);
echo "\"
\t\t\t\t\t\t\t\tid=\"";
// line 94
echo twig_escape_filter($this->env, twig_replace_filter(twig_trim_filter(twig_get_attribute($this->env, $this->source, $context["area"], "getTitle", [], "method", false, false, false, 94), "Canada: ", "left"), [" " => "", "," => ""]), "html", null, true);
echo "\"
\t\t\t\t\t\t\t\t";
// line 95
if (twig_in_filter(twig_get_attribute($this->env, $this->source, $context["area"], "getId", [], "method", false, false, false, 95), (isset($context["areas"]) || array_key_exists("areas", $context) ? $context["areas"] : (function () { throw new RuntimeError('Variable "areas" does not exist.', 95, $this->source); })()))) {
// line 96
echo "\t\t\t\t\t\t\t\t\tchecked
\t\t\t\t\t\t\t\t";
}
// line 98
echo "\t\t\t\t\t\t\t/> ";
echo twig_escape_filter($this->env, twig_trim_filter(twig_get_attribute($this->env, $this->source, $context["area"], "getTitle", [], "method", false, false, false, 98), "Canada: ", "left"), "html", null, true);
echo "</label>
\t\t\t\t\t\t</li>
\t\t\t\t\t\t";
}
// line 101
echo "\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['area'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 102
echo "\t\t\t\t\t</ul>
\t\t\t\t</div>
\t\t\t\t<div class=\"col-sm-12 listing-country listing-us\">
\t\t\t\t\t<b>United States</b>
\t\t\t\t\t<ul class=\"nav\">
\t\t\t\t\t\t";
// line 107
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["listingAreas"]) || array_key_exists("listingAreas", $context) ? $context["listingAreas"] : (function () { throw new RuntimeError('Variable "listingAreas" does not exist.', 107, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["area"]) {
// line 108
echo "\t\t\t\t\t\t";
if (!twig_in_filter("Canada", twig_get_attribute($this->env, $this->source, $context["area"], "getTitle", [], "method", false, false, false, 108))) {
// line 109
echo "\t\t\t\t\t\t<li class=\"mr-3\">
\t\t\t\t\t\t\t<label><input
\t\t\t\t\t\t\t\ttype=\"checkbox\"
\t\t\t\t\t\t\t\tname=\"area[]\"
\t\t\t\t\t\t\t\tvalue=\"";
// line 113
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["area"], "getId", [], "method", false, false, false, 113), "html", null, true);
echo "\"
\t\t\t\t\t\t\t\tid=\"";
// line 114
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["area"], "getTitle", [], "method", false, false, false, 114), "html", null, true);
echo "\"
\t\t\t\t\t\t\t\t";
// line 115
if (twig_in_filter(twig_get_attribute($this->env, $this->source, $context["area"], "getId", [], "method", false, false, false, 115), (isset($context["areas"]) || array_key_exists("areas", $context) ? $context["areas"] : (function () { throw new RuntimeError('Variable "areas" does not exist.', 115, $this->source); })()))) {
// line 116
echo "\t\t\t\t\t\t\t\t\tchecked
\t\t\t\t\t\t\t\t";
}
// line 118
echo "\t\t\t\t\t\t\t/> ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["area"], "getTitle", [], "method", false, false, false, 118), "html", null, true);
echo "</label>
\t\t\t\t\t\t</li>
\t\t\t\t\t\t";
}
// line 121
echo "\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['area'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 122
echo "\t\t\t\t\t</ul>
\t\t\t\t</div>
\t\t\t\t";
// line 132
echo "\t\t\t</div>
\t\t\t\t
\t\t</div>
\t</div>
\t
\t<div class=\"row\">
\t\t<div class=\"col-sm-12 mt-3\">
\t\t\t<hr />
\t\t</div>
\t</div>
\t
\t";
// line 143
if ((isset($context["totalListings"]) || array_key_exists("totalListings", $context) ? $context["totalListings"] : (function () { throw new RuntimeError('Variable "totalListings" does not exist.', 143, $this->source); })())) {
// line 144
echo "\t<div class=\"row\">
\t\t<div class=\"col-sm-12\">
\t\t\t<div class=\"pagination float-right\">
\t\t\t\t";
// line 147
$context["paging"] = ((((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 147, $this->source); })()) == "_")) ? (0) : ((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 147, $this->source); })())));
// line 148
echo "\t\t\t\t<div class=\"input-group\">
\t\t\t\t\t<div class=\"input-group-prepend px-3\">
\t\t\t\t\t\t<span>
\t\t\t\t\t\tShowing:
\t\t\t\t\t\t
\t\t\t\t\t\t";
// line 153
echo twig_escape_filter($this->env, (((isset($context["paging"]) || array_key_exists("paging", $context) ? $context["paging"] : (function () { throw new RuntimeError('Variable "paging" does not exist.', 153, $this->source); })()) * (isset($context["pagingSize"]) || array_key_exists("pagingSize", $context) ? $context["pagingSize"] : (function () { throw new RuntimeError('Variable "pagingSize" does not exist.', 153, $this->source); })())) + 1), "html", null, true);
echo " -
\t\t\t\t\t\t
\t\t\t\t\t\t";
// line 155
if (((isset($context["totalListings"]) || array_key_exists("totalListings", $context) ? $context["totalListings"] : (function () { throw new RuntimeError('Variable "totalListings" does not exist.', 155, $this->source); })()) < (((isset($context["paging"]) || array_key_exists("paging", $context) ? $context["paging"] : (function () { throw new RuntimeError('Variable "paging" does not exist.', 155, $this->source); })()) * (isset($context["pagingSize"]) || array_key_exists("pagingSize", $context) ? $context["pagingSize"] : (function () { throw new RuntimeError('Variable "pagingSize" does not exist.', 155, $this->source); })())) + (isset($context["pagingSize"]) || array_key_exists("pagingSize", $context) ? $context["pagingSize"] : (function () { throw new RuntimeError('Variable "pagingSize" does not exist.', 155, $this->source); })())))) {
// line 156
echo "\t\t\t\t\t\t\t";
echo twig_escape_filter($this->env, (isset($context["totalListings"]) || array_key_exists("totalListings", $context) ? $context["totalListings"] : (function () { throw new RuntimeError('Variable "totalListings" does not exist.', 156, $this->source); })()), "html", null, true);
echo "
\t\t\t\t\t\t";
} else {
// line 158
echo "\t\t\t\t\t\t\t";
echo twig_escape_filter($this->env, (((isset($context["paging"]) || array_key_exists("paging", $context) ? $context["paging"] : (function () { throw new RuntimeError('Variable "paging" does not exist.', 158, $this->source); })()) * (isset($context["pagingSize"]) || array_key_exists("pagingSize", $context) ? $context["pagingSize"] : (function () { throw new RuntimeError('Variable "pagingSize" does not exist.', 158, $this->source); })())) + (isset($context["pagingSize"]) || array_key_exists("pagingSize", $context) ? $context["pagingSize"] : (function () { throw new RuntimeError('Variable "pagingSize" does not exist.', 158, $this->source); })())), "html", null, true);
echo "
\t\t\t\t\t\t";
}
// line 160
echo "\t\t\t\t\t\t
\t\t\t\t\t\tof
\t\t\t\t\t\t
\t\t\t\t\t\t";
// line 163
echo twig_escape_filter($this->env, (isset($context["totalListings"]) || array_key_exists("totalListings", $context) ? $context["totalListings"] : (function () { throw new RuntimeError('Variable "totalListings" does not exist.', 163, $this->source); })()), "html", null, true);
echo "
\t\t\t\t\t\t</span>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"button-group input-group-append paging\">
\t\t\t\t\t\t";
// line 167
if ((0 < (isset($context["paging"]) || array_key_exists("paging", $context) ? $context["paging"] : (function () { throw new RuntimeError('Variable "paging" does not exist.', 167, $this->source); })()))) {
// line 168
echo "\t\t\t\t\t\t<button class=\"btn paging\" value=\"";
echo twig_escape_filter($this->env, ((isset($context["paging"]) || array_key_exists("paging", $context) ? $context["paging"] : (function () { throw new RuntimeError('Variable "paging" does not exist.', 168, $this->source); })()) - 1), "html", null, true);
echo "\">
\t\t\t\t\t\t\t<i class=\"fa fa-chevron-left\"></i>
\t\t\t\t\t\t</button>
\t\t\t\t\t\t";
}
// line 172
echo "\t\t\t\t\t\t";
if (((((isset($context["paging"]) || array_key_exists("paging", $context) ? $context["paging"] : (function () { throw new RuntimeError('Variable "paging" does not exist.', 172, $this->source); })()) * (isset($context["pagingSize"]) || array_key_exists("pagingSize", $context) ? $context["pagingSize"] : (function () { throw new RuntimeError('Variable "pagingSize" does not exist.', 172, $this->source); })())) + (isset($context["pagingSize"]) || array_key_exists("pagingSize", $context) ? $context["pagingSize"] : (function () { throw new RuntimeError('Variable "pagingSize" does not exist.', 172, $this->source); })())) < (isset($context["totalListings"]) || array_key_exists("totalListings", $context) ? $context["totalListings"] : (function () { throw new RuntimeError('Variable "totalListings" does not exist.', 172, $this->source); })()))) {
// line 173
echo "\t\t\t\t\t\t<button class=\"btn paging\" value=\"";
echo twig_escape_filter($this->env, ((isset($context["paging"]) || array_key_exists("paging", $context) ? $context["paging"] : (function () { throw new RuntimeError('Variable "paging" does not exist.', 173, $this->source); })()) + 1), "html", null, true);
echo "\">
\t\t\t\t\t\t\t<i class=\"fa fa-chevron-right\"></i>
\t\t\t\t\t\t</button>
\t\t\t\t\t\t";
}
// line 177
echo "\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
\t
\t";
} else {
// line 184
echo "\t
\t<div class=\"row\">
\t\t<div class=\"col-sm-12 text-center\">
\t\t\t<div class=\"alert alert-warning mb-0\"><i class=\"fa fa-exclamation-triangle\"></i> No Records Found</div>
\t\t</div>
\t</div>
\t
\t";
}
// line 192
echo "\t
\t<div class=\"row\">
\t\t<div class=\"col-sm-12\">
\t\t\t<hr style=\"margin-bottom: 0;\" />
\t\t</div>
\t</div>
\t
\t<div class=\"row\">
\t\t<div class=\"col-sm-12\">
\t\t\t";
// line 201
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["listings"]) || array_key_exists("listings", $context) ? $context["listings"] : (function () { throw new RuntimeError('Variable "listings" does not exist.', 201, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["listing"]) {
// line 202
echo "\t\t\t";
// line 203
echo "\t\t\t\t<div class=\"row classified-index-row py-1";
echo (((0 < twig_get_attribute($this->env, $this->source, $context["listing"], "getFeatured", [], "method", false, false, false, 203))) ? (" featured") : (""));
echo "\" style=\"min-height:200px;\"
\t\t\t\t\t";
// line 204
if (twig_get_attribute($this->env, $this->source, $context["listing"], "getVideoMedia", [], "method", false, false, false, 204)) {
// line 205
echo "\t\t\t\t\t\tdata-video-row=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["listing"], "getVideoMedia", [], "method", false, false, false, 205), "getId", [], "method", false, false, false, 205), "html", null, true);
echo "\"
\t\t\t\t\t";
}
// line 207
echo "\t\t\t\t>
\t\t\t\t\t
\t\t\t\t\t";
// line 209
if ((twig_get_attribute($this->env, $this->source, $context["listing"], "getFeaturedImageTag", [], "method", false, false, false, 209) || twig_get_attribute($this->env, $this->source, $context["listing"], "getVideoMediaTag", [], "method", false, false, false, 209))) {
// line 210
echo "\t\t\t\t\t\t
\t\t\t\t\t\t";
// line 211
if (twig_get_attribute($this->env, $this->source, $context["listing"], "hasVideoMedia", [], "method", false, false, false, 211)) {
// line 212
echo "\t\t\t\t\t\t\t<div class=\"col-sm-2\">
\t\t\t\t\t\t\t\t<a href=\"";
// line 213
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["listing"], "getURL", [], "method", false, false, false, 213), "html", null, true);
echo "?autoplay=1\" class=\"no-style\">
\t\t\t\t\t\t\t\t\t<div class=\"ytThumbContainer ytThumbContainer-small\">
\t\t\t\t\t\t\t\t\t\t";
// line 216
echo "\t\t\t\t\t\t\t\t\t\t";
$context["mURL"] = "";
// line 217
echo "\t\t\t\t\t\t\t\t\t\t";
if (twig_get_attribute($this->env, $this->source, $context["listing"], "getMedia", [], "method", false, false, false, 217)) {
// line 218
echo "\t\t\t\t\t\t\t\t\t\t\t";
$context["mURL"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["listing"], "getMedia", [], "method", false, false, false, 218), "getURL", [], "method", false, false, false, 218);
// line 219
echo "\t\t\t\t\t\t\t\t\t\t";
}
// line 220
echo "\t\t\t\t\t\t\t\t\t\t";
echo twig_get_attribute($this->env, $this->source, $context["listing"], "getVideoMediaTag", ["", "max-height:165px;", false, false, true, (isset($context["mURL"]) || array_key_exists("mURL", $context) ? $context["mURL"] : (function () { throw new RuntimeError('Variable "mURL" does not exist.', 220, $this->source); })())], "method", false, false, false, 220);
echo "
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t<script>
\t\t\t\t\t\t\t/*
\t\t\t\t\t\t\t\tvar video = document.querySelector(\"[data-video-mid='";
// line 227
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["listing"], "getVideoMedia", [], "method", false, false, false, 227), "getId", [], "method", false, false, false, 227), "html", null, true);
echo "']\");
\t\t\t\t\t\t\t\tvar videoDiv = document.querySelector(\"[data-video-row='";
// line 228
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["listing"], "getVideoMedia", [], "method", false, false, false, 228), "getId", [], "method", false, false, false, 228), "html", null, true);
echo "']\");
\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\tvideoDiv.addEventListener(\"mouseover\", console.log(\"test\"), true);
\t\t\t\t\t\t\t\t//videoDiv.addEventListener(\"mouseover\", video.play(), false);
\t\t\t\t\t\t\t\t//videoDiv.addEventListener(\"mouseout\", video.pause(), false);
\t\t\t\t\t\t\t*/
\t\t\t\t\t\t\t</script>
\t\t\t\t\t\t";
} else {
// line 236
echo "\t\t\t\t\t\t\t<div class=\"col-sm-2\">
\t\t\t\t\t\t\t\t<a href=\"";
// line 237
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["listing"], "getURL", [], "method", false, false, false, 237), "html", null, true);
echo "\" class=\"no-style\">
\t\t\t\t\t\t\t\t\t";
// line 238
echo twig_get_attribute($this->env, $this->source, $context["listing"], "getFeaturedImageTag", ["", "max-height:165px;"], "method", false, false, false, 238);
echo "
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
}
// line 242
echo "\t\t\t\t\t\t
\t\t\t\t\t\t<div class=\"col-sm-4\">
\t\t\t\t\t\t\t<a href=\"";
// line 244
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["listing"], "getURL", [], "method", false, false, false, 244), "html", null, true);
echo "\" class=\"no-style\">
\t\t\t\t\t\t\t\t<h4 class=\"mb-0\">";
// line 245
echo twig_get_attribute($this->env, $this->source, $context["listing"], "getTitle", [], "method", false, false, false, 245);
echo "</h4>
\t\t\t\t\t\t\t\t";
// line 246
$context["company_name"] = twig_get_attribute($this->env, $this->source, $context["listing"], "getContentMetaValueByKey", ["_company_name"], "method", false, false, false, 246);
// line 247
echo "\t\t\t\t\t\t\t\t";
if ( !twig_test_empty((isset($context["company_name"]) || array_key_exists("company_name", $context) ? $context["company_name"] : (function () { throw new RuntimeError('Variable "company_name" does not exist.', 247, $this->source); })()))) {
// line 248
echo "\t\t\t\t\t\t\t\t\t<p>";
echo (isset($context["company_name"]) || array_key_exists("company_name", $context) ? $context["company_name"] : (function () { throw new RuntimeError('Variable "company_name" does not exist.', 248, $this->source); })());
echo "</p>
\t\t\t\t\t\t\t\t";
}
// line 250
echo "\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"col-sm-3\">
\t\t\t\t\t\t\t<a href=\"";
// line 253
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["listing"], "getURL", [], "method", false, false, false, 253), "html", null, true);
echo "\" class=\"no-style\">
\t\t\t\t\t\t\t\t";
// line 254
$context["jobLocation"] = twig_get_attribute($this->env, $this->source, $context["listing"], "getContentMetaByKey", ["_job_location"], "method", false, false, false, 254);
// line 255
echo "\t\t\t\t\t\t\t\t";
(((isset($context["jobLocation"]) || array_key_exists("jobLocation", $context) ? $context["jobLocation"] : (function () { throw new RuntimeError('Variable "jobLocation" does not exist.', 255, $this->source); })())) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["jobLocation"]) || array_key_exists("jobLocation", $context) ? $context["jobLocation"] : (function () { throw new RuntimeError('Variable "jobLocation" does not exist.', 255, $this->source); })()), "getMetaValue", [], "method", false, false, false, 255), "html", null, true))) : (print ("")));
echo "
\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t</div>
\t\t\t\t\t";
} else {
// line 259
echo "\t\t\t\t\t\t<div class=\"col-sm-6\">
\t\t\t\t\t\t\t<a href=\"";
// line 260
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["listing"], "getURL", [], "method", false, false, false, 260), "html", null, true);
echo "\" class=\"no-style\">
\t\t\t\t\t\t\t\t<h4 class=\"mb-0\">";
// line 261
echo twig_get_attribute($this->env, $this->source, $context["listing"], "getTitle", [], "method", false, false, false, 261);
echo "</h4>
\t\t\t\t\t\t\t\t<p>";
// line 262
echo twig_get_attribute($this->env, $this->source, $context["listing"], "getContentMetaValueByKey", ["_company_name"], "method", false, false, false, 262);
echo "</p>
\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"col-sm-3\">
\t\t\t\t\t\t\t<a href=\"";
// line 266
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["listing"], "getURL", [], "method", false, false, false, 266), "html", null, true);
echo "\" class=\"no-style\">
\t\t\t\t\t\t\t\t";
// line 267
$context["jobLocation"] = twig_get_attribute($this->env, $this->source, $context["listing"], "getContentMetaByKey", ["_job_location"], "method", false, false, false, 267);
// line 268
echo "\t\t\t\t\t\t\t\t";
(((isset($context["jobLocation"]) || array_key_exists("jobLocation", $context) ? $context["jobLocation"] : (function () { throw new RuntimeError('Variable "jobLocation" does not exist.', 268, $this->source); })())) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["jobLocation"]) || array_key_exists("jobLocation", $context) ? $context["jobLocation"] : (function () { throw new RuntimeError('Variable "jobLocation" does not exist.', 268, $this->source); })()), "getMetaValue", [], "method", false, false, false, 268), "html", null, true))) : (print ("")));
echo "
\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t</div>
\t\t\t\t\t";
}
// line 272
echo "\t\t\t\t\t<div class=\"col-sm-3\">
\t\t\t\t\t\t<a href=\"";
// line 273
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["listing"], "getURL", [], "method", false, false, false, 273), "html", null, true);
echo "\" class=\"no-style\">
\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t";
// line 275
$context["jobType"] = twig_get_attribute($this->env, $this->source, $context["listing"], "getSecondaryCategoriesByTaxonomy", ["job_listing_type"], "method", false, false, false, 275);
// line 276
echo "\t\t\t\t\t\t\t\t";
if ((1 < twig_length_filter($this->env, (isset($context["jobType"]) || array_key_exists("jobType", $context) ? $context["jobType"] : (function () { throw new RuntimeError('Variable "jobType" does not exist.', 276, $this->source); })())))) {
// line 277
echo "\t\t\t\t\t\t\t\t\t<strong>Multiple</strong>
\t\t\t\t\t\t\t\t";
} else {
// line 279
echo "\t\t\t\t\t\t\t\t\t";
if (twig_get_attribute($this->env, $this->source, (isset($context["jobType"]) || array_key_exists("jobType", $context) ? $context["jobType"] : (function () { throw new RuntimeError('Variable "jobType" does not exist.', 279, $this->source); })()), "first", [], "method", false, false, false, 279)) {
// line 280
echo "\t\t\t\t\t\t\t\t\t\t<strong>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["jobType"]) || array_key_exists("jobType", $context) ? $context["jobType"] : (function () { throw new RuntimeError('Variable "jobType" does not exist.', 280, $this->source); })()), "first", [], "method", false, false, false, 280), "getTitle", [], "method", false, false, false, 280), "html", null, true);
echo "</strong>
\t\t\t\t\t\t\t\t\t";
}
// line 282
echo "\t\t\t\t\t\t\t\t";
}
// line 283
echo "\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t";
// line 284
echo twig_escape_filter($this->env, $this->extensions['App\Twig\RCSExtension']->post_age_format(twig_get_attribute($this->env, $this->source, twig_date_converter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["listing"], "getPublishedAt", [], "method", false, false, false, 284))), "diff", [twig_date_converter($this->env, "now")], "method", false, false, false, 284)), "html", null, true);
echo "
\t\t\t\t\t\t</a>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t";
// line 289
echo "\t\t\t<hr class=\"m-0\" />
\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['listing'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 291
echo "\t\t</div>
\t\t
\t</div>
\t
\t
\t";
// line 296
if ((isset($context["totalListings"]) || array_key_exists("totalListings", $context) ? $context["totalListings"] : (function () { throw new RuntimeError('Variable "totalListings" does not exist.', 296, $this->source); })())) {
// line 297
echo "\t<div class=\"row\">
\t\t<div class=\"col-sm-12\">
\t\t\t<div class=\"pagination float-right\">
\t\t\t\t";
// line 300
$context["paging"] = ((((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 300, $this->source); })()) == "_")) ? (0) : ((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 300, $this->source); })())));
// line 301
echo "\t\t\t\t<div class=\"input-group\">
\t\t\t\t\t<div class=\"input-group-prepend px-3\">
\t\t\t\t\t\t<span>
\t\t\t\t\t\tShowing:
\t\t\t\t\t\t
\t\t\t\t\t\t";
// line 306
echo twig_escape_filter($this->env, (((isset($context["paging"]) || array_key_exists("paging", $context) ? $context["paging"] : (function () { throw new RuntimeError('Variable "paging" does not exist.', 306, $this->source); })()) * (isset($context["pagingSize"]) || array_key_exists("pagingSize", $context) ? $context["pagingSize"] : (function () { throw new RuntimeError('Variable "pagingSize" does not exist.', 306, $this->source); })())) + 1), "html", null, true);
echo " -
\t\t\t\t\t\t
\t\t\t\t\t\t";
// line 308
if (((isset($context["totalListings"]) || array_key_exists("totalListings", $context) ? $context["totalListings"] : (function () { throw new RuntimeError('Variable "totalListings" does not exist.', 308, $this->source); })()) < (((isset($context["paging"]) || array_key_exists("paging", $context) ? $context["paging"] : (function () { throw new RuntimeError('Variable "paging" does not exist.', 308, $this->source); })()) * (isset($context["pagingSize"]) || array_key_exists("pagingSize", $context) ? $context["pagingSize"] : (function () { throw new RuntimeError('Variable "pagingSize" does not exist.', 308, $this->source); })())) + (isset($context["pagingSize"]) || array_key_exists("pagingSize", $context) ? $context["pagingSize"] : (function () { throw new RuntimeError('Variable "pagingSize" does not exist.', 308, $this->source); })())))) {
// line 309
echo "\t\t\t\t\t\t\t";
echo twig_escape_filter($this->env, (isset($context["totalListings"]) || array_key_exists("totalListings", $context) ? $context["totalListings"] : (function () { throw new RuntimeError('Variable "totalListings" does not exist.', 309, $this->source); })()), "html", null, true);
echo "
\t\t\t\t\t\t";
} else {
// line 311
echo "\t\t\t\t\t\t\t";
echo twig_escape_filter($this->env, (((isset($context["paging"]) || array_key_exists("paging", $context) ? $context["paging"] : (function () { throw new RuntimeError('Variable "paging" does not exist.', 311, $this->source); })()) * (isset($context["pagingSize"]) || array_key_exists("pagingSize", $context) ? $context["pagingSize"] : (function () { throw new RuntimeError('Variable "pagingSize" does not exist.', 311, $this->source); })())) + (isset($context["pagingSize"]) || array_key_exists("pagingSize", $context) ? $context["pagingSize"] : (function () { throw new RuntimeError('Variable "pagingSize" does not exist.', 311, $this->source); })())), "html", null, true);
echo "
\t\t\t\t\t\t";
}
// line 313
echo "\t\t\t\t\t\t
\t\t\t\t\t\tof
\t\t\t\t\t\t
\t\t\t\t\t\t";
// line 316
echo twig_escape_filter($this->env, (isset($context["totalListings"]) || array_key_exists("totalListings", $context) ? $context["totalListings"] : (function () { throw new RuntimeError('Variable "totalListings" does not exist.', 316, $this->source); })()), "html", null, true);
echo "
\t\t\t\t\t\t</span>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"button-group input-group-append paging\">
\t\t\t\t\t\t";
// line 320
if ((0 < (isset($context["paging"]) || array_key_exists("paging", $context) ? $context["paging"] : (function () { throw new RuntimeError('Variable "paging" does not exist.', 320, $this->source); })()))) {
// line 321
echo "\t\t\t\t\t\t<button class=\"btn paging\" value=\"";
echo twig_escape_filter($this->env, ((isset($context["paging"]) || array_key_exists("paging", $context) ? $context["paging"] : (function () { throw new RuntimeError('Variable "paging" does not exist.', 321, $this->source); })()) - 1), "html", null, true);
echo "\">
\t\t\t\t\t\t\t<i class=\"fa fa-chevron-left\"></i>
\t\t\t\t\t\t</button>
\t\t\t\t\t\t";
}
// line 325
echo "\t\t\t\t\t\t";
if (((((isset($context["paging"]) || array_key_exists("paging", $context) ? $context["paging"] : (function () { throw new RuntimeError('Variable "paging" does not exist.', 325, $this->source); })()) * (isset($context["pagingSize"]) || array_key_exists("pagingSize", $context) ? $context["pagingSize"] : (function () { throw new RuntimeError('Variable "pagingSize" does not exist.', 325, $this->source); })())) + (isset($context["pagingSize"]) || array_key_exists("pagingSize", $context) ? $context["pagingSize"] : (function () { throw new RuntimeError('Variable "pagingSize" does not exist.', 325, $this->source); })())) < (isset($context["totalListings"]) || array_key_exists("totalListings", $context) ? $context["totalListings"] : (function () { throw new RuntimeError('Variable "totalListings" does not exist.', 325, $this->source); })()))) {
// line 326
echo "\t\t\t\t\t\t<button class=\"btn paging\" value=\"";
echo twig_escape_filter($this->env, ((isset($context["paging"]) || array_key_exists("paging", $context) ? $context["paging"] : (function () { throw new RuntimeError('Variable "paging" does not exist.', 326, $this->source); })()) + 1), "html", null, true);
echo "\">
\t\t\t\t\t\t\t<i class=\"fa fa-chevron-right\"></i>
\t\t\t\t\t\t</button>
\t\t\t\t\t\t";
}
// line 330
echo "\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
\t";
}
// line 336
echo "\t
\t
\t</form>
\t
\t
<script>
\t(function(\$){
\t\t\$(function(){
\t\t\t
\t\t\t\$('[data-video-row]').each(function() {
\t\t\t\t//\$video = \$(this).find('video').first();
\t\t\t\t\$(this).on('mouseover', function() {
\t\t\t\t\t\$(this).find('video').first()[0].play();
\t\t\t\t\t\$(this).find('.ytThumbContainer').first().stop(true,true).addClass('ytThumbContainer-playing', 500);
\t\t\t\t\t//console.log(\$video);
\t\t\t\t\t//console.log(\$(this).attr(\"data-video-row\"));
\t\t\t\t});
\t\t\t\t
\t\t\t\t\$(this).on('mouseleave', function() {
\t\t\t\t\t//\$(this).find('video').first()[0].pause();
\t\t\t\t\t//\$(this).find('video').first()[0].currentTime=0;
\t\t\t\t\t\$(this).find('video').first()[0].load();
\t\t\t\t\t\$(this).find('.ytThumbContainer').first().stop(true,true).removeClass('ytThumbContainer-playing', 100);
\t\t\t\t});
\t\t\t});
\t\t\t\t
\t\t\t/*\t
\t\t\t
\t\t\t
\t\t\t\$('#user-dashboard-container').on('click', '#addNote', function() {
\t\t\t\t\$(\"#contactNotes\").append(noteHtml.join(''));
\t\t\t\t\$(\"#updateNotes\").show();
\t\t\t});
\t\t\t
\t\t\t\$('#user-dashboard-container').on('click', '.deleteNote', function() {
\t\t\t\t\$(this).parent().parent().remove();
\t\t\t});
\t\t\t*/
\t\t\t
\t\t});
\t}(jQuery));
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 382
public function block_sidebar($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", "sidebar"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sidebar"));
// line 383
echo "\t";
$this->loadTemplate("includes/sidebar.html.twig", "content/classified-index.html.twig", 383)->display($context);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "content/classified-index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 1219 => 383, 1209 => 382, 1154 => 336, 1146 => 330, 1138 => 326, 1135 => 325, 1127 => 321, 1125 => 320, 1118 => 316, 1113 => 313, 1107 => 311, 1101 => 309, 1099 => 308, 1094 => 306, 1087 => 301, 1085 => 300, 1080 => 297, 1078 => 296, 1071 => 291, 1064 => 289, 1057 => 284, 1054 => 283, 1051 => 282, 1045 => 280, 1042 => 279, 1038 => 277, 1035 => 276, 1033 => 275, 1028 => 273, 1025 => 272, 1017 => 268, 1015 => 267, 1011 => 266, 1004 => 262, 1000 => 261, 996 => 260, 993 => 259, 985 => 255, 983 => 254, 979 => 253, 974 => 250, 968 => 248, 965 => 247, 963 => 246, 959 => 245, 955 => 244, 951 => 242, 944 => 238, 940 => 237, 937 => 236, 926 => 228, 922 => 227, 911 => 220, 908 => 219, 905 => 218, 902 => 217, 899 => 216, 894 => 213, 891 => 212, 889 => 211, 886 => 210, 884 => 209, 880 => 207, 874 => 205, 872 => 204, 867 => 203, 865 => 202, 861 => 201, 850 => 192, 840 => 184, 831 => 177, 823 => 173, 820 => 172, 812 => 168, 810 => 167, 803 => 163, 798 => 160, 792 => 158, 786 => 156, 784 => 155, 779 => 153, 772 => 148, 770 => 147, 765 => 144, 763 => 143, 750 => 132, 746 => 122, 740 => 121, 733 => 118, 729 => 116, 727 => 115, 723 => 114, 719 => 113, 713 => 109, 710 => 108, 706 => 107, 699 => 102, 693 => 101, 686 => 98, 682 => 96, 680 => 95, 676 => 94, 672 => 93, 666 => 89, 663 => 88, 659 => 87, 650 => 80, 641 => 78, 637 => 76, 635 => 75, 631 => 74, 628 => 73, 624 => 72, 614 => 65, 602 => 56, 586 => 43, 580 => 39, 570 => 26, 568 => 20, 566 => 19, 556 => 11, 553 => 10, 550 => 9, 547 => 8, 544 => 7, 541 => 6, 531 => 5, 71 => 4, 68 => 3, 58 => 2, 35 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"base.html.twig\" %}
{% block body %}
{% embed \"1-col-sidebar.html.twig\" %}
{% block column %}
\t\t{% if site_code == constant(\"App\\\\Entity\\\\Content::SITE_RCS\") %}
\t\t\t{% include \"includes/curtain-ads/classified.html.twig\" %}
\t\t{% elseif site_code == constant(\"App\\\\Entity\\\\Content::SITE_MCS\") %}
\t\t\t{% include \"includes/curtain-ads/classified-mcs.html.twig\" %}
\t\t{% endif %}
\t<div class=\"row\">
\t\t<div class=\"col-12\">
\t\t\t<h1>Classifieds By Region</h1>
\t\t</div>
\t</div>
\t<div class=\"row\">
\t\t<div class=\"col-md-12\" style=\"text-align: center; padding-top: 10px;\">
\t\t\t{% include \"includes/classified-image-map.html.twig\" %}
\t\t\t{#<img
\t\t\t\tsrc=\"/assets/img/classified-image-map.png\"
\t\t\t\talt=\"Classified Listings\"
\t\t\t\tclass=\"d-block mx-auto\"
\t\t\t\tloading='lazy'
\t\t\t/>#}
\t\t</div>
\t</div>
\t<div class=\"row\">
\t\t<div class=\"col-sm-12\">
\t\t\t<h2>Classified Listings</h2>
\t\t</div>
\t\t{#
\t\t<div class=\"col-sm-6\">
\t\t\t<a href=\"/classified-policy\" class=\"float-right\">Read our Classified Policy</a>
\t\t</div>
\t\t#}
\t</div>
\t
\t<form id=\"classified-sort\">
\t<input type=\"hidden\" name=\"page\" id=\"page\" />
\t<input type=\"hidden\" name=\"group\" value=\"{{ group }}\" />
\t
\t<div class=\"row\">
\t\t<div class=\"col-sm-12\">
\t\t\t
\t\t\t<div class=\"grey-block mb-3 search-classifieds\">
\t\t\t\t<div class=\"row mb-3\">
\t\t\t\t\t<div class=\"col-sm-6\">
\t\t\t\t\t\t<input
\t\t\t\t\t\t\ttype=\"text\"
\t\t\t\t\t\t\tclass=\"form-control\"
\t\t\t\t\t\t\tplaceholder=\"Keywords & Trade Names\"
\t\t\t\t\t\t\tname=\"keywords\"
\t\t\t\t\t\t\tvalue=\"{{ keywords }}\"
\t\t\t\t\t\t/>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"col-sm-6\">
\t\t\t\t\t\t<input
\t\t\t\t\t\t\ttype=\"text\"
\t\t\t\t\t\t\tclass=\"form-control\"
\t\t\t\t\t\t\tplaceholder=\"Location\"
\t\t\t\t\t\t\tname=\"location\"
\t\t\t\t\t\t\tvalue=\"{{ location }}\"
\t\t\t\t\t\t/>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t
\t\t\t\t<select name=\"category\" class=\"form-control\">
\t\t\t\t\t<option value=\"\">-- Choose a Category --</option>
\t\t\t\t\t{% for cat in listingCategories %}
\t\t\t\t\t\t<option
\t\t\t\t\t\t\tvalue=\"{{ cat.getId() }}\"
\t\t\t\t\t\t\t{% if cat.getId() == category %}
\t\t\t\t\t\t\t\tselected
\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t>{{ cat.getTitle() }}</option>
\t\t\t\t\t{% endfor %}
\t\t\t\t</select>
\t\t\t</div>
\t\t\t
\t\t\t<div class=\"row classifieds-locale\">
\t\t\t\t<div class=\"col-sm-12 listing-country listing-canada\">
\t\t\t\t\t<b>Canada</b>
\t\t\t\t\t<ul class=\"nav\">
\t\t\t\t\t\t{% for area in listingAreas %}
\t\t\t\t\t\t{% if 'Canada' in area.getTitle() %}
\t\t\t\t\t\t<li class=\"mr-3\">
\t\t\t\t\t\t\t<label><input
\t\t\t\t\t\t\t\ttype=\"checkbox\"
\t\t\t\t\t\t\t\tname=\"area[]\"
\t\t\t\t\t\t\t\tvalue=\"{{ area.getId() }}\"
\t\t\t\t\t\t\t\tid=\"{{ area.getTitle()|trim('Canada: ', 'left')|replace({' ': '', ',': ''}) }}\"
\t\t\t\t\t\t\t\t{% if area.getId() in areas %}
\t\t\t\t\t\t\t\t\tchecked
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t/> {{ area.getTitle()|trim('Canada: ', 'left') }}</label>
\t\t\t\t\t\t</li>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t</ul>
\t\t\t\t</div>
\t\t\t\t<div class=\"col-sm-12 listing-country listing-us\">
\t\t\t\t\t<b>United States</b>
\t\t\t\t\t<ul class=\"nav\">
\t\t\t\t\t\t{% for area in listingAreas %}
\t\t\t\t\t\t{% if 'Canada' not in area.getTitle() %}
\t\t\t\t\t\t<li class=\"mr-3\">
\t\t\t\t\t\t\t<label><input
\t\t\t\t\t\t\t\ttype=\"checkbox\"
\t\t\t\t\t\t\t\tname=\"area[]\"
\t\t\t\t\t\t\t\tvalue=\"{{ area.getId() }}\"
\t\t\t\t\t\t\t\tid=\"{{ area.getTitle() }}\"
\t\t\t\t\t\t\t\t{% if area.getId() in areas %}
\t\t\t\t\t\t\t\t\tchecked
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t/> {{ area.getTitle() }}</label>
\t\t\t\t\t\t</li>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t</ul>
\t\t\t\t</div>
\t\t\t\t{#
\t\t\t\t<div class=\"col-sm-4\">
\t\t\t\t\t<button
\t\t\t\t\t\tclass=\"btn btn-block btn-primary float-right\"
\t\t\t\t\t\ttype=\"submit\"
\t\t\t\t\t><i class=\"fa fa-search\"></i> Search Listings</button>
\t\t\t\t</div>
\t\t\t\t#}
\t\t\t</div>
\t\t\t\t
\t\t</div>
\t</div>
\t
\t<div class=\"row\">
\t\t<div class=\"col-sm-12 mt-3\">
\t\t\t<hr />
\t\t</div>
\t</div>
\t
\t{% if totalListings %}
\t<div class=\"row\">
\t\t<div class=\"col-sm-12\">
\t\t\t<div class=\"pagination float-right\">
\t\t\t\t{% set paging = (page == \"_\") ? 0 : page %}
\t\t\t\t<div class=\"input-group\">
\t\t\t\t\t<div class=\"input-group-prepend px-3\">
\t\t\t\t\t\t<span>
\t\t\t\t\t\tShowing:
\t\t\t\t\t\t
\t\t\t\t\t\t{{ paging * pagingSize + 1 }} -
\t\t\t\t\t\t
\t\t\t\t\t\t{% if totalListings < (paging * pagingSize + pagingSize) %}
\t\t\t\t\t\t\t{{ totalListings }}
\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t{{ paging * pagingSize + pagingSize }}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t
\t\t\t\t\t\tof
\t\t\t\t\t\t
\t\t\t\t\t\t{{ totalListings }}
\t\t\t\t\t\t</span>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"button-group input-group-append paging\">
\t\t\t\t\t\t{% if 0 < paging %}
\t\t\t\t\t\t<button class=\"btn paging\" value=\"{{ paging - 1 }}\">
\t\t\t\t\t\t\t<i class=\"fa fa-chevron-left\"></i>
\t\t\t\t\t\t</button>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% if (paging * pagingSize + pagingSize) < totalListings %}
\t\t\t\t\t\t<button class=\"btn paging\" value=\"{{ paging + 1 }}\">
\t\t\t\t\t\t\t<i class=\"fa fa-chevron-right\"></i>
\t\t\t\t\t\t</button>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
\t
\t{% else %}
\t
\t<div class=\"row\">
\t\t<div class=\"col-sm-12 text-center\">
\t\t\t<div class=\"alert alert-warning mb-0\"><i class=\"fa fa-exclamation-triangle\"></i> No Records Found</div>
\t\t</div>
\t</div>
\t
\t{% endif %}
\t
\t<div class=\"row\">
\t\t<div class=\"col-sm-12\">
\t\t\t<hr style=\"margin-bottom: 0;\" />
\t\t</div>
\t</div>
\t
\t<div class=\"row\">
\t\t<div class=\"col-sm-12\">
\t\t\t{% for listing in listings %}
\t\t\t{#<a href=\"{{ listing.getURL() }}\" class=\"no-style\">#}
\t\t\t\t<div class=\"row classified-index-row py-1{{ 0 < listing.getFeatured() ? ' featured' : '' }}\" style=\"min-height:200px;\"
\t\t\t\t\t{% if listing.getVideoMedia() %}
\t\t\t\t\t\tdata-video-row=\"{{listing.getVideoMedia().getId()}}\"
\t\t\t\t\t{% endif %}
\t\t\t\t>
\t\t\t\t\t
\t\t\t\t\t{% if listing.getFeaturedImageTag() or listing.getVideoMediaTag() %}
\t\t\t\t\t\t
\t\t\t\t\t\t{% if listing.hasVideoMedia() %}
\t\t\t\t\t\t\t<div class=\"col-sm-2\">
\t\t\t\t\t\t\t\t<a href=\"{{ listing.getURL() }}?autoplay=1\" class=\"no-style\">
\t\t\t\t\t\t\t\t\t<div class=\"ytThumbContainer ytThumbContainer-small\">
\t\t\t\t\t\t\t\t\t\t{#{{ listing.getFeaturedImageTag(\"ytThumbnail\",\"\")|raw }}#}
\t\t\t\t\t\t\t\t\t\t{% set mURL = \"\" %}
\t\t\t\t\t\t\t\t\t\t{% if listing.getMedia() %}
\t\t\t\t\t\t\t\t\t\t\t{% set mURL = listing.getMedia().getURL() %}
\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t{{ listing.getVideoMediaTag(\"\",\"max-height:165px;\", false, false, true, mURL)|raw }}
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t<script>
\t\t\t\t\t\t\t/*
\t\t\t\t\t\t\t\tvar video = document.querySelector(\"[data-video-mid='{{listing.getVideoMedia().getId()}}']\");
\t\t\t\t\t\t\t\tvar videoDiv = document.querySelector(\"[data-video-row='{{listing.getVideoMedia().getId()}}']\");
\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\tvideoDiv.addEventListener(\"mouseover\", console.log(\"test\"), true);
\t\t\t\t\t\t\t\t//videoDiv.addEventListener(\"mouseover\", video.play(), false);
\t\t\t\t\t\t\t\t//videoDiv.addEventListener(\"mouseout\", video.pause(), false);
\t\t\t\t\t\t\t*/
\t\t\t\t\t\t\t</script>
\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t<div class=\"col-sm-2\">
\t\t\t\t\t\t\t\t<a href=\"{{ listing.getURL() }}\" class=\"no-style\">
\t\t\t\t\t\t\t\t\t{{ listing.getFeaturedImageTag(\"\",\"max-height:165px;\")|raw }}
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t
\t\t\t\t\t\t<div class=\"col-sm-4\">
\t\t\t\t\t\t\t<a href=\"{{ listing.getURL() }}\" class=\"no-style\">
\t\t\t\t\t\t\t\t<h4 class=\"mb-0\">{{ listing.getTitle() | raw }}</h4>
\t\t\t\t\t\t\t\t{% set company_name = listing.getContentMetaValueByKey(\"_company_name\") %}
\t\t\t\t\t\t\t\t{% if company_name is not empty %}
\t\t\t\t\t\t\t\t\t<p>{{ company_name | raw }}</p>
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"col-sm-3\">
\t\t\t\t\t\t\t<a href=\"{{ listing.getURL() }}\" class=\"no-style\">
\t\t\t\t\t\t\t\t{% set jobLocation = listing.getContentMetaByKey(\"_job_location\") %}
\t\t\t\t\t\t\t\t{{ jobLocation ? jobLocation.getMetaValue() : \"\" }}
\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t</div>
\t\t\t\t\t{% else %}
\t\t\t\t\t\t<div class=\"col-sm-6\">
\t\t\t\t\t\t\t<a href=\"{{ listing.getURL() }}\" class=\"no-style\">
\t\t\t\t\t\t\t\t<h4 class=\"mb-0\">{{ listing.getTitle() | raw }}</h4>
\t\t\t\t\t\t\t\t<p>{{ listing.getContentMetaValueByKey(\"_company_name\") | raw }}</p>
\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"col-sm-3\">
\t\t\t\t\t\t\t<a href=\"{{ listing.getURL() }}\" class=\"no-style\">
\t\t\t\t\t\t\t\t{% set jobLocation = listing.getContentMetaByKey(\"_job_location\") %}
\t\t\t\t\t\t\t\t{{ jobLocation ? jobLocation.getMetaValue() : \"\" }}
\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t</div>
\t\t\t\t\t{% endif %}
\t\t\t\t\t<div class=\"col-sm-3\">
\t\t\t\t\t\t<a href=\"{{ listing.getURL() }}\" class=\"no-style\">
\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t{% set jobType = listing.getSecondaryCategoriesByTaxonomy(\"job_listing_type\") %}
\t\t\t\t\t\t\t\t{% if 1 < jobType | length %}
\t\t\t\t\t\t\t\t\t<strong>Multiple</strong>
\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t{% if jobType.first() %}
\t\t\t\t\t\t\t\t\t\t<strong>{{ jobType.first().getTitle() }}</strong>
\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t{{ post_age_format(date(listing.getPublishedAt()|date).diff(date(\"now\"))) }}
\t\t\t\t\t\t</a>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t{#</a>#}
\t\t\t<hr class=\"m-0\" />
\t\t\t{% endfor %}
\t\t</div>
\t\t
\t</div>
\t
\t
\t{% if totalListings %}
\t<div class=\"row\">
\t\t<div class=\"col-sm-12\">
\t\t\t<div class=\"pagination float-right\">
\t\t\t\t{% set paging = (page == \"_\") ? 0 : page %}
\t\t\t\t<div class=\"input-group\">
\t\t\t\t\t<div class=\"input-group-prepend px-3\">
\t\t\t\t\t\t<span>
\t\t\t\t\t\tShowing:
\t\t\t\t\t\t
\t\t\t\t\t\t{{ paging * pagingSize + 1 }} -
\t\t\t\t\t\t
\t\t\t\t\t\t{% if totalListings < (paging * pagingSize + pagingSize) %}
\t\t\t\t\t\t\t{{ totalListings }}
\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t{{ paging * pagingSize + pagingSize }}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t
\t\t\t\t\t\tof
\t\t\t\t\t\t
\t\t\t\t\t\t{{ totalListings }}
\t\t\t\t\t\t</span>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"button-group input-group-append paging\">
\t\t\t\t\t\t{% if 0 < paging %}
\t\t\t\t\t\t<button class=\"btn paging\" value=\"{{ paging - 1 }}\">
\t\t\t\t\t\t\t<i class=\"fa fa-chevron-left\"></i>
\t\t\t\t\t\t</button>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% if (paging * pagingSize + pagingSize) < totalListings %}
\t\t\t\t\t\t<button class=\"btn paging\" value=\"{{ paging + 1 }}\">
\t\t\t\t\t\t\t<i class=\"fa fa-chevron-right\"></i>
\t\t\t\t\t\t</button>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
\t{% endif %}
\t
\t
\t</form>
\t
\t
<script>
\t(function(\$){
\t\t\$(function(){
\t\t\t
\t\t\t\$('[data-video-row]').each(function() {
\t\t\t\t//\$video = \$(this).find('video').first();
\t\t\t\t\$(this).on('mouseover', function() {
\t\t\t\t\t\$(this).find('video').first()[0].play();
\t\t\t\t\t\$(this).find('.ytThumbContainer').first().stop(true,true).addClass('ytThumbContainer-playing', 500);
\t\t\t\t\t//console.log(\$video);
\t\t\t\t\t//console.log(\$(this).attr(\"data-video-row\"));
\t\t\t\t});
\t\t\t\t
\t\t\t\t\$(this).on('mouseleave', function() {
\t\t\t\t\t//\$(this).find('video').first()[0].pause();
\t\t\t\t\t//\$(this).find('video').first()[0].currentTime=0;
\t\t\t\t\t\$(this).find('video').first()[0].load();
\t\t\t\t\t\$(this).find('.ytThumbContainer').first().stop(true,true).removeClass('ytThumbContainer-playing', 100);
\t\t\t\t});
\t\t\t});
\t\t\t\t
\t\t\t/*\t
\t\t\t
\t\t\t
\t\t\t\$('#user-dashboard-container').on('click', '#addNote', function() {
\t\t\t\t\$(\"#contactNotes\").append(noteHtml.join(''));
\t\t\t\t\$(\"#updateNotes\").show();
\t\t\t});
\t\t\t
\t\t\t\$('#user-dashboard-container').on('click', '.deleteNote', function() {
\t\t\t\t\$(this).parent().parent().remove();
\t\t\t});
\t\t\t*/
\t\t\t
\t\t});
\t}(jQuery));
</script>
{% endblock %}
{% block sidebar %}
\t{% include \"includes/sidebar.html.twig\" %}
{% endblock %}
{% endembed %}
{% endblock %}", "content/classified-index.html.twig", "/var/www/vhosts/rooferscoffeeshop.com/staging.rooferscoffeeshop.com/rcs-website/templates/content/classified-index.html.twig");
}
}