<?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;
/* school/teacher.html.twig */
class __TwigTemplate_325b03a1c6cd990ff89682a11fdbeb2b extends Template
{
private $source;
private $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)
{
// line 1
return "layout/frontEndLayout.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", "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);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_name($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", "name"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "name"));
echo "Teaachers of Bethesda ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 5
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 6
echo "\t<div class=\"all-title-box\">
\t\t<div class=\"container text-center\">
\t\t\t<h1><span class=\"m_1\"> ";
// line 8
echo twig_escape_filter($this->env, $this->extensions['App\Twig\AppExtension']->pluralize(twig_length_filter($this->env, (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);
echo " </span></h1>
\t\t</div>
\t</div>
\t";
// line 11
if ((twig_length_filter($this->env, (isset($context["users"]) || array_key_exists("users", $context) ? $context["users"] : (function () { throw new RuntimeError('Variable "users" does not exist.', 11, $this->source); })())) > 0)) {
echo "
\t\t<div id=\"teachers\" class=\"section wb\">
\t<div class=\"container\">
\t\t";
// line 14
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_array_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
echo "\t\t\t\t<div class=\"row\">
\t\t\t\t";
// line 16
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($context["row"]);
foreach ($context['_seq'] as $context["_key"] => $context["user"]) {
// line 17
echo "\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
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "avatar", [75], "method", false, false, false, 21), "html", null, true);
echo "\" 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
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "fullName", [], "any", false, false, false, 33), "html", null, true);
echo "</h3>
\t\t\t\t\t\t\t\t<span class=\"post\">";
// line 34
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "domain", [], "any", false, false, false, 34), "html", null, true);
echo "</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['_iterated'], $context['_key'], $context['user'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 39
echo "\t\t\t\t</div><!-- end row -->
\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['row'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 40
echo "\t
\t\t\t
\t\t </div><!-- end container -->
\t\t \t";
} else {
// line 44
echo "\t\t<p class=\"mt-5 h1 text-center\"> No teacher yet. <a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_users_create");
echo "\"> Be the first! </a> </p>
\t";
}
// line 46
echo " </div><!-- end section -->
\t
\t
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "school/teacher.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 170 => 46, 164 => 44, 158 => 40, 151 => 39, 140 => 34, 136 => 33, 121 => 21, 115 => 17, 111 => 16, 108 => 15, 104 => 14, 98 => 11, 92 => 8, 88 => 6, 78 => 5, 59 => 3, 36 => 1,);
}
public function getSourceContext()
{
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/liveedu/public/preprod/liveedu/templates/school/teacher.html.twig");
}
}