var/cache/dev/twig/13/1360f1d8f852ffc6652500705322a3c5.php line 38

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* content/classified-index.html.twig */
  14. class __TwigTemplate_7ac4118650a235c357b98ca7d6aac503 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.             'body' => [$this'block_body'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "base.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/classified-index.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/classified-index.html.twig"));
  38.         $this->parent $this->loadTemplate("base.html.twig""content/classified-index.html.twig"1);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  42.         
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  44.     }
  45.     // line 2
  46.     public function block_body($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""body"));
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  53.         // line 3
  54.         echo "
  55. ";
  56.         // line 4
  57.         $this->loadTemplate("content/classified-index.html.twig""content/classified-index.html.twig"4"1649723959")->display($context);
  58.         
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  60.         
  61.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  62.     }
  63.     public function getTemplateName()
  64.     {
  65.         return "content/classified-index.html.twig";
  66.     }
  67.     public function isTraitable()
  68.     {
  69.         return false;
  70.     }
  71.     public function getDebugInfo()
  72.     {
  73.         return array (  71 => 4,  68 => 3,  58 => 2,  35 => 1,);
  74.     }
  75.     public function getSourceContext()
  76.     {
  77.         return new Source("{% extends \"base.html.twig\" %}
  78. {% block body %}
  79. {% embed \"1-col-sidebar.html.twig\" %}
  80. {% block column %}
  81. \t\t{% if site_code == constant(\"App\\\\Entity\\\\Content::SITE_RCS\") %}
  82. \t\t\t{% include  \"includes/curtain-ads/classified.html.twig\" %}
  83. \t\t{% elseif site_code == constant(\"App\\\\Entity\\\\Content::SITE_MCS\") %}
  84. \t\t\t{% include  \"includes/curtain-ads/classified-mcs.html.twig\" %}
  85. \t\t{% endif %}
  86. \t<div class=\"row\">
  87. \t\t<div class=\"col-12\">
  88. \t\t\t<h1>Classifieds By Region</h1>
  89. \t\t</div>
  90. \t</div>
  91. \t<div class=\"row\">
  92. \t\t<div class=\"col-md-12\" style=\"text-align: center; padding-top: 10px;\">
  93. \t\t\t{% include \"includes/classified-image-map.html.twig\" %}
  94. \t\t\t{#<img 
  95. \t\t\t\tsrc=\"/assets/img/classified-image-map.png\"
  96. \t\t\t\talt=\"Classified Listings\"
  97. \t\t\t\tclass=\"d-block mx-auto\"
  98. \t\t\t\tloading='lazy'
  99. \t\t\t/>#}
  100. \t\t</div>
  101. \t</div>
  102. \t<div class=\"row\">
  103. \t\t<div class=\"col-sm-12\">
  104. \t\t\t<h2>Classified Listings</h2>
  105. \t\t</div>
  106. \t\t{#
  107. \t\t<div class=\"col-sm-6\">
  108. \t\t\t<a href=\"/classified-policy\" class=\"float-right\">Read our Classified Policy</a>
  109. \t\t</div>
  110. \t\t#}
  111. \t</div>
  112. \t
  113. \t<form id=\"classified-sort\">
  114. \t<input type=\"hidden\" name=\"page\" id=\"page\" /> 
  115. \t<input type=\"hidden\" name=\"group\" value=\"{{ group }}\" />          
  116. \t
  117. \t<div class=\"row\">
  118. \t\t<div class=\"col-sm-12\">
  119. \t\t\t
  120. \t\t\t<div class=\"grey-block mb-3 search-classifieds\">
  121. \t\t\t\t<div class=\"row mb-3\">
  122. \t\t\t\t\t<div class=\"col-sm-6\">
  123. \t\t\t\t\t\t<input
  124. \t\t\t\t\t\t\ttype=\"text\"
  125. \t\t\t\t\t\t\tclass=\"form-control\"
  126. \t\t\t\t\t\t\tplaceholder=\"Keywords &amp; Trade Names\"
  127. \t\t\t\t\t\t\tname=\"keywords\"
  128. \t\t\t\t\t\t\tvalue=\"{{ keywords }}\"
  129. \t\t\t\t\t\t/>
  130. \t\t\t\t\t</div>
  131. \t\t\t\t\t<div class=\"col-sm-6\">
  132. \t\t\t\t\t\t<input
  133. \t\t\t\t\t\t\ttype=\"text\"
  134. \t\t\t\t\t\t\tclass=\"form-control\"
  135. \t\t\t\t\t\t\tplaceholder=\"Location\"
  136. \t\t\t\t\t\t\tname=\"location\"
  137. \t\t\t\t\t\t\tvalue=\"{{ location }}\"
  138. \t\t\t\t\t\t/>
  139. \t\t\t\t\t</div>
  140. \t\t\t\t</div>
  141. \t\t\t\t
  142. \t\t\t\t<select name=\"category\" class=\"form-control\">
  143. \t\t\t\t\t<option value=\"\">-- Choose a Category --</option>
  144. \t\t\t\t\t{% for cat in listingCategories %}
  145. \t\t\t\t\t\t<option 
  146. \t\t\t\t\t\t\tvalue=\"{{ cat.getId() }}\"
  147. \t\t\t\t\t\t\t{% if cat.getId() == category %}
  148. \t\t\t\t\t\t\t\tselected
  149. \t\t\t\t\t\t\t{% endif %}
  150. \t\t\t\t\t\t>{{ cat.getTitle() }}</option>
  151. \t\t\t\t\t{% endfor %}
  152. \t\t\t\t</select>
  153. \t\t\t</div>
  154. \t\t\t
  155. \t\t\t<div class=\"row classifieds-locale\">
  156. \t\t\t\t<div class=\"col-sm-12 listing-country listing-canada\">
  157. \t\t\t\t\t<b>Canada</b>
  158. \t\t\t\t\t<ul class=\"nav\">
  159. \t\t\t\t\t\t{% for area in listingAreas %}
  160. \t\t\t\t\t\t{% if 'Canada' in area.getTitle() %}
  161. \t\t\t\t\t\t<li class=\"mr-3\">
  162. \t\t\t\t\t\t\t<label><input 
  163. \t\t\t\t\t\t\t\ttype=\"checkbox\"
  164. \t\t\t\t\t\t\t\tname=\"area[]\"
  165. \t\t\t\t\t\t\t\tvalue=\"{{ area.getId() }}\"
  166. \t\t\t\t\t\t\t\tid=\"{{ area.getTitle()|trim('Canada: ', 'left')|replace({' ': '', ',': ''}) }}\"
  167. \t\t\t\t\t\t\t\t{% if area.getId() in areas %}
  168. \t\t\t\t\t\t\t\t\tchecked
  169. \t\t\t\t\t\t\t\t{% endif %}
  170. \t\t\t\t\t\t\t/> {{ area.getTitle()|trim('Canada: ', 'left') }}</label>
  171. \t\t\t\t\t\t</li>
  172. \t\t\t\t\t\t{% endif %}
  173. \t\t\t\t\t\t{% endfor %}
  174. \t\t\t\t\t</ul>
  175. \t\t\t\t</div>
  176. \t\t\t\t<div class=\"col-sm-12 listing-country listing-us\">
  177. \t\t\t\t\t<b>United States</b>
  178. \t\t\t\t\t<ul class=\"nav\">
  179. \t\t\t\t\t\t{% for area in listingAreas %}
  180. \t\t\t\t\t\t{% if 'Canada' not in area.getTitle() %}
  181. \t\t\t\t\t\t<li class=\"mr-3\">
  182. \t\t\t\t\t\t\t<label><input 
  183. \t\t\t\t\t\t\t\ttype=\"checkbox\"
  184. \t\t\t\t\t\t\t\tname=\"area[]\"
  185. \t\t\t\t\t\t\t\tvalue=\"{{ area.getId() }}\"
  186. \t\t\t\t\t\t\t\tid=\"{{ area.getTitle() }}\"
  187. \t\t\t\t\t\t\t\t{% if area.getId() in areas %}
  188. \t\t\t\t\t\t\t\t\tchecked
  189. \t\t\t\t\t\t\t\t{% endif %}
  190. \t\t\t\t\t\t\t/> {{ area.getTitle() }}</label>
  191. \t\t\t\t\t\t</li>
  192. \t\t\t\t\t\t{% endif %}
  193. \t\t\t\t\t\t{% endfor %}
  194. \t\t\t\t\t</ul>
  195. \t\t\t\t</div>
  196. \t\t\t\t{#
  197. \t\t\t\t<div class=\"col-sm-4\">
  198. \t\t\t\t\t<button
  199. \t\t\t\t\t\tclass=\"btn btn-block btn-primary float-right\"
  200. \t\t\t\t\t\ttype=\"submit\"
  201. \t\t\t\t\t><i class=\"fa fa-search\"></i> Search Listings</button>
  202. \t\t\t\t</div>
  203. \t\t\t\t#}
  204. \t\t\t</div>
  205. \t\t\t\t
  206. \t\t</div>
  207. \t</div>
  208. \t
  209. \t<div class=\"row\">
  210. \t\t<div class=\"col-sm-12 mt-3\">
  211. \t\t\t<hr />
  212. \t\t</div>
  213. \t</div>
  214. \t
  215. \t{% if totalListings %}
  216. \t<div class=\"row\">
  217. \t\t<div class=\"col-sm-12\">
  218. \t\t\t<div class=\"pagination float-right\">
  219. \t\t\t\t{% set paging = (page == \"_\") ? 0 : page %}
  220. \t\t\t\t<div class=\"input-group\">
  221. \t\t\t\t\t<div class=\"input-group-prepend px-3\">
  222. \t\t\t\t\t\t<span>
  223. \t\t\t\t\t\tShowing: 
  224. \t\t\t\t\t\t
  225. \t\t\t\t\t\t{{ paging * pagingSize + 1 }} - 
  226. \t\t\t\t\t\t
  227. \t\t\t\t\t\t{% if totalListings < (paging * pagingSize + pagingSize) %}
  228. \t\t\t\t\t\t\t{{ totalListings }}
  229. \t\t\t\t\t\t{% else %}
  230. \t\t\t\t\t\t\t{{ paging * pagingSize + pagingSize }}
  231. \t\t\t\t\t\t{% endif %}
  232. \t\t\t\t\t\t
  233. \t\t\t\t\t\tof 
  234. \t\t\t\t\t\t
  235. \t\t\t\t\t\t{{ totalListings }}
  236. \t\t\t\t\t\t</span>
  237. \t\t\t\t\t</div>
  238. \t\t\t\t\t<div class=\"button-group input-group-append paging\">
  239. \t\t\t\t\t\t{% if 0 < paging %}
  240. \t\t\t\t\t\t<button class=\"btn paging\" value=\"{{ paging - 1 }}\">
  241. \t\t\t\t\t\t\t<i class=\"fa fa-chevron-left\"></i>
  242. \t\t\t\t\t\t</button>
  243. \t\t\t\t\t\t{% endif %}
  244. \t\t\t\t\t\t{% if (paging * pagingSize + pagingSize) < totalListings %}
  245. \t\t\t\t\t\t<button class=\"btn paging\" value=\"{{ paging + 1 }}\">
  246. \t\t\t\t\t\t\t<i class=\"fa fa-chevron-right\"></i>
  247. \t\t\t\t\t\t</button>
  248. \t\t\t\t\t\t{% endif %}
  249. \t\t\t\t\t</div>
  250. \t\t\t\t</div>
  251. \t\t\t</div>
  252. \t\t</div>
  253. \t</div>
  254. \t
  255. \t{% else %}
  256. \t
  257. \t<div class=\"row\">
  258. \t\t<div class=\"col-sm-12 text-center\">
  259. \t\t\t<div class=\"alert alert-warning mb-0\"><i class=\"fa fa-exclamation-triangle\"></i> No Records Found</div>
  260. \t\t</div>
  261. \t</div>
  262. \t
  263. \t{% endif %}
  264. \t
  265. \t<div class=\"row\">
  266. \t\t<div class=\"col-sm-12\">
  267. \t\t\t<hr style=\"margin-bottom: 0;\" />
  268. \t\t</div>
  269. \t</div>
  270. \t
  271. \t<div class=\"row\">
  272. \t\t<div class=\"col-sm-12\">
  273. \t\t\t{% for listing in listings %}
  274. \t\t\t{#<a href=\"{{ listing.getURL() }}\" class=\"no-style\">#}
  275. \t\t\t\t<div class=\"row classified-index-row py-1{{ 0 < listing.getFeatured() ? ' featured' : '' }}\" style=\"min-height:200px;\"
  276. \t\t\t\t\t{% if listing.getVideoMedia() %}
  277. \t\t\t\t\t\tdata-video-row=\"{{listing.getVideoMedia().getId()}}\"
  278. \t\t\t\t\t{% endif %}
  279. \t\t\t\t>
  280. \t\t\t\t\t
  281. \t\t\t\t\t{% if listing.getFeaturedImageTag() or listing.getVideoMediaTag() %}
  282. \t\t\t\t\t\t
  283. \t\t\t\t\t\t{% if listing.hasVideoMedia() %}
  284. \t\t\t\t\t\t\t<div class=\"col-sm-2\">
  285. \t\t\t\t\t\t\t\t<a href=\"{{ listing.getURL() }}?autoplay=1\" class=\"no-style\">
  286. \t\t\t\t\t\t\t\t\t<div class=\"ytThumbContainer ytThumbContainer-small\">
  287. \t\t\t\t\t\t\t\t\t\t{#{{ listing.getFeaturedImageTag(\"ytThumbnail\",\"\")|raw }}#}
  288. \t\t\t\t\t\t\t\t\t\t{% set mURL = \"\" %}
  289. \t\t\t\t\t\t\t\t\t\t{% if listing.getMedia() %}
  290. \t\t\t\t\t\t\t\t\t\t\t{% set mURL = listing.getMedia().getURL() %}
  291. \t\t\t\t\t\t\t\t\t\t{% endif %}
  292. \t\t\t\t\t\t\t\t\t\t{{ listing.getVideoMediaTag(\"\",\"max-height:165px;\", false, false, true, mURL)|raw }}
  293. \t\t\t\t\t\t\t\t\t</div>
  294. \t\t\t\t\t\t\t\t</a>
  295. \t\t\t\t\t\t\t</div>
  296. \t\t\t\t\t\t\t
  297. \t\t\t\t\t\t\t<script>
  298. \t\t\t\t\t\t\t/*
  299. \t\t\t\t\t\t\t\tvar video = document.querySelector(\"[data-video-mid='{{listing.getVideoMedia().getId()}}']\");
  300. \t\t\t\t\t\t\t\tvar videoDiv = document.querySelector(\"[data-video-row='{{listing.getVideoMedia().getId()}}']\");
  301. \t\t\t\t\t\t\t\t
  302. \t\t\t\t\t\t\t\tvideoDiv.addEventListener(\"mouseover\", console.log(\"test\"), true);
  303. \t\t\t\t\t\t\t\t//videoDiv.addEventListener(\"mouseover\", video.play(), false);
  304. \t\t\t\t\t\t\t\t//videoDiv.addEventListener(\"mouseout\", video.pause(), false);
  305. \t\t\t\t\t\t\t*/
  306. \t\t\t\t\t\t\t</script>
  307. \t\t\t\t\t\t{% else %}
  308. \t\t\t\t\t\t\t<div class=\"col-sm-2\">
  309. \t\t\t\t\t\t\t\t<a href=\"{{ listing.getURL() }}\" class=\"no-style\">
  310. \t\t\t\t\t\t\t\t\t{{ listing.getFeaturedImageTag(\"\",\"max-height:165px;\")|raw }}
  311. \t\t\t\t\t\t\t\t</a>
  312. \t\t\t\t\t\t\t</div>
  313. \t\t\t\t\t\t{% endif %}
  314. \t\t\t\t\t\t
  315. \t\t\t\t\t\t<div class=\"col-sm-4\">
  316. \t\t\t\t\t\t\t<a href=\"{{ listing.getURL() }}\" class=\"no-style\">
  317. \t\t\t\t\t\t\t\t<h4 class=\"mb-0\">{{ listing.getTitle() | raw }}</h4>
  318. \t\t\t\t\t\t\t\t{% set company_name = listing.getContentMetaValueByKey(\"_company_name\") %}
  319. \t\t\t\t\t\t\t\t{% if company_name is not empty %}
  320. \t\t\t\t\t\t\t\t\t<p>{{ company_name | raw }}</p>
  321. \t\t\t\t\t\t\t\t{% endif %}
  322. \t\t\t\t\t\t\t</a>
  323. \t\t\t\t\t\t</div>
  324. \t\t\t\t\t\t<div class=\"col-sm-3\">
  325. \t\t\t\t\t\t\t<a href=\"{{ listing.getURL() }}\" class=\"no-style\">
  326. \t\t\t\t\t\t\t\t{% set jobLocation = listing.getContentMetaByKey(\"_job_location\") %}
  327. \t\t\t\t\t\t\t\t{{ jobLocation ? jobLocation.getMetaValue() : \"\" }}
  328. \t\t\t\t\t\t\t</a>
  329. \t\t\t\t\t\t</div>
  330. \t\t\t\t\t{% else %}
  331. \t\t\t\t\t\t<div class=\"col-sm-6\">
  332. \t\t\t\t\t\t\t<a href=\"{{ listing.getURL() }}\" class=\"no-style\">
  333. \t\t\t\t\t\t\t\t<h4 class=\"mb-0\">{{ listing.getTitle() | raw }}</h4>
  334. \t\t\t\t\t\t\t\t<p>{{ listing.getContentMetaValueByKey(\"_company_name\") | raw }}</p>
  335. \t\t\t\t\t\t\t</a>
  336. \t\t\t\t\t\t</div>
  337. \t\t\t\t\t\t<div class=\"col-sm-3\">
  338. \t\t\t\t\t\t\t<a href=\"{{ listing.getURL() }}\" class=\"no-style\">
  339. \t\t\t\t\t\t\t\t{% set jobLocation = listing.getContentMetaByKey(\"_job_location\") %}
  340. \t\t\t\t\t\t\t\t{{ jobLocation ? jobLocation.getMetaValue() : \"\" }}
  341. \t\t\t\t\t\t\t</a>
  342. \t\t\t\t\t\t</div>
  343. \t\t\t\t\t{% endif %}
  344. \t\t\t\t\t<div class=\"col-sm-3\">
  345. \t\t\t\t\t\t<a href=\"{{ listing.getURL() }}\" class=\"no-style\">
  346. \t\t\t\t\t\t\t<div>
  347. \t\t\t\t\t\t\t\t{% set jobType = listing.getSecondaryCategoriesByTaxonomy(\"job_listing_type\") %}
  348. \t\t\t\t\t\t\t\t{% if 1 < jobType | length %}
  349. \t\t\t\t\t\t\t\t\t<strong>Multiple</strong>
  350. \t\t\t\t\t\t\t\t{% else %}
  351. \t\t\t\t\t\t\t\t\t{% if jobType.first() %}
  352. \t\t\t\t\t\t\t\t\t\t<strong>{{ jobType.first().getTitle() }}</strong>
  353. \t\t\t\t\t\t\t\t\t{% endif %}
  354. \t\t\t\t\t\t\t\t{% endif %}
  355. \t\t\t\t\t\t\t</div>
  356. \t\t\t\t\t\t\t{{ post_age_format(date(listing.getPublishedAt()|date).diff(date(\"now\"))) }}
  357. \t\t\t\t\t\t</a>
  358. \t\t\t\t\t</div>
  359. \t\t\t\t</div>
  360. \t\t\t{#</a>#}
  361. \t\t\t<hr class=\"m-0\" />
  362. \t\t\t{% endfor %}
  363. \t\t</div>
  364. \t\t
  365. \t</div>
  366. \t
  367. \t
  368. \t{% if totalListings %}
  369. \t<div class=\"row\">
  370. \t\t<div class=\"col-sm-12\">
  371. \t\t\t<div class=\"pagination float-right\">
  372. \t\t\t\t{% set paging = (page == \"_\") ? 0 : page %}
  373. \t\t\t\t<div class=\"input-group\">
  374. \t\t\t\t\t<div class=\"input-group-prepend px-3\">
  375. \t\t\t\t\t\t<span>
  376. \t\t\t\t\t\tShowing: 
  377. \t\t\t\t\t\t
  378. \t\t\t\t\t\t{{ paging * pagingSize + 1 }} - 
  379. \t\t\t\t\t\t
  380. \t\t\t\t\t\t{% if totalListings < (paging * pagingSize + pagingSize) %}
  381. \t\t\t\t\t\t\t{{ totalListings }}
  382. \t\t\t\t\t\t{% else %}
  383. \t\t\t\t\t\t\t{{ paging * pagingSize + pagingSize }}
  384. \t\t\t\t\t\t{% endif %}
  385. \t\t\t\t\t\t
  386. \t\t\t\t\t\tof 
  387. \t\t\t\t\t\t
  388. \t\t\t\t\t\t{{ totalListings }}
  389. \t\t\t\t\t\t</span>
  390. \t\t\t\t\t</div>
  391. \t\t\t\t\t<div class=\"button-group input-group-append paging\">
  392. \t\t\t\t\t\t{% if 0 < paging %}
  393. \t\t\t\t\t\t<button class=\"btn paging\" value=\"{{ paging - 1 }}\">
  394. \t\t\t\t\t\t\t<i class=\"fa fa-chevron-left\"></i>
  395. \t\t\t\t\t\t</button>
  396. \t\t\t\t\t\t{% endif %}
  397. \t\t\t\t\t\t{% if (paging * pagingSize + pagingSize) < totalListings %}
  398. \t\t\t\t\t\t<button class=\"btn paging\" value=\"{{ paging + 1 }}\">
  399. \t\t\t\t\t\t\t<i class=\"fa fa-chevron-right\"></i>
  400. \t\t\t\t\t\t</button>
  401. \t\t\t\t\t\t{% endif %}
  402. \t\t\t\t\t</div>
  403. \t\t\t\t</div>
  404. \t\t\t</div>
  405. \t\t</div>
  406. \t</div>
  407. \t{% endif %}
  408. \t
  409. \t
  410. \t</form>
  411. \t
  412. \t
  413. <script>
  414. \t(function(\$){
  415. \t\t\$(function(){
  416. \t\t\t
  417. \t\t\t\$('[data-video-row]').each(function() {
  418. \t\t\t\t//\$video = \$(this).find('video').first();
  419. \t\t\t\t\$(this).on('mouseover', function() {
  420. \t\t\t\t\t\$(this).find('video').first()[0].play();
  421. \t\t\t\t\t\$(this).find('.ytThumbContainer').first().stop(true,true).addClass('ytThumbContainer-playing', 500);
  422. \t\t\t\t\t//console.log(\$video);
  423. \t\t\t\t\t//console.log(\$(this).attr(\"data-video-row\"));
  424. \t\t\t\t});
  425. \t\t\t\t
  426. \t\t\t\t\$(this).on('mouseleave', function() {
  427. \t\t\t\t\t//\$(this).find('video').first()[0].pause();
  428. \t\t\t\t\t//\$(this).find('video').first()[0].currentTime=0;
  429. \t\t\t\t\t\$(this).find('video').first()[0].load();
  430. \t\t\t\t\t\$(this).find('.ytThumbContainer').first().stop(true,true).removeClass('ytThumbContainer-playing', 100);
  431. \t\t\t\t});
  432. \t\t\t});
  433. \t\t\t\t
  434. \t\t\t/*\t
  435. \t\t\t
  436. \t\t\t
  437. \t\t\t\$('#user-dashboard-container').on('click', '#addNote', function() {
  438. \t\t\t\t\$(\"#contactNotes\").append(noteHtml.join(''));
  439. \t\t\t\t\$(\"#updateNotes\").show();
  440. \t\t\t});
  441. \t\t\t
  442. \t\t\t\$('#user-dashboard-container').on('click', '.deleteNote', function() {
  443. \t\t\t\t\$(this).parent().parent().remove();
  444. \t\t\t});
  445. \t\t\t*/
  446. \t\t\t
  447. \t\t});
  448. \t}(jQuery));
  449. </script>
  450.             
  451. {% endblock %}
  452. {% block sidebar %}
  453. \t{% include \"includes/sidebar.html.twig\" %}
  454. {% endblock %}
  455. {% endembed %}
  456. {% endblock %}""content/classified-index.html.twig""/var/www/vhosts/rooferscoffeeshop.com/staging.rooferscoffeeshop.com/rcs-website/templates/content/classified-index.html.twig");
  457.     }
  458. }
  459. /* content/classified-index.html.twig */
  460. class __TwigTemplate_7ac4118650a235c357b98ca7d6aac503___1649723959 extends Template
  461. {
  462.     private $source;
  463.     private $macros = [];
  464.     public function __construct(Environment $env)
  465.     {
  466.         parent::__construct($env);
  467.         $this->source $this->getSourceContext();
  468.         $this->blocks = [
  469.             'column' => [$this'block_column'],
  470.             'sidebar' => [$this'block_sidebar'],
  471.         ];
  472.     }
  473.     protected function doGetParent(array $context)
  474.     {
  475.         return "1-col-sidebar.html.twig";
  476.     }
  477.     protected function doDisplay(array $context, array $blocks = [])
  478.     {
  479.         $macros $this->macros;
  480.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  481.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/classified-index.html.twig"));
  482.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  483.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/classified-index.html.twig"));
  484.         $this->parent $this->loadTemplate("1-col-sidebar.html.twig""content/classified-index.html.twig"4);
  485.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  486.         
  487.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  488.         
  489.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  490.     }
  491.     // line 5
  492.     public function block_column($context, array $blocks = [])
  493.     {
  494.         $macros $this->macros;
  495.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  496.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""column"));
  497.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  498.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""column"));
  499.         // line 6
  500.         echo "\t\t";
  501.         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"))) {
  502.             // line 7
  503.             echo "\t\t\t";
  504.             $this->loadTemplate("includes/curtain-ads/classified.html.twig""content/classified-index.html.twig"7)->display($context);
  505.             // line 8
  506.             echo "\t\t";
  507.         } 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"))) {
  508.             // line 9
  509.             echo "\t\t\t";
  510.             $this->loadTemplate("includes/curtain-ads/classified-mcs.html.twig""content/classified-index.html.twig"9)->display($context);
  511.             // line 10
  512.             echo "\t\t";
  513.         }
  514.         // line 11
  515.         echo "
  516. \t<div class=\"row\">
  517. \t\t<div class=\"col-12\">
  518. \t\t\t<h1>Classifieds By Region</h1>
  519. \t\t</div>
  520. \t</div>
  521. \t<div class=\"row\">
  522. \t\t<div class=\"col-md-12\" style=\"text-align: center; padding-top: 10px;\">
  523. \t\t\t";
  524.         // line 19
  525.         $this->loadTemplate("includes/classified-image-map.html.twig""content/classified-index.html.twig"19)->display($context);
  526.         // line 20
  527.         echo "\t\t\t";
  528.         // line 26
  529.         echo "\t\t</div>
  530. \t</div>
  531. \t<div class=\"row\">
  532. \t\t<div class=\"col-sm-12\">
  533. \t\t\t<h2>Classified Listings</h2>
  534. \t\t</div>
  535. \t\t";
  536.         // line 39
  537.         echo "\t</div>
  538. \t
  539. \t<form id=\"classified-sort\">
  540. \t<input type=\"hidden\" name=\"page\" id=\"page\" /> 
  541. \t<input type=\"hidden\" name=\"group\" value=\"";
  542.         // line 43
  543.         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"nulltrue);
  544.         echo "\" />          
  545. \t
  546. \t<div class=\"row\">
  547. \t\t<div class=\"col-sm-12\">
  548. \t\t\t
  549. \t\t\t<div class=\"grey-block mb-3 search-classifieds\">
  550. \t\t\t\t<div class=\"row mb-3\">
  551. \t\t\t\t\t<div class=\"col-sm-6\">
  552. \t\t\t\t\t\t<input
  553. \t\t\t\t\t\t\ttype=\"text\"
  554. \t\t\t\t\t\t\tclass=\"form-control\"
  555. \t\t\t\t\t\t\tplaceholder=\"Keywords &amp; Trade Names\"
  556. \t\t\t\t\t\t\tname=\"keywords\"
  557. \t\t\t\t\t\t\tvalue=\"";
  558.         // line 56
  559.         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"nulltrue);
  560.         echo "\"
  561. \t\t\t\t\t\t/>
  562. \t\t\t\t\t</div>
  563. \t\t\t\t\t<div class=\"col-sm-6\">
  564. \t\t\t\t\t\t<input
  565. \t\t\t\t\t\t\ttype=\"text\"
  566. \t\t\t\t\t\t\tclass=\"form-control\"
  567. \t\t\t\t\t\t\tplaceholder=\"Location\"
  568. \t\t\t\t\t\t\tname=\"location\"
  569. \t\t\t\t\t\t\tvalue=\"";
  570.         // line 65
  571.         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"nulltrue);
  572.         echo "\"
  573. \t\t\t\t\t\t/>
  574. \t\t\t\t\t</div>
  575. \t\t\t\t</div>
  576. \t\t\t\t
  577. \t\t\t\t<select name=\"category\" class=\"form-control\">
  578. \t\t\t\t\t<option value=\"\">-- Choose a Category --</option>
  579. \t\t\t\t\t";
  580.         // line 72
  581.         $context['_parent'] = $context;
  582.         $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); })()));
  583.         foreach ($context['_seq'] as $context["_key"] => $context["cat"]) {
  584.             // line 73
  585.             echo "\t\t\t\t\t\t<option 
  586. \t\t\t\t\t\t\tvalue=\"";
  587.             // line 74
  588.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["cat"], "getId", [], "method"falsefalsefalse74), "html"nulltrue);
  589.             echo "\"
  590. \t\t\t\t\t\t\t";
  591.             // line 75
  592.             if ((twig_get_attribute($this->env$this->source$context["cat"], "getId", [], "method"falsefalsefalse75) == (isset($context["category"]) || array_key_exists("category"$context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.'75$this->source); })()))) {
  593.                 // line 76
  594.                 echo "\t\t\t\t\t\t\t\tselected
  595. \t\t\t\t\t\t\t";
  596.             }
  597.             // line 78
  598.             echo "\t\t\t\t\t\t>";
  599.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["cat"], "getTitle", [], "method"falsefalsefalse78), "html"nulltrue);
  600.             echo "</option>
  601. \t\t\t\t\t";
  602.         }
  603.         $_parent $context['_parent'];
  604.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cat'], $context['_parent'], $context['loop']);
  605.         $context array_intersect_key($context$_parent) + $_parent;
  606.         // line 80
  607.         echo "\t\t\t\t</select>
  608. \t\t\t</div>
  609. \t\t\t
  610. \t\t\t<div class=\"row classifieds-locale\">
  611. \t\t\t\t<div class=\"col-sm-12 listing-country listing-canada\">
  612. \t\t\t\t\t<b>Canada</b>
  613. \t\t\t\t\t<ul class=\"nav\">
  614. \t\t\t\t\t\t";
  615.         // line 87
  616.         $context['_parent'] = $context;
  617.         $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); })()));
  618.         foreach ($context['_seq'] as $context["_key"] => $context["area"]) {
  619.             // line 88
  620.             echo "\t\t\t\t\t\t";
  621.             if (twig_in_filter("Canada"twig_get_attribute($this->env$this->source$context["area"], "getTitle", [], "method"falsefalsefalse88))) {
  622.                 // line 89
  623.                 echo "\t\t\t\t\t\t<li class=\"mr-3\">
  624. \t\t\t\t\t\t\t<label><input 
  625. \t\t\t\t\t\t\t\ttype=\"checkbox\"
  626. \t\t\t\t\t\t\t\tname=\"area[]\"
  627. \t\t\t\t\t\t\t\tvalue=\"";
  628.                 // line 93
  629.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["area"], "getId", [], "method"falsefalsefalse93), "html"nulltrue);
  630.                 echo "\"
  631. \t\t\t\t\t\t\t\tid=\"";
  632.                 // line 94
  633.                 echo twig_escape_filter($this->envtwig_replace_filter(twig_trim_filter(twig_get_attribute($this->env$this->source$context["area"], "getTitle", [], "method"falsefalsefalse94), "Canada: ""left"), [" " => """," => ""]), "html"nulltrue);
  634.                 echo "\"
  635. \t\t\t\t\t\t\t\t";
  636.                 // line 95
  637.                 if (twig_in_filter(twig_get_attribute($this->env$this->source$context["area"], "getId", [], "method"falsefalsefalse95), (isset($context["areas"]) || array_key_exists("areas"$context) ? $context["areas"] : (function () { throw new RuntimeError('Variable "areas" does not exist.'95$this->source); })()))) {
  638.                     // line 96
  639.                     echo "\t\t\t\t\t\t\t\t\tchecked
  640. \t\t\t\t\t\t\t\t";
  641.                 }
  642.                 // line 98
  643.                 echo "\t\t\t\t\t\t\t/> ";
  644.                 echo twig_escape_filter($this->envtwig_trim_filter(twig_get_attribute($this->env$this->source$context["area"], "getTitle", [], "method"falsefalsefalse98), "Canada: ""left"), "html"nulltrue);
  645.                 echo "</label>
  646. \t\t\t\t\t\t</li>
  647. \t\t\t\t\t\t";
  648.             }
  649.             // line 101
  650.             echo "\t\t\t\t\t\t";
  651.         }
  652.         $_parent $context['_parent'];
  653.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['area'], $context['_parent'], $context['loop']);
  654.         $context array_intersect_key($context$_parent) + $_parent;
  655.         // line 102
  656.         echo "\t\t\t\t\t</ul>
  657. \t\t\t\t</div>
  658. \t\t\t\t<div class=\"col-sm-12 listing-country listing-us\">
  659. \t\t\t\t\t<b>United States</b>
  660. \t\t\t\t\t<ul class=\"nav\">
  661. \t\t\t\t\t\t";
  662.         // line 107
  663.         $context['_parent'] = $context;
  664.         $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); })()));
  665.         foreach ($context['_seq'] as $context["_key"] => $context["area"]) {
  666.             // line 108
  667.             echo "\t\t\t\t\t\t";
  668.             if (!twig_in_filter("Canada"twig_get_attribute($this->env$this->source$context["area"], "getTitle", [], "method"falsefalsefalse108))) {
  669.                 // line 109
  670.                 echo "\t\t\t\t\t\t<li class=\"mr-3\">
  671. \t\t\t\t\t\t\t<label><input 
  672. \t\t\t\t\t\t\t\ttype=\"checkbox\"
  673. \t\t\t\t\t\t\t\tname=\"area[]\"
  674. \t\t\t\t\t\t\t\tvalue=\"";
  675.                 // line 113
  676.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["area"], "getId", [], "method"falsefalsefalse113), "html"nulltrue);
  677.                 echo "\"
  678. \t\t\t\t\t\t\t\tid=\"";
  679.                 // line 114
  680.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["area"], "getTitle", [], "method"falsefalsefalse114), "html"nulltrue);
  681.                 echo "\"
  682. \t\t\t\t\t\t\t\t";
  683.                 // line 115
  684.                 if (twig_in_filter(twig_get_attribute($this->env$this->source$context["area"], "getId", [], "method"falsefalsefalse115), (isset($context["areas"]) || array_key_exists("areas"$context) ? $context["areas"] : (function () { throw new RuntimeError('Variable "areas" does not exist.'115$this->source); })()))) {
  685.                     // line 116
  686.                     echo "\t\t\t\t\t\t\t\t\tchecked
  687. \t\t\t\t\t\t\t\t";
  688.                 }
  689.                 // line 118
  690.                 echo "\t\t\t\t\t\t\t/> ";
  691.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["area"], "getTitle", [], "method"falsefalsefalse118), "html"nulltrue);
  692.                 echo "</label>
  693. \t\t\t\t\t\t</li>
  694. \t\t\t\t\t\t";
  695.             }
  696.             // line 121
  697.             echo "\t\t\t\t\t\t";
  698.         }
  699.         $_parent $context['_parent'];
  700.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['area'], $context['_parent'], $context['loop']);
  701.         $context array_intersect_key($context$_parent) + $_parent;
  702.         // line 122
  703.         echo "\t\t\t\t\t</ul>
  704. \t\t\t\t</div>
  705. \t\t\t\t";
  706.         // line 132
  707.         echo "\t\t\t</div>
  708. \t\t\t\t
  709. \t\t</div>
  710. \t</div>
  711. \t
  712. \t<div class=\"row\">
  713. \t\t<div class=\"col-sm-12 mt-3\">
  714. \t\t\t<hr />
  715. \t\t</div>
  716. \t</div>
  717. \t
  718. \t";
  719.         // line 143
  720.         if ((isset($context["totalListings"]) || array_key_exists("totalListings"$context) ? $context["totalListings"] : (function () { throw new RuntimeError('Variable "totalListings" does not exist.'143$this->source); })())) {
  721.             // line 144
  722.             echo "\t<div class=\"row\">
  723. \t\t<div class=\"col-sm-12\">
  724. \t\t\t<div class=\"pagination float-right\">
  725. \t\t\t\t";
  726.             // line 147
  727.             $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); })())));
  728.             // line 148
  729.             echo "\t\t\t\t<div class=\"input-group\">
  730. \t\t\t\t\t<div class=\"input-group-prepend px-3\">
  731. \t\t\t\t\t\t<span>
  732. \t\t\t\t\t\tShowing: 
  733. \t\t\t\t\t\t
  734. \t\t\t\t\t\t";
  735.             // line 153
  736.             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"nulltrue);
  737.             echo " - 
  738. \t\t\t\t\t\t
  739. \t\t\t\t\t\t";
  740.             // line 155
  741.             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); })())))) {
  742.                 // line 156
  743.                 echo "\t\t\t\t\t\t\t";
  744.                 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"nulltrue);
  745.                 echo "
  746. \t\t\t\t\t\t";
  747.             } else {
  748.                 // line 158
  749.                 echo "\t\t\t\t\t\t\t";
  750.                 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"nulltrue);
  751.                 echo "
  752. \t\t\t\t\t\t";
  753.             }
  754.             // line 160
  755.             echo "\t\t\t\t\t\t
  756. \t\t\t\t\t\tof 
  757. \t\t\t\t\t\t
  758. \t\t\t\t\t\t";
  759.             // line 163
  760.             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"nulltrue);
  761.             echo "
  762. \t\t\t\t\t\t</span>
  763. \t\t\t\t\t</div>
  764. \t\t\t\t\t<div class=\"button-group input-group-append paging\">
  765. \t\t\t\t\t\t";
  766.             // line 167
  767.             if ((< (isset($context["paging"]) || array_key_exists("paging"$context) ? $context["paging"] : (function () { throw new RuntimeError('Variable "paging" does not exist.'167$this->source); })()))) {
  768.                 // line 168
  769.                 echo "\t\t\t\t\t\t<button class=\"btn paging\" value=\"";
  770.                 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"nulltrue);
  771.                 echo "\">
  772. \t\t\t\t\t\t\t<i class=\"fa fa-chevron-left\"></i>
  773. \t\t\t\t\t\t</button>
  774. \t\t\t\t\t\t";
  775.             }
  776.             // line 172
  777.             echo "\t\t\t\t\t\t";
  778.             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); })()))) {
  779.                 // line 173
  780.                 echo "\t\t\t\t\t\t<button class=\"btn paging\" value=\"";
  781.                 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"nulltrue);
  782.                 echo "\">
  783. \t\t\t\t\t\t\t<i class=\"fa fa-chevron-right\"></i>
  784. \t\t\t\t\t\t</button>
  785. \t\t\t\t\t\t";
  786.             }
  787.             // line 177
  788.             echo "\t\t\t\t\t</div>
  789. \t\t\t\t</div>
  790. \t\t\t</div>
  791. \t\t</div>
  792. \t</div>
  793. \t
  794. \t";
  795.         } else {
  796.             // line 184
  797.             echo "\t
  798. \t<div class=\"row\">
  799. \t\t<div class=\"col-sm-12 text-center\">
  800. \t\t\t<div class=\"alert alert-warning mb-0\"><i class=\"fa fa-exclamation-triangle\"></i> No Records Found</div>
  801. \t\t</div>
  802. \t</div>
  803. \t
  804. \t";
  805.         }
  806.         // line 192
  807.         echo "\t
  808. \t<div class=\"row\">
  809. \t\t<div class=\"col-sm-12\">
  810. \t\t\t<hr style=\"margin-bottom: 0;\" />
  811. \t\t</div>
  812. \t</div>
  813. \t
  814. \t<div class=\"row\">
  815. \t\t<div class=\"col-sm-12\">
  816. \t\t\t";
  817.         // line 201
  818.         $context['_parent'] = $context;
  819.         $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); })()));
  820.         foreach ($context['_seq'] as $context["_key"] => $context["listing"]) {
  821.             // line 202
  822.             echo "\t\t\t";
  823.             // line 203
  824.             echo "\t\t\t\t<div class=\"row classified-index-row py-1";
  825.             echo (((twig_get_attribute($this->env$this->source$context["listing"], "getFeatured", [], "method"falsefalsefalse203))) ? (" featured") : (""));
  826.             echo "\" style=\"min-height:200px;\"
  827. \t\t\t\t\t";
  828.             // line 204
  829.             if (twig_get_attribute($this->env$this->source$context["listing"], "getVideoMedia", [], "method"falsefalsefalse204)) {
  830.                 // line 205
  831.                 echo "\t\t\t\t\t\tdata-video-row=\"";
  832.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["listing"], "getVideoMedia", [], "method"falsefalsefalse205), "getId", [], "method"falsefalsefalse205), "html"nulltrue);
  833.                 echo "\"
  834. \t\t\t\t\t";
  835.             }
  836.             // line 207
  837.             echo "\t\t\t\t>
  838. \t\t\t\t\t
  839. \t\t\t\t\t";
  840.             // line 209
  841.             if ((twig_get_attribute($this->env$this->source$context["listing"], "getFeaturedImageTag", [], "method"falsefalsefalse209) || twig_get_attribute($this->env$this->source$context["listing"], "getVideoMediaTag", [], "method"falsefalsefalse209))) {
  842.                 // line 210
  843.                 echo "\t\t\t\t\t\t
  844. \t\t\t\t\t\t";
  845.                 // line 211
  846.                 if (twig_get_attribute($this->env$this->source$context["listing"], "hasVideoMedia", [], "method"falsefalsefalse211)) {
  847.                     // line 212
  848.                     echo "\t\t\t\t\t\t\t<div class=\"col-sm-2\">
  849. \t\t\t\t\t\t\t\t<a href=\"";
  850.                     // line 213
  851.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["listing"], "getURL", [], "method"falsefalsefalse213), "html"nulltrue);
  852.                     echo "?autoplay=1\" class=\"no-style\">
  853. \t\t\t\t\t\t\t\t\t<div class=\"ytThumbContainer ytThumbContainer-small\">
  854. \t\t\t\t\t\t\t\t\t\t";
  855.                     // line 216
  856.                     echo "\t\t\t\t\t\t\t\t\t\t";
  857.                     $context["mURL"] = "";
  858.                     // line 217
  859.                     echo "\t\t\t\t\t\t\t\t\t\t";
  860.                     if (twig_get_attribute($this->env$this->source$context["listing"], "getMedia", [], "method"falsefalsefalse217)) {
  861.                         // line 218
  862.                         echo "\t\t\t\t\t\t\t\t\t\t\t";
  863.                         $context["mURL"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["listing"], "getMedia", [], "method"falsefalsefalse218), "getURL", [], "method"falsefalsefalse218);
  864.                         // line 219
  865.                         echo "\t\t\t\t\t\t\t\t\t\t";
  866.                     }
  867.                     // line 220
  868.                     echo "\t\t\t\t\t\t\t\t\t\t";
  869.                     echo twig_get_attribute($this->env$this->source$context["listing"], "getVideoMediaTag", ["""max-height:165px;"falsefalsetrue, (isset($context["mURL"]) || array_key_exists("mURL"$context) ? $context["mURL"] : (function () { throw new RuntimeError('Variable "mURL" does not exist.'220$this->source); })())], "method"falsefalsefalse220);
  870.                     echo "
  871. \t\t\t\t\t\t\t\t\t</div>
  872. \t\t\t\t\t\t\t\t</a>
  873. \t\t\t\t\t\t\t</div>
  874. \t\t\t\t\t\t\t
  875. \t\t\t\t\t\t\t<script>
  876. \t\t\t\t\t\t\t/*
  877. \t\t\t\t\t\t\t\tvar video = document.querySelector(\"[data-video-mid='";
  878.                     // line 227
  879.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["listing"], "getVideoMedia", [], "method"falsefalsefalse227), "getId", [], "method"falsefalsefalse227), "html"nulltrue);
  880.                     echo "']\");
  881. \t\t\t\t\t\t\t\tvar videoDiv = document.querySelector(\"[data-video-row='";
  882.                     // line 228
  883.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["listing"], "getVideoMedia", [], "method"falsefalsefalse228), "getId", [], "method"falsefalsefalse228), "html"nulltrue);
  884.                     echo "']\");
  885. \t\t\t\t\t\t\t\t
  886. \t\t\t\t\t\t\t\tvideoDiv.addEventListener(\"mouseover\", console.log(\"test\"), true);
  887. \t\t\t\t\t\t\t\t//videoDiv.addEventListener(\"mouseover\", video.play(), false);
  888. \t\t\t\t\t\t\t\t//videoDiv.addEventListener(\"mouseout\", video.pause(), false);
  889. \t\t\t\t\t\t\t*/
  890. \t\t\t\t\t\t\t</script>
  891. \t\t\t\t\t\t";
  892.                 } else {
  893.                     // line 236
  894.                     echo "\t\t\t\t\t\t\t<div class=\"col-sm-2\">
  895. \t\t\t\t\t\t\t\t<a href=\"";
  896.                     // line 237
  897.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["listing"], "getURL", [], "method"falsefalsefalse237), "html"nulltrue);
  898.                     echo "\" class=\"no-style\">
  899. \t\t\t\t\t\t\t\t\t";
  900.                     // line 238
  901.                     echo twig_get_attribute($this->env$this->source$context["listing"], "getFeaturedImageTag", ["""max-height:165px;"], "method"falsefalsefalse238);
  902.                     echo "
  903. \t\t\t\t\t\t\t\t</a>
  904. \t\t\t\t\t\t\t</div>
  905. \t\t\t\t\t\t";
  906.                 }
  907.                 // line 242
  908.                 echo "\t\t\t\t\t\t
  909. \t\t\t\t\t\t<div class=\"col-sm-4\">
  910. \t\t\t\t\t\t\t<a href=\"";
  911.                 // line 244
  912.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["listing"], "getURL", [], "method"falsefalsefalse244), "html"nulltrue);
  913.                 echo "\" class=\"no-style\">
  914. \t\t\t\t\t\t\t\t<h4 class=\"mb-0\">";
  915.                 // line 245
  916.                 echo twig_get_attribute($this->env$this->source$context["listing"], "getTitle", [], "method"falsefalsefalse245);
  917.                 echo "</h4>
  918. \t\t\t\t\t\t\t\t";
  919.                 // line 246
  920.                 $context["company_name"] = twig_get_attribute($this->env$this->source$context["listing"], "getContentMetaValueByKey", ["_company_name"], "method"falsefalsefalse246);
  921.                 // line 247
  922.                 echo "\t\t\t\t\t\t\t\t";
  923.                 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); })()))) {
  924.                     // line 248
  925.                     echo "\t\t\t\t\t\t\t\t\t<p>";
  926.                     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); })());
  927.                     echo "</p>
  928. \t\t\t\t\t\t\t\t";
  929.                 }
  930.                 // line 250
  931.                 echo "\t\t\t\t\t\t\t</a>
  932. \t\t\t\t\t\t</div>
  933. \t\t\t\t\t\t<div class=\"col-sm-3\">
  934. \t\t\t\t\t\t\t<a href=\"";
  935.                 // line 253
  936.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["listing"], "getURL", [], "method"falsefalsefalse253), "html"nulltrue);
  937.                 echo "\" class=\"no-style\">
  938. \t\t\t\t\t\t\t\t";
  939.                 // line 254
  940.                 $context["jobLocation"] = twig_get_attribute($this->env$this->source$context["listing"], "getContentMetaByKey", ["_job_location"], "method"falsefalsefalse254);
  941.                 // line 255
  942.                 echo "\t\t\t\t\t\t\t\t";
  943.                 (((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->envtwig_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"falsefalsefalse255), "html"nulltrue))) : (print ("")));
  944.                 echo "
  945. \t\t\t\t\t\t\t</a>
  946. \t\t\t\t\t\t</div>
  947. \t\t\t\t\t";
  948.             } else {
  949.                 // line 259
  950.                 echo "\t\t\t\t\t\t<div class=\"col-sm-6\">
  951. \t\t\t\t\t\t\t<a href=\"";
  952.                 // line 260
  953.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["listing"], "getURL", [], "method"falsefalsefalse260), "html"nulltrue);
  954.                 echo "\" class=\"no-style\">
  955. \t\t\t\t\t\t\t\t<h4 class=\"mb-0\">";
  956.                 // line 261
  957.                 echo twig_get_attribute($this->env$this->source$context["listing"], "getTitle", [], "method"falsefalsefalse261);
  958.                 echo "</h4>
  959. \t\t\t\t\t\t\t\t<p>";
  960.                 // line 262
  961.                 echo twig_get_attribute($this->env$this->source$context["listing"], "getContentMetaValueByKey", ["_company_name"], "method"falsefalsefalse262);
  962.                 echo "</p>
  963. \t\t\t\t\t\t\t</a>
  964. \t\t\t\t\t\t</div>
  965. \t\t\t\t\t\t<div class=\"col-sm-3\">
  966. \t\t\t\t\t\t\t<a href=\"";
  967.                 // line 266
  968.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["listing"], "getURL", [], "method"falsefalsefalse266), "html"nulltrue);
  969.                 echo "\" class=\"no-style\">
  970. \t\t\t\t\t\t\t\t";
  971.                 // line 267
  972.                 $context["jobLocation"] = twig_get_attribute($this->env$this->source$context["listing"], "getContentMetaByKey", ["_job_location"], "method"falsefalsefalse267);
  973.                 // line 268
  974.                 echo "\t\t\t\t\t\t\t\t";
  975.                 (((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->envtwig_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"falsefalsefalse268), "html"nulltrue))) : (print ("")));
  976.                 echo "
  977. \t\t\t\t\t\t\t</a>
  978. \t\t\t\t\t\t</div>
  979. \t\t\t\t\t";
  980.             }
  981.             // line 272
  982.             echo "\t\t\t\t\t<div class=\"col-sm-3\">
  983. \t\t\t\t\t\t<a href=\"";
  984.             // line 273
  985.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["listing"], "getURL", [], "method"falsefalsefalse273), "html"nulltrue);
  986.             echo "\" class=\"no-style\">
  987. \t\t\t\t\t\t\t<div>
  988. \t\t\t\t\t\t\t\t";
  989.             // line 275
  990.             $context["jobType"] = twig_get_attribute($this->env$this->source$context["listing"], "getSecondaryCategoriesByTaxonomy", ["job_listing_type"], "method"falsefalsefalse275);
  991.             // line 276
  992.             echo "\t\t\t\t\t\t\t\t";
  993.             if ((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); })())))) {
  994.                 // line 277
  995.                 echo "\t\t\t\t\t\t\t\t\t<strong>Multiple</strong>
  996. \t\t\t\t\t\t\t\t";
  997.             } else {
  998.                 // line 279
  999.                 echo "\t\t\t\t\t\t\t\t\t";
  1000.                 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"falsefalsefalse279)) {
  1001.                     // line 280
  1002.                     echo "\t\t\t\t\t\t\t\t\t\t<strong>";
  1003.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse280), "getTitle", [], "method"falsefalsefalse280), "html"nulltrue);
  1004.                     echo "</strong>
  1005. \t\t\t\t\t\t\t\t\t";
  1006.                 }
  1007.                 // line 282
  1008.                 echo "\t\t\t\t\t\t\t\t";
  1009.             }
  1010.             // line 283
  1011.             echo "\t\t\t\t\t\t\t</div>
  1012. \t\t\t\t\t\t\t";
  1013.             // line 284
  1014.             echo twig_escape_filter($this->env$this->extensions['App\Twig\RCSExtension']->post_age_format(twig_get_attribute($this->env$this->sourcetwig_date_converter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["listing"], "getPublishedAt", [], "method"falsefalsefalse284))), "diff", [twig_date_converter($this->env"now")], "method"falsefalsefalse284)), "html"nulltrue);
  1015.             echo "
  1016. \t\t\t\t\t\t</a>
  1017. \t\t\t\t\t</div>
  1018. \t\t\t\t</div>
  1019. \t\t\t";
  1020.             // line 289
  1021.             echo "\t\t\t<hr class=\"m-0\" />
  1022. \t\t\t";
  1023.         }
  1024.         $_parent $context['_parent'];
  1025.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['listing'], $context['_parent'], $context['loop']);
  1026.         $context array_intersect_key($context$_parent) + $_parent;
  1027.         // line 291
  1028.         echo "\t\t</div>
  1029. \t\t
  1030. \t</div>
  1031. \t
  1032. \t
  1033. \t";
  1034.         // line 296
  1035.         if ((isset($context["totalListings"]) || array_key_exists("totalListings"$context) ? $context["totalListings"] : (function () { throw new RuntimeError('Variable "totalListings" does not exist.'296$this->source); })())) {
  1036.             // line 297
  1037.             echo "\t<div class=\"row\">
  1038. \t\t<div class=\"col-sm-12\">
  1039. \t\t\t<div class=\"pagination float-right\">
  1040. \t\t\t\t";
  1041.             // line 300
  1042.             $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); })())));
  1043.             // line 301
  1044.             echo "\t\t\t\t<div class=\"input-group\">
  1045. \t\t\t\t\t<div class=\"input-group-prepend px-3\">
  1046. \t\t\t\t\t\t<span>
  1047. \t\t\t\t\t\tShowing: 
  1048. \t\t\t\t\t\t
  1049. \t\t\t\t\t\t";
  1050.             // line 306
  1051.             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"nulltrue);
  1052.             echo " - 
  1053. \t\t\t\t\t\t
  1054. \t\t\t\t\t\t";
  1055.             // line 308
  1056.             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); })())))) {
  1057.                 // line 309
  1058.                 echo "\t\t\t\t\t\t\t";
  1059.                 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"nulltrue);
  1060.                 echo "
  1061. \t\t\t\t\t\t";
  1062.             } else {
  1063.                 // line 311
  1064.                 echo "\t\t\t\t\t\t\t";
  1065.                 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"nulltrue);
  1066.                 echo "
  1067. \t\t\t\t\t\t";
  1068.             }
  1069.             // line 313
  1070.             echo "\t\t\t\t\t\t
  1071. \t\t\t\t\t\tof 
  1072. \t\t\t\t\t\t
  1073. \t\t\t\t\t\t";
  1074.             // line 316
  1075.             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"nulltrue);
  1076.             echo "
  1077. \t\t\t\t\t\t</span>
  1078. \t\t\t\t\t</div>
  1079. \t\t\t\t\t<div class=\"button-group input-group-append paging\">
  1080. \t\t\t\t\t\t";
  1081.             // line 320
  1082.             if ((< (isset($context["paging"]) || array_key_exists("paging"$context) ? $context["paging"] : (function () { throw new RuntimeError('Variable "paging" does not exist.'320$this->source); })()))) {
  1083.                 // line 321
  1084.                 echo "\t\t\t\t\t\t<button class=\"btn paging\" value=\"";
  1085.                 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"nulltrue);
  1086.                 echo "\">
  1087. \t\t\t\t\t\t\t<i class=\"fa fa-chevron-left\"></i>
  1088. \t\t\t\t\t\t</button>
  1089. \t\t\t\t\t\t";
  1090.             }
  1091.             // line 325
  1092.             echo "\t\t\t\t\t\t";
  1093.             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); })()))) {
  1094.                 // line 326
  1095.                 echo "\t\t\t\t\t\t<button class=\"btn paging\" value=\"";
  1096.                 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"nulltrue);
  1097.                 echo "\">
  1098. \t\t\t\t\t\t\t<i class=\"fa fa-chevron-right\"></i>
  1099. \t\t\t\t\t\t</button>
  1100. \t\t\t\t\t\t";
  1101.             }
  1102.             // line 330
  1103.             echo "\t\t\t\t\t</div>
  1104. \t\t\t\t</div>
  1105. \t\t\t</div>
  1106. \t\t</div>
  1107. \t</div>
  1108. \t";
  1109.         }
  1110.         // line 336
  1111.         echo "\t
  1112. \t
  1113. \t</form>
  1114. \t
  1115. \t
  1116. <script>
  1117. \t(function(\$){
  1118. \t\t\$(function(){
  1119. \t\t\t
  1120. \t\t\t\$('[data-video-row]').each(function() {
  1121. \t\t\t\t//\$video = \$(this).find('video').first();
  1122. \t\t\t\t\$(this).on('mouseover', function() {
  1123. \t\t\t\t\t\$(this).find('video').first()[0].play();
  1124. \t\t\t\t\t\$(this).find('.ytThumbContainer').first().stop(true,true).addClass('ytThumbContainer-playing', 500);
  1125. \t\t\t\t\t//console.log(\$video);
  1126. \t\t\t\t\t//console.log(\$(this).attr(\"data-video-row\"));
  1127. \t\t\t\t});
  1128. \t\t\t\t
  1129. \t\t\t\t\$(this).on('mouseleave', function() {
  1130. \t\t\t\t\t//\$(this).find('video').first()[0].pause();
  1131. \t\t\t\t\t//\$(this).find('video').first()[0].currentTime=0;
  1132. \t\t\t\t\t\$(this).find('video').first()[0].load();
  1133. \t\t\t\t\t\$(this).find('.ytThumbContainer').first().stop(true,true).removeClass('ytThumbContainer-playing', 100);
  1134. \t\t\t\t});
  1135. \t\t\t});
  1136. \t\t\t\t
  1137. \t\t\t/*\t
  1138. \t\t\t
  1139. \t\t\t
  1140. \t\t\t\$('#user-dashboard-container').on('click', '#addNote', function() {
  1141. \t\t\t\t\$(\"#contactNotes\").append(noteHtml.join(''));
  1142. \t\t\t\t\$(\"#updateNotes\").show();
  1143. \t\t\t});
  1144. \t\t\t
  1145. \t\t\t\$('#user-dashboard-container').on('click', '.deleteNote', function() {
  1146. \t\t\t\t\$(this).parent().parent().remove();
  1147. \t\t\t});
  1148. \t\t\t*/
  1149. \t\t\t
  1150. \t\t});
  1151. \t}(jQuery));
  1152. </script>
  1153.             
  1154. ";
  1155.         
  1156.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1157.         
  1158.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1159.     }
  1160.     // line 382
  1161.     public function block_sidebar($context, array $blocks = [])
  1162.     {
  1163.         $macros $this->macros;
  1164.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1165.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sidebar"));
  1166.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1167.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sidebar"));
  1168.         // line 383
  1169.         echo "\t";
  1170.         $this->loadTemplate("includes/sidebar.html.twig""content/classified-index.html.twig"383)->display($context);
  1171.         
  1172.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1173.         
  1174.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1175.     }
  1176.     public function getTemplateName()
  1177.     {
  1178.         return "content/classified-index.html.twig";
  1179.     }
  1180.     public function isTraitable()
  1181.     {
  1182.         return false;
  1183.     }
  1184.     public function getDebugInfo()
  1185.     {
  1186.         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,);
  1187.     }
  1188.     public function getSourceContext()
  1189.     {
  1190.         return new Source("{% extends \"base.html.twig\" %}
  1191. {% block body %}
  1192. {% embed \"1-col-sidebar.html.twig\" %}
  1193. {% block column %}
  1194. \t\t{% if site_code == constant(\"App\\\\Entity\\\\Content::SITE_RCS\") %}
  1195. \t\t\t{% include  \"includes/curtain-ads/classified.html.twig\" %}
  1196. \t\t{% elseif site_code == constant(\"App\\\\Entity\\\\Content::SITE_MCS\") %}
  1197. \t\t\t{% include  \"includes/curtain-ads/classified-mcs.html.twig\" %}
  1198. \t\t{% endif %}
  1199. \t<div class=\"row\">
  1200. \t\t<div class=\"col-12\">
  1201. \t\t\t<h1>Classifieds By Region</h1>
  1202. \t\t</div>
  1203. \t</div>
  1204. \t<div class=\"row\">
  1205. \t\t<div class=\"col-md-12\" style=\"text-align: center; padding-top: 10px;\">
  1206. \t\t\t{% include \"includes/classified-image-map.html.twig\" %}
  1207. \t\t\t{#<img 
  1208. \t\t\t\tsrc=\"/assets/img/classified-image-map.png\"
  1209. \t\t\t\talt=\"Classified Listings\"
  1210. \t\t\t\tclass=\"d-block mx-auto\"
  1211. \t\t\t\tloading='lazy'
  1212. \t\t\t/>#}
  1213. \t\t</div>
  1214. \t</div>
  1215. \t<div class=\"row\">
  1216. \t\t<div class=\"col-sm-12\">
  1217. \t\t\t<h2>Classified Listings</h2>
  1218. \t\t</div>
  1219. \t\t{#
  1220. \t\t<div class=\"col-sm-6\">
  1221. \t\t\t<a href=\"/classified-policy\" class=\"float-right\">Read our Classified Policy</a>
  1222. \t\t</div>
  1223. \t\t#}
  1224. \t</div>
  1225. \t
  1226. \t<form id=\"classified-sort\">
  1227. \t<input type=\"hidden\" name=\"page\" id=\"page\" /> 
  1228. \t<input type=\"hidden\" name=\"group\" value=\"{{ group }}\" />          
  1229. \t
  1230. \t<div class=\"row\">
  1231. \t\t<div class=\"col-sm-12\">
  1232. \t\t\t
  1233. \t\t\t<div class=\"grey-block mb-3 search-classifieds\">
  1234. \t\t\t\t<div class=\"row mb-3\">
  1235. \t\t\t\t\t<div class=\"col-sm-6\">
  1236. \t\t\t\t\t\t<input
  1237. \t\t\t\t\t\t\ttype=\"text\"
  1238. \t\t\t\t\t\t\tclass=\"form-control\"
  1239. \t\t\t\t\t\t\tplaceholder=\"Keywords &amp; Trade Names\"
  1240. \t\t\t\t\t\t\tname=\"keywords\"
  1241. \t\t\t\t\t\t\tvalue=\"{{ keywords }}\"
  1242. \t\t\t\t\t\t/>
  1243. \t\t\t\t\t</div>
  1244. \t\t\t\t\t<div class=\"col-sm-6\">
  1245. \t\t\t\t\t\t<input
  1246. \t\t\t\t\t\t\ttype=\"text\"
  1247. \t\t\t\t\t\t\tclass=\"form-control\"
  1248. \t\t\t\t\t\t\tplaceholder=\"Location\"
  1249. \t\t\t\t\t\t\tname=\"location\"
  1250. \t\t\t\t\t\t\tvalue=\"{{ location }}\"
  1251. \t\t\t\t\t\t/>
  1252. \t\t\t\t\t</div>
  1253. \t\t\t\t</div>
  1254. \t\t\t\t
  1255. \t\t\t\t<select name=\"category\" class=\"form-control\">
  1256. \t\t\t\t\t<option value=\"\">-- Choose a Category --</option>
  1257. \t\t\t\t\t{% for cat in listingCategories %}
  1258. \t\t\t\t\t\t<option 
  1259. \t\t\t\t\t\t\tvalue=\"{{ cat.getId() }}\"
  1260. \t\t\t\t\t\t\t{% if cat.getId() == category %}
  1261. \t\t\t\t\t\t\t\tselected
  1262. \t\t\t\t\t\t\t{% endif %}
  1263. \t\t\t\t\t\t>{{ cat.getTitle() }}</option>
  1264. \t\t\t\t\t{% endfor %}
  1265. \t\t\t\t</select>
  1266. \t\t\t</div>
  1267. \t\t\t
  1268. \t\t\t<div class=\"row classifieds-locale\">
  1269. \t\t\t\t<div class=\"col-sm-12 listing-country listing-canada\">
  1270. \t\t\t\t\t<b>Canada</b>
  1271. \t\t\t\t\t<ul class=\"nav\">
  1272. \t\t\t\t\t\t{% for area in listingAreas %}
  1273. \t\t\t\t\t\t{% if 'Canada' in area.getTitle() %}
  1274. \t\t\t\t\t\t<li class=\"mr-3\">
  1275. \t\t\t\t\t\t\t<label><input 
  1276. \t\t\t\t\t\t\t\ttype=\"checkbox\"
  1277. \t\t\t\t\t\t\t\tname=\"area[]\"
  1278. \t\t\t\t\t\t\t\tvalue=\"{{ area.getId() }}\"
  1279. \t\t\t\t\t\t\t\tid=\"{{ area.getTitle()|trim('Canada: ', 'left')|replace({' ': '', ',': ''}) }}\"
  1280. \t\t\t\t\t\t\t\t{% if area.getId() in areas %}
  1281. \t\t\t\t\t\t\t\t\tchecked
  1282. \t\t\t\t\t\t\t\t{% endif %}
  1283. \t\t\t\t\t\t\t/> {{ area.getTitle()|trim('Canada: ', 'left') }}</label>
  1284. \t\t\t\t\t\t</li>
  1285. \t\t\t\t\t\t{% endif %}
  1286. \t\t\t\t\t\t{% endfor %}
  1287. \t\t\t\t\t</ul>
  1288. \t\t\t\t</div>
  1289. \t\t\t\t<div class=\"col-sm-12 listing-country listing-us\">
  1290. \t\t\t\t\t<b>United States</b>
  1291. \t\t\t\t\t<ul class=\"nav\">
  1292. \t\t\t\t\t\t{% for area in listingAreas %}
  1293. \t\t\t\t\t\t{% if 'Canada' not in area.getTitle() %}
  1294. \t\t\t\t\t\t<li class=\"mr-3\">
  1295. \t\t\t\t\t\t\t<label><input 
  1296. \t\t\t\t\t\t\t\ttype=\"checkbox\"
  1297. \t\t\t\t\t\t\t\tname=\"area[]\"
  1298. \t\t\t\t\t\t\t\tvalue=\"{{ area.getId() }}\"
  1299. \t\t\t\t\t\t\t\tid=\"{{ area.getTitle() }}\"
  1300. \t\t\t\t\t\t\t\t{% if area.getId() in areas %}
  1301. \t\t\t\t\t\t\t\t\tchecked
  1302. \t\t\t\t\t\t\t\t{% endif %}
  1303. \t\t\t\t\t\t\t/> {{ area.getTitle() }}</label>
  1304. \t\t\t\t\t\t</li>
  1305. \t\t\t\t\t\t{% endif %}
  1306. \t\t\t\t\t\t{% endfor %}
  1307. \t\t\t\t\t</ul>
  1308. \t\t\t\t</div>
  1309. \t\t\t\t{#
  1310. \t\t\t\t<div class=\"col-sm-4\">
  1311. \t\t\t\t\t<button
  1312. \t\t\t\t\t\tclass=\"btn btn-block btn-primary float-right\"
  1313. \t\t\t\t\t\ttype=\"submit\"
  1314. \t\t\t\t\t><i class=\"fa fa-search\"></i> Search Listings</button>
  1315. \t\t\t\t</div>
  1316. \t\t\t\t#}
  1317. \t\t\t</div>
  1318. \t\t\t\t
  1319. \t\t</div>
  1320. \t</div>
  1321. \t
  1322. \t<div class=\"row\">
  1323. \t\t<div class=\"col-sm-12 mt-3\">
  1324. \t\t\t<hr />
  1325. \t\t</div>
  1326. \t</div>
  1327. \t
  1328. \t{% if totalListings %}
  1329. \t<div class=\"row\">
  1330. \t\t<div class=\"col-sm-12\">
  1331. \t\t\t<div class=\"pagination float-right\">
  1332. \t\t\t\t{% set paging = (page == \"_\") ? 0 : page %}
  1333. \t\t\t\t<div class=\"input-group\">
  1334. \t\t\t\t\t<div class=\"input-group-prepend px-3\">
  1335. \t\t\t\t\t\t<span>
  1336. \t\t\t\t\t\tShowing: 
  1337. \t\t\t\t\t\t
  1338. \t\t\t\t\t\t{{ paging * pagingSize + 1 }} - 
  1339. \t\t\t\t\t\t
  1340. \t\t\t\t\t\t{% if totalListings < (paging * pagingSize + pagingSize) %}
  1341. \t\t\t\t\t\t\t{{ totalListings }}
  1342. \t\t\t\t\t\t{% else %}
  1343. \t\t\t\t\t\t\t{{ paging * pagingSize + pagingSize }}
  1344. \t\t\t\t\t\t{% endif %}
  1345. \t\t\t\t\t\t
  1346. \t\t\t\t\t\tof 
  1347. \t\t\t\t\t\t
  1348. \t\t\t\t\t\t{{ totalListings }}
  1349. \t\t\t\t\t\t</span>
  1350. \t\t\t\t\t</div>
  1351. \t\t\t\t\t<div class=\"button-group input-group-append paging\">
  1352. \t\t\t\t\t\t{% if 0 < paging %}
  1353. \t\t\t\t\t\t<button class=\"btn paging\" value=\"{{ paging - 1 }}\">
  1354. \t\t\t\t\t\t\t<i class=\"fa fa-chevron-left\"></i>
  1355. \t\t\t\t\t\t</button>
  1356. \t\t\t\t\t\t{% endif %}
  1357. \t\t\t\t\t\t{% if (paging * pagingSize + pagingSize) < totalListings %}
  1358. \t\t\t\t\t\t<button class=\"btn paging\" value=\"{{ paging + 1 }}\">
  1359. \t\t\t\t\t\t\t<i class=\"fa fa-chevron-right\"></i>
  1360. \t\t\t\t\t\t</button>
  1361. \t\t\t\t\t\t{% endif %}
  1362. \t\t\t\t\t</div>
  1363. \t\t\t\t</div>
  1364. \t\t\t</div>
  1365. \t\t</div>
  1366. \t</div>
  1367. \t
  1368. \t{% else %}
  1369. \t
  1370. \t<div class=\"row\">
  1371. \t\t<div class=\"col-sm-12 text-center\">
  1372. \t\t\t<div class=\"alert alert-warning mb-0\"><i class=\"fa fa-exclamation-triangle\"></i> No Records Found</div>
  1373. \t\t</div>
  1374. \t</div>
  1375. \t
  1376. \t{% endif %}
  1377. \t
  1378. \t<div class=\"row\">
  1379. \t\t<div class=\"col-sm-12\">
  1380. \t\t\t<hr style=\"margin-bottom: 0;\" />
  1381. \t\t</div>
  1382. \t</div>
  1383. \t
  1384. \t<div class=\"row\">
  1385. \t\t<div class=\"col-sm-12\">
  1386. \t\t\t{% for listing in listings %}
  1387. \t\t\t{#<a href=\"{{ listing.getURL() }}\" class=\"no-style\">#}
  1388. \t\t\t\t<div class=\"row classified-index-row py-1{{ 0 < listing.getFeatured() ? ' featured' : '' }}\" style=\"min-height:200px;\"
  1389. \t\t\t\t\t{% if listing.getVideoMedia() %}
  1390. \t\t\t\t\t\tdata-video-row=\"{{listing.getVideoMedia().getId()}}\"
  1391. \t\t\t\t\t{% endif %}
  1392. \t\t\t\t>
  1393. \t\t\t\t\t
  1394. \t\t\t\t\t{% if listing.getFeaturedImageTag() or listing.getVideoMediaTag() %}
  1395. \t\t\t\t\t\t
  1396. \t\t\t\t\t\t{% if listing.hasVideoMedia() %}
  1397. \t\t\t\t\t\t\t<div class=\"col-sm-2\">
  1398. \t\t\t\t\t\t\t\t<a href=\"{{ listing.getURL() }}?autoplay=1\" class=\"no-style\">
  1399. \t\t\t\t\t\t\t\t\t<div class=\"ytThumbContainer ytThumbContainer-small\">
  1400. \t\t\t\t\t\t\t\t\t\t{#{{ listing.getFeaturedImageTag(\"ytThumbnail\",\"\")|raw }}#}
  1401. \t\t\t\t\t\t\t\t\t\t{% set mURL = \"\" %}
  1402. \t\t\t\t\t\t\t\t\t\t{% if listing.getMedia() %}
  1403. \t\t\t\t\t\t\t\t\t\t\t{% set mURL = listing.getMedia().getURL() %}
  1404. \t\t\t\t\t\t\t\t\t\t{% endif %}
  1405. \t\t\t\t\t\t\t\t\t\t{{ listing.getVideoMediaTag(\"\",\"max-height:165px;\", false, false, true, mURL)|raw }}
  1406. \t\t\t\t\t\t\t\t\t</div>
  1407. \t\t\t\t\t\t\t\t</a>
  1408. \t\t\t\t\t\t\t</div>
  1409. \t\t\t\t\t\t\t
  1410. \t\t\t\t\t\t\t<script>
  1411. \t\t\t\t\t\t\t/*
  1412. \t\t\t\t\t\t\t\tvar video = document.querySelector(\"[data-video-mid='{{listing.getVideoMedia().getId()}}']\");
  1413. \t\t\t\t\t\t\t\tvar videoDiv = document.querySelector(\"[data-video-row='{{listing.getVideoMedia().getId()}}']\");
  1414. \t\t\t\t\t\t\t\t
  1415. \t\t\t\t\t\t\t\tvideoDiv.addEventListener(\"mouseover\", console.log(\"test\"), true);
  1416. \t\t\t\t\t\t\t\t//videoDiv.addEventListener(\"mouseover\", video.play(), false);
  1417. \t\t\t\t\t\t\t\t//videoDiv.addEventListener(\"mouseout\", video.pause(), false);
  1418. \t\t\t\t\t\t\t*/
  1419. \t\t\t\t\t\t\t</script>
  1420. \t\t\t\t\t\t{% else %}
  1421. \t\t\t\t\t\t\t<div class=\"col-sm-2\">
  1422. \t\t\t\t\t\t\t\t<a href=\"{{ listing.getURL() }}\" class=\"no-style\">
  1423. \t\t\t\t\t\t\t\t\t{{ listing.getFeaturedImageTag(\"\",\"max-height:165px;\")|raw }}
  1424. \t\t\t\t\t\t\t\t</a>
  1425. \t\t\t\t\t\t\t</div>
  1426. \t\t\t\t\t\t{% endif %}
  1427. \t\t\t\t\t\t
  1428. \t\t\t\t\t\t<div class=\"col-sm-4\">
  1429. \t\t\t\t\t\t\t<a href=\"{{ listing.getURL() }}\" class=\"no-style\">
  1430. \t\t\t\t\t\t\t\t<h4 class=\"mb-0\">{{ listing.getTitle() | raw }}</h4>
  1431. \t\t\t\t\t\t\t\t{% set company_name = listing.getContentMetaValueByKey(\"_company_name\") %}
  1432. \t\t\t\t\t\t\t\t{% if company_name is not empty %}
  1433. \t\t\t\t\t\t\t\t\t<p>{{ company_name | raw }}</p>
  1434. \t\t\t\t\t\t\t\t{% endif %}
  1435. \t\t\t\t\t\t\t</a>
  1436. \t\t\t\t\t\t</div>
  1437. \t\t\t\t\t\t<div class=\"col-sm-3\">
  1438. \t\t\t\t\t\t\t<a href=\"{{ listing.getURL() }}\" class=\"no-style\">
  1439. \t\t\t\t\t\t\t\t{% set jobLocation = listing.getContentMetaByKey(\"_job_location\") %}
  1440. \t\t\t\t\t\t\t\t{{ jobLocation ? jobLocation.getMetaValue() : \"\" }}
  1441. \t\t\t\t\t\t\t</a>
  1442. \t\t\t\t\t\t</div>
  1443. \t\t\t\t\t{% else %}
  1444. \t\t\t\t\t\t<div class=\"col-sm-6\">
  1445. \t\t\t\t\t\t\t<a href=\"{{ listing.getURL() }}\" class=\"no-style\">
  1446. \t\t\t\t\t\t\t\t<h4 class=\"mb-0\">{{ listing.getTitle() | raw }}</h4>
  1447. \t\t\t\t\t\t\t\t<p>{{ listing.getContentMetaValueByKey(\"_company_name\") | raw }}</p>
  1448. \t\t\t\t\t\t\t</a>
  1449. \t\t\t\t\t\t</div>
  1450. \t\t\t\t\t\t<div class=\"col-sm-3\">
  1451. \t\t\t\t\t\t\t<a href=\"{{ listing.getURL() }}\" class=\"no-style\">
  1452. \t\t\t\t\t\t\t\t{% set jobLocation = listing.getContentMetaByKey(\"_job_location\") %}
  1453. \t\t\t\t\t\t\t\t{{ jobLocation ? jobLocation.getMetaValue() : \"\" }}
  1454. \t\t\t\t\t\t\t</a>
  1455. \t\t\t\t\t\t</div>
  1456. \t\t\t\t\t{% endif %}
  1457. \t\t\t\t\t<div class=\"col-sm-3\">
  1458. \t\t\t\t\t\t<a href=\"{{ listing.getURL() }}\" class=\"no-style\">
  1459. \t\t\t\t\t\t\t<div>
  1460. \t\t\t\t\t\t\t\t{% set jobType = listing.getSecondaryCategoriesByTaxonomy(\"job_listing_type\") %}
  1461. \t\t\t\t\t\t\t\t{% if 1 < jobType | length %}
  1462. \t\t\t\t\t\t\t\t\t<strong>Multiple</strong>
  1463. \t\t\t\t\t\t\t\t{% else %}
  1464. \t\t\t\t\t\t\t\t\t{% if jobType.first() %}
  1465. \t\t\t\t\t\t\t\t\t\t<strong>{{ jobType.first().getTitle() }}</strong>
  1466. \t\t\t\t\t\t\t\t\t{% endif %}
  1467. \t\t\t\t\t\t\t\t{% endif %}
  1468. \t\t\t\t\t\t\t</div>
  1469. \t\t\t\t\t\t\t{{ post_age_format(date(listing.getPublishedAt()|date).diff(date(\"now\"))) }}
  1470. \t\t\t\t\t\t</a>
  1471. \t\t\t\t\t</div>
  1472. \t\t\t\t</div>
  1473. \t\t\t{#</a>#}
  1474. \t\t\t<hr class=\"m-0\" />
  1475. \t\t\t{% endfor %}
  1476. \t\t</div>
  1477. \t\t
  1478. \t</div>
  1479. \t
  1480. \t
  1481. \t{% if totalListings %}
  1482. \t<div class=\"row\">
  1483. \t\t<div class=\"col-sm-12\">
  1484. \t\t\t<div class=\"pagination float-right\">
  1485. \t\t\t\t{% set paging = (page == \"_\") ? 0 : page %}
  1486. \t\t\t\t<div class=\"input-group\">
  1487. \t\t\t\t\t<div class=\"input-group-prepend px-3\">
  1488. \t\t\t\t\t\t<span>
  1489. \t\t\t\t\t\tShowing: 
  1490. \t\t\t\t\t\t
  1491. \t\t\t\t\t\t{{ paging * pagingSize + 1 }} - 
  1492. \t\t\t\t\t\t
  1493. \t\t\t\t\t\t{% if totalListings < (paging * pagingSize + pagingSize) %}
  1494. \t\t\t\t\t\t\t{{ totalListings }}
  1495. \t\t\t\t\t\t{% else %}
  1496. \t\t\t\t\t\t\t{{ paging * pagingSize + pagingSize }}
  1497. \t\t\t\t\t\t{% endif %}
  1498. \t\t\t\t\t\t
  1499. \t\t\t\t\t\tof 
  1500. \t\t\t\t\t\t
  1501. \t\t\t\t\t\t{{ totalListings }}
  1502. \t\t\t\t\t\t</span>
  1503. \t\t\t\t\t</div>
  1504. \t\t\t\t\t<div class=\"button-group input-group-append paging\">
  1505. \t\t\t\t\t\t{% if 0 < paging %}
  1506. \t\t\t\t\t\t<button class=\"btn paging\" value=\"{{ paging - 1 }}\">
  1507. \t\t\t\t\t\t\t<i class=\"fa fa-chevron-left\"></i>
  1508. \t\t\t\t\t\t</button>
  1509. \t\t\t\t\t\t{% endif %}
  1510. \t\t\t\t\t\t{% if (paging * pagingSize + pagingSize) < totalListings %}
  1511. \t\t\t\t\t\t<button class=\"btn paging\" value=\"{{ paging + 1 }}\">
  1512. \t\t\t\t\t\t\t<i class=\"fa fa-chevron-right\"></i>
  1513. \t\t\t\t\t\t</button>
  1514. \t\t\t\t\t\t{% endif %}
  1515. \t\t\t\t\t</div>
  1516. \t\t\t\t</div>
  1517. \t\t\t</div>
  1518. \t\t</div>
  1519. \t</div>
  1520. \t{% endif %}
  1521. \t
  1522. \t
  1523. \t</form>
  1524. \t
  1525. \t
  1526. <script>
  1527. \t(function(\$){
  1528. \t\t\$(function(){
  1529. \t\t\t
  1530. \t\t\t\$('[data-video-row]').each(function() {
  1531. \t\t\t\t//\$video = \$(this).find('video').first();
  1532. \t\t\t\t\$(this).on('mouseover', function() {
  1533. \t\t\t\t\t\$(this).find('video').first()[0].play();
  1534. \t\t\t\t\t\$(this).find('.ytThumbContainer').first().stop(true,true).addClass('ytThumbContainer-playing', 500);
  1535. \t\t\t\t\t//console.log(\$video);
  1536. \t\t\t\t\t//console.log(\$(this).attr(\"data-video-row\"));
  1537. \t\t\t\t});
  1538. \t\t\t\t
  1539. \t\t\t\t\$(this).on('mouseleave', function() {
  1540. \t\t\t\t\t//\$(this).find('video').first()[0].pause();
  1541. \t\t\t\t\t//\$(this).find('video').first()[0].currentTime=0;
  1542. \t\t\t\t\t\$(this).find('video').first()[0].load();
  1543. \t\t\t\t\t\$(this).find('.ytThumbContainer').first().stop(true,true).removeClass('ytThumbContainer-playing', 100);
  1544. \t\t\t\t});
  1545. \t\t\t});
  1546. \t\t\t\t
  1547. \t\t\t/*\t
  1548. \t\t\t
  1549. \t\t\t
  1550. \t\t\t\$('#user-dashboard-container').on('click', '#addNote', function() {
  1551. \t\t\t\t\$(\"#contactNotes\").append(noteHtml.join(''));
  1552. \t\t\t\t\$(\"#updateNotes\").show();
  1553. \t\t\t});
  1554. \t\t\t
  1555. \t\t\t\$('#user-dashboard-container').on('click', '.deleteNote', function() {
  1556. \t\t\t\t\$(this).parent().parent().remove();
  1557. \t\t\t});
  1558. \t\t\t*/
  1559. \t\t\t
  1560. \t\t});
  1561. \t}(jQuery));
  1562. </script>
  1563.             
  1564. {% endblock %}
  1565. {% block sidebar %}
  1566. \t{% include \"includes/sidebar.html.twig\" %}
  1567. {% endblock %}
  1568. {% endembed %}
  1569. {% endblock %}""content/classified-index.html.twig""/var/www/vhosts/rooferscoffeeshop.com/staging.rooferscoffeeshop.com/rcs-website/templates/content/classified-index.html.twig");
  1570.     }
  1571. }