<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* content/tmpl/meet-rcs-influencers.html.twig */
class __TwigTemplate_09a5f2b3e239bdfe09c90b61b89bb254 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'column' => [$this, 'block_column'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "1-col-sidebar.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "content/tmpl/meet-rcs-influencers.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "content/tmpl/meet-rcs-influencers.html.twig"));
$this->parent = $this->loadTemplate("1-col-sidebar.html.twig", "content/tmpl/meet-rcs-influencers.html.twig", 2);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 4
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 5
echo "\t
\t";
// line 6
if (twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 6, $this->source); })()), "getShowTitle", [], "method", false, false, false, 6)) {
// line 7
echo "\t\t<h1>";
echo twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 7, $this->source); })()), "getTitle", [], "method", false, false, false, 7);
echo "</h1>
\t";
}
// line 9
echo "\t
\t
\t";
// line 11
if (twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 11, $this->source); })()), "getFeaturedImageTag", [], "method", false, false, false, 11)) {
// line 12
echo "\t\t";
echo twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 12, $this->source); })()), "getFeaturedImageTag", ["display-block", ""], "method", false, false, false, 12);
echo "
\t";
}
// line 14
echo "\t
\t";
// line 16
echo "\t";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 16, $this->source); })()), "getContentFull", [], "method", false, false, false, 16))) {
// line 17
echo "\t\t";
echo $this->extensions['App\Twig\RCSExtension']->wordpress(twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 17, $this->source); })()), "getContentFull", [], "method", false, false, false, 17));
echo "
\t";
}
// line 19
echo "\t
\t";
// line 21
echo "\t";
// line 26
echo "\t<br>
\t<div class=\"clearfix\">
\t\t<div class=\"row\">
\t\t";
// line 29
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["customers"]) || array_key_exists("customers", $context) ? $context["customers"] : (function () { throw new RuntimeError('Variable "customers" does not exist.', 29, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["customer"]) {
// line 30
echo "\t\t\t";
$context["directory"] = twig_get_attribute($this->env, $this->source, $context["customer"], "getDirectoryContent", [], "method", false, false, false, 30);
// line 31
echo "\t\t\t";
if ( !twig_test_empty((isset($context["directory"]) || array_key_exists("directory", $context) ? $context["directory"] : (function () { throw new RuntimeError('Variable "directory" does not exist.', 31, $this->source); })()))) {
// line 32
echo "\t\t\t\t<div class=\"col-md-2\">
\t\t\t\t<center>
\t\t\t\t\t<a href=\"";
// line 34
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["directory"]) || array_key_exists("directory", $context) ? $context["directory"] : (function () { throw new RuntimeError('Variable "directory" does not exist.', 34, $this->source); })()), "getURL", [], "method", false, false, false, 34), "html", null, true);
echo "\">
\t\t\t\t\t\t";
// line 35
echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["customer"], "getMedia", [], "method", false, false, false, 35), "getImageTag", ["d-block"], "method", false, false, false, 35);
echo "
\t\t\t\t\t\t";
// line 36
$context["titles"] = twig_split_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["directory"]) || array_key_exists("directory", $context) ? $context["directory"] : (function () { throw new RuntimeError('Variable "directory" does not exist.', 36, $this->source); })()), "getTitle", [], "method", false, false, false, 36), "-");
// line 37
echo "\t\t\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["titles"]) || array_key_exists("titles", $context) ? $context["titles"] : (function () { throw new RuntimeError('Variable "titles" does not exist.', 37, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["title"]) {
// line 38
echo "\t\t\t\t\t\t\t";
if (($context["title"] == " RCS Influencer")) {
// line 39
echo "\t\t\t\t\t\t\t\t<br><span>";
echo twig_escape_filter($this->env, $context["title"], "html", null, true);
echo "</span>
\t\t\t\t\t\t\t";
} else {
// line 41
echo "\t\t\t\t\t\t\t\t<span>";
echo twig_escape_filter($this->env, $context["title"], "html", null, true);
echo "</span>
\t\t\t\t\t\t\t";
}
// line 43
echo "\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['title'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 44
echo "\t\t\t\t\t</a>
\t\t\t\t</center>
\t\t\t\t</div>
\t\t\t";
}
// line 48
echo "\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['customer'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 49
echo "\t\t</div>
\t</div>
\t
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "content/tmpl/meet-rcs-influencers.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 175 => 49, 169 => 48, 163 => 44, 157 => 43, 151 => 41, 145 => 39, 142 => 38, 137 => 37, 135 => 36, 131 => 35, 127 => 34, 123 => 32, 120 => 31, 117 => 30, 113 => 29, 108 => 26, 106 => 21, 103 => 19, 97 => 17, 94 => 16, 91 => 14, 85 => 12, 83 => 11, 79 => 9, 73 => 7, 71 => 6, 68 => 5, 58 => 4, 35 => 2,);
}
public function getSourceContext()
{
return new Source("
{% extends \"1-col-sidebar.html.twig\" %}
{% block column %}
\t
\t{% if content.getShowTitle() %}
\t\t<h1>{{ content.getTitle() | raw }}</h1>
\t{% endif %}
\t
\t
\t{% if content.getFeaturedImageTag() %}
\t\t{{ content.getFeaturedImageTag(\"display-block\",\"\")|raw }}
\t{% endif %}
\t
\t{# show full content #}
\t{% if content.getContentFull() is not empty %}
\t\t{{ content.getContentFull() | wordpress | raw }}
\t{% endif %}
\t
\t{# show builder content #}
\t{#
\t{% if content.getContentBuilder() and content.getContentBuilder() != '{}' %}
\t\t{{ content.getContentBuilder() | builder | raw }}
\t{% endif %}
\t#}
\t<br>
\t<div class=\"clearfix\">
\t\t<div class=\"row\">
\t\t{% for customer in customers %}
\t\t\t{% set directory = customer.getDirectoryContent() %}
\t\t\t{% if directory is not empty %}
\t\t\t\t<div class=\"col-md-2\">
\t\t\t\t<center>
\t\t\t\t\t<a href=\"{{directory.getURL()}}\">
\t\t\t\t\t\t{{ customer.getMedia().getImageTag(\"d-block\")|raw }}
\t\t\t\t\t\t{% set titles = directory.getTitle() | split('-') %}
\t\t\t\t\t\t{% for title in titles %}
\t\t\t\t\t\t\t{% if title == ' RCS Influencer' %}
\t\t\t\t\t\t\t\t<br><span>{{title}}</span>
\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t<span>{{title}}</span>
\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t</a>
\t\t\t\t</center>
\t\t\t\t</div>
\t\t\t{% endif %}
\t\t{% endfor %}
\t\t</div>
\t</div>
\t
{% endblock %}", "content/tmpl/meet-rcs-influencers.html.twig", "/var/www/vhosts/rooferscoffeeshop.com/staging.rooferscoffeeshop.com/rcs-website/templates/content/tmpl/meet-rcs-influencers.html.twig");
}
}