var/cache/dev/twig/bf/bf380a0d2e2ecf91c002a3ab24659259.php line 48

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* content/tmpl/meet-rcs-influencers.html.twig */
  14. class __TwigTemplate_09a5f2b3e239bdfe09c90b61b89bb254 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'column' => [$this'block_column'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 2
  29.         return "1-col-sidebar.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/tmpl/meet-rcs-influencers.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/tmpl/meet-rcs-influencers.html.twig"));
  38.         $this->parent $this->loadTemplate("1-col-sidebar.html.twig""content/tmpl/meet-rcs-influencers.html.twig"2);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  42.         
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  44.     }
  45.     // line 4
  46.     public function block_column($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""column"));
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""column"));
  53.         // line 5
  54.         echo "\t
  55. \t";
  56.         // line 6
  57.         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"falsefalsefalse6)) {
  58.             // line 7
  59.             echo "\t\t<h1>";
  60.             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"falsefalsefalse7);
  61.             echo "</h1>
  62. \t";
  63.         }
  64.         // line 9
  65.         echo "\t
  66. \t
  67. \t";
  68.         // line 11
  69.         if (twig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'11$this->source); })()), "getFeaturedImageTag", [], "method"falsefalsefalse11)) {
  70.             // line 12
  71.             echo "\t\t";
  72.             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"falsefalsefalse12);
  73.             echo "
  74. \t";
  75.         }
  76.         // line 14
  77.         echo "\t
  78. \t";
  79.         // line 16
  80.         echo "\t";
  81.         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"falsefalsefalse16))) {
  82.             // line 17
  83.             echo "\t\t";
  84.             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"falsefalsefalse17));
  85.             echo "
  86. \t";
  87.         }
  88.         // line 19
  89.         echo "\t
  90. \t";
  91.         // line 21
  92.         echo "\t";
  93.         // line 26
  94.         echo "\t<br>
  95. \t<div class=\"clearfix\">
  96. \t\t<div class=\"row\">
  97. \t\t";
  98.         // line 29
  99.         $context['_parent'] = $context;
  100.         $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); })()));
  101.         foreach ($context['_seq'] as $context["_key"] => $context["customer"]) {
  102.             // line 30
  103.             echo "\t\t\t";
  104.             $context["directory"] = twig_get_attribute($this->env$this->source$context["customer"], "getDirectoryContent", [], "method"falsefalsefalse30);
  105.             // line 31
  106.             echo "\t\t\t";
  107.             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); })()))) {
  108.                 // line 32
  109.                 echo "\t\t\t\t<div class=\"col-md-2\">
  110. \t\t\t\t<center>
  111. \t\t\t\t\t<a href=\"";
  112.                 // line 34
  113.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse34), "html"nulltrue);
  114.                 echo "\">
  115. \t\t\t\t\t\t";
  116.                 // line 35
  117.                 echo twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["customer"], "getMedia", [], "method"falsefalsefalse35), "getImageTag", ["d-block"], "method"falsefalsefalse35);
  118.                 echo "
  119. \t\t\t\t\t\t";
  120.                 // line 36
  121.                 $context["titles"] = twig_split_filter($this->envtwig_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"falsefalsefalse36), "-");
  122.                 // line 37
  123.                 echo "\t\t\t\t\t\t";
  124.                 $context['_parent'] = $context;
  125.                 $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); })()));
  126.                 foreach ($context['_seq'] as $context["_key"] => $context["title"]) {
  127.                     // line 38
  128.                     echo "\t\t\t\t\t\t\t";
  129.                     if (($context["title"] == " RCS Influencer")) {
  130.                         // line 39
  131.                         echo "\t\t\t\t\t\t\t\t<br><span>";
  132.                         echo twig_escape_filter($this->env$context["title"], "html"nulltrue);
  133.                         echo "</span>
  134. \t\t\t\t\t\t\t";
  135.                     } else {
  136.                         // line 41
  137.                         echo "\t\t\t\t\t\t\t\t<span>";
  138.                         echo twig_escape_filter($this->env$context["title"], "html"nulltrue);
  139.                         echo "</span>
  140. \t\t\t\t\t\t\t";
  141.                     }
  142.                     // line 43
  143.                     echo "\t\t\t\t\t\t";
  144.                 }
  145.                 $_parent $context['_parent'];
  146.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['title'], $context['_parent'], $context['loop']);
  147.                 $context array_intersect_key($context$_parent) + $_parent;
  148.                 // line 44
  149.                 echo "\t\t\t\t\t</a>
  150. \t\t\t\t</center>
  151. \t\t\t\t</div>
  152. \t\t\t";
  153.             }
  154.             // line 48
  155.             echo "\t\t";
  156.         }
  157.         $_parent $context['_parent'];
  158.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['customer'], $context['_parent'], $context['loop']);
  159.         $context array_intersect_key($context$_parent) + $_parent;
  160.         // line 49
  161.         echo "\t\t</div>
  162. \t</div>
  163. \t
  164. ";
  165.         
  166.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  167.         
  168.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  169.     }
  170.     public function getTemplateName()
  171.     {
  172.         return "content/tmpl/meet-rcs-influencers.html.twig";
  173.     }
  174.     public function isTraitable()
  175.     {
  176.         return false;
  177.     }
  178.     public function getDebugInfo()
  179.     {
  180.         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,);
  181.     }
  182.     public function getSourceContext()
  183.     {
  184.         return new Source("
  185. {% extends \"1-col-sidebar.html.twig\" %}
  186. {% block column %}
  187. \t
  188. \t{% if content.getShowTitle() %}
  189. \t\t<h1>{{ content.getTitle() | raw }}</h1>
  190. \t{% endif %}
  191. \t
  192. \t
  193. \t{% if content.getFeaturedImageTag() %}
  194. \t\t{{ content.getFeaturedImageTag(\"display-block\",\"\")|raw }}
  195. \t{% endif %}
  196. \t
  197. \t{# show full content #}
  198. \t{% if content.getContentFull() is not empty %}
  199. \t\t{{ content.getContentFull() | wordpress | raw }}
  200. \t{% endif %}
  201. \t
  202. \t{# show builder content #}
  203. \t{#
  204. \t{% if content.getContentBuilder() and content.getContentBuilder() != '{}' %}
  205. \t\t{{ content.getContentBuilder() | builder | raw }}
  206. \t{% endif %}
  207. \t#}
  208. \t<br>
  209. \t<div class=\"clearfix\">
  210. \t\t<div class=\"row\">
  211. \t\t{% for customer in customers %}
  212. \t\t\t{% set directory = customer.getDirectoryContent() %}
  213. \t\t\t{% if directory is not empty %}
  214. \t\t\t\t<div class=\"col-md-2\">
  215. \t\t\t\t<center>
  216. \t\t\t\t\t<a href=\"{{directory.getURL()}}\">
  217. \t\t\t\t\t\t{{ customer.getMedia().getImageTag(\"d-block\")|raw }}
  218. \t\t\t\t\t\t{% set titles = directory.getTitle() | split('-') %}
  219. \t\t\t\t\t\t{% for title in titles %}
  220. \t\t\t\t\t\t\t{% if title == ' RCS Influencer' %}
  221. \t\t\t\t\t\t\t\t<br><span>{{title}}</span>
  222. \t\t\t\t\t\t\t{% else %}
  223. \t\t\t\t\t\t\t\t<span>{{title}}</span>
  224. \t\t\t\t\t\t\t{% endif %}
  225. \t\t\t\t\t\t{% endfor %}
  226. \t\t\t\t\t</a>
  227. \t\t\t\t</center>
  228. \t\t\t\t</div>
  229. \t\t\t{% endif %}
  230. \t\t{% endfor %}
  231. \t\t</div>
  232. \t</div>
  233. \t
  234. {% 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");
  235.     }
  236. }