<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
use Twig\TemplateWrapper;
/* school/teacher.html.twig */
class __TwigTemplate_8c379ef278e59270a5e2d5f87dabd3ac extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'name' => [$this, 'block_name'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "layout/frontEndLayout.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$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", "school/teacher.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "school/teacher.html.twig"));
$this->parent = $this->loadTemplate("layout/frontEndLayout.html.twig", "school/teacher.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_name(array $context, array $blocks = []): iterable
{
$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", "name"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "name"));
yield "Teaachers of Bethesda ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 5
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_body(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 6
yield "\t<div class=\"all-title-box\">
\t\t<div class=\"container text-center\">
\t\t\t<h1><span class=\"m_1\"> ";
// line 8
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\AppExtension']->pluralize(Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["users"]) || array_key_exists("users", $context) ? $context["users"] : (function () { throw new RuntimeError('Variable "users" does not exist.', 8, $this->source); })())), "Teacher", "Teachers"), "html", null, true);
yield " </span></h1>
\t\t</div>
\t</div>
\t";
// line 11
if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["users"]) || array_key_exists("users", $context) ? $context["users"] : (function () { throw new RuntimeError('Variable "users" does not exist.', 11, $this->source); })())) > 0)) {
yield "
\t\t<div id=\"teachers\" class=\"section wb\">
\t<div class=\"container\">
\t\t";
// line 14
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(Twig\Extension\CoreExtension::batch((isset($context["users"]) || array_key_exists("users", $context) ? $context["users"] : (function () { throw new RuntimeError('Variable "users" does not exist.', 14, $this->source); })()), 4));
foreach ($context['_seq'] as $context["_key"] => $context["row"]) {
// line 15
yield "\t\t\t\t<div class=\"row\">
\t\t\t\t";
// line 16
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable($context["row"]);
foreach ($context['_seq'] as $context["_key"] => $context["user"]) {
// line 17
yield "\t\t\t\t\t<div class=\"col-lg-3 col-md-4 col-6\">
\t\t\t\t\t\t<div class=\"our-team\">
\t\t\t\t\t\t\t<div class=\"team-img\">
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t<img src=\"";
// line 21
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["user"], "avatar", [75], "method", false, false, false, 21), "html", null, true);
yield "\" class=\"w-100\">
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t<div class=\"social\">
\t\t\t\t\t\t\t\t\t<ul>
\t\t\t\t\t\t\t\t\t\t<li><a href=\"#\" class=\"fa fa-facebook\"></a></li>
\t\t\t\t\t\t\t\t\t\t<li><a href=\"#\" class=\"fa fa-twitter\"></a></li>
\t\t\t\t\t\t\t\t\t\t<li><a href=\"#\" class=\"fa fa-linkedin\"></a></li>
\t\t\t\t\t\t\t\t\t\t<li><a href=\"#\" class=\"fa fa-skype\"></a></li>
\t\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"team-content\">
\t\t\t\t\t\t\t\t<h3 class=\"title\">";
// line 33
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["user"], "fullName", [], "any", false, false, false, 33), "html", null, true);
yield "</h3>
\t\t\t\t\t\t\t\t<span class=\"post\">";
// line 34
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["user"], "domain", [], "any", false, false, false, 34), "html", null, true);
yield "</span>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['user'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 39
yield "\t\t\t\t</div><!-- end row -->
\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['row'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 40
yield "\t
\t\t\t
\t\t </div><!-- end container -->
\t\t \t";
} else {
// line 44
yield "\t\t<p class=\"mt-5 h1 text-center\"> No teacher yet. <a href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_users_create");
yield "\"> Be the first! </a> </p>
\t";
}
// line 46
yield " </div><!-- end section -->
\t
\t
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "school/teacher.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 182 => 46, 176 => 44, 170 => 40, 163 => 39, 152 => 34, 148 => 33, 133 => 21, 127 => 17, 123 => 16, 120 => 15, 116 => 14, 110 => 11, 104 => 8, 100 => 6, 87 => 5, 64 => 3, 41 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends 'layout/frontEndLayout.html.twig' %}
{% block name %}Teaachers of Bethesda {% endblock %}
{% block body %}
\t<div class=\"all-title-box\">
\t\t<div class=\"container text-center\">
\t\t\t<h1><span class=\"m_1\"> {{ pluralize(users|length, 'Teacher' , 'Teachers') }} </span></h1>
\t\t</div>
\t</div>
\t{% if users|length > 0 %}
\t\t<div id=\"teachers\" class=\"section wb\">
\t<div class=\"container\">
\t\t{% for row in users|batch(4) %}
\t\t\t\t<div class=\"row\">
\t\t\t\t{% for user in row %}
\t\t\t\t\t<div class=\"col-lg-3 col-md-4 col-6\">
\t\t\t\t\t\t<div class=\"our-team\">
\t\t\t\t\t\t\t<div class=\"team-img\">
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t<img src=\"{{ user.avatar(75) }}\" class=\"w-100\">
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t<div class=\"social\">
\t\t\t\t\t\t\t\t\t<ul>
\t\t\t\t\t\t\t\t\t\t<li><a href=\"#\" class=\"fa fa-facebook\"></a></li>
\t\t\t\t\t\t\t\t\t\t<li><a href=\"#\" class=\"fa fa-twitter\"></a></li>
\t\t\t\t\t\t\t\t\t\t<li><a href=\"#\" class=\"fa fa-linkedin\"></a></li>
\t\t\t\t\t\t\t\t\t\t<li><a href=\"#\" class=\"fa fa-skype\"></a></li>
\t\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"team-content\">
\t\t\t\t\t\t\t\t<h3 class=\"title\">{{user.fullName}}</h3>
\t\t\t\t\t\t\t\t<span class=\"post\">{{user.domain}}</span>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t{% endfor %}
\t\t\t\t</div><!-- end row -->
\t\t{% endfor %}\t
\t\t\t
\t\t </div><!-- end container -->
\t\t \t{% else %}
\t\t<p class=\"mt-5 h1 text-center\"> No teacher yet. <a href=\"{{path('admin_users_create')}}\"> Be the first! </a> </p>
\t{% endif %}
</div><!-- end section -->
\t
\t
{% endblock %}
", "school/teacher.html.twig", "/var/www/prod/current/templates/school/teacher.html.twig");
}
}