var/cache/dev/twig/3c/3c4417b5ee0dca4c6a9d6cb6bbb1eaf8.php line 44

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* school/teacher.html.twig */
  16. class __TwigTemplate_8c379ef278e59270a5e2d5f87dabd3ac extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->blocks = [
  28.             'name' => [$this'block_name'],
  29.             'body' => [$this'block_body'],
  30.         ];
  31.     }
  32.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  33.     {
  34.         // line 1
  35.         return "layout/frontEndLayout.html.twig";
  36.     }
  37.     protected function doDisplay(array $context, array $blocks = []): iterable
  38.     {
  39.         $macros $this->macros;
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""school/teacher.html.twig"));
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""school/teacher.html.twig"));
  44.         $this->parent $this->loadTemplate("layout/frontEndLayout.html.twig""school/teacher.html.twig"1);
  45.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 3
  52.     /**
  53.      * @return iterable<null|scalar|\Stringable>
  54.      */
  55.     public function block_name(array $context, array $blocks = []): iterable
  56.     {
  57.         $macros $this->macros;
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""name"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""name"));
  62.         yield "Teaachers of Bethesda ";
  63.         
  64.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  65.         
  66.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  67.         yield from [];
  68.     }
  69.     // line 5
  70.     /**
  71.      * @return iterable<null|scalar|\Stringable>
  72.      */
  73.     public function block_body(array $context, array $blocks = []): iterable
  74.     {
  75.         $macros $this->macros;
  76.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  77.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  78.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  79.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  80.         // line 6
  81.         yield "\t<div class=\"all-title-box\">
  82. \t\t<div class=\"container text-center\">
  83. \t\t\t<h1><span class=\"m_1\"> ";
  84.         // line 8
  85.         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"nulltrue);
  86.         yield " </span></h1>
  87. \t\t</div>
  88. \t</div>
  89. \t";
  90.         // line 11
  91.         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)) {
  92.             yield 
  93. \t\t<div id=\"teachers\" class=\"section wb\">
  94.         \t<div class=\"container\">
  95. \t\t";
  96.             // line 14
  97.             $context['_parent'] = $context;
  98.             $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));
  99.             foreach ($context['_seq'] as $context["_key"] => $context["row"]) {
  100.                 // line 15
  101.                 yield "\t\t\t\t<div class=\"row\">
  102. \t\t\t\t";
  103.                 // line 16
  104.                 $context['_parent'] = $context;
  105.                 $context['_seq'] = CoreExtension::ensureTraversable($context["row"]);
  106.                 foreach ($context['_seq'] as $context["_key"] => $context["user"]) {
  107.                     // line 17
  108.                     yield "\t\t\t\t\t<div class=\"col-lg-3 col-md-4 col-6\">
  109. \t\t\t\t\t\t<div class=\"our-team\">
  110. \t\t\t\t\t\t\t<div class=\"team-img\">
  111. \t\t\t\t\t\t\t
  112. \t\t\t\t\t\t\t\t<img src=\"";
  113.                     // line 21
  114.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["user"], "avatar", [75], "method"falsefalsefalse21), "html"nulltrue);
  115.                     yield "\" class=\"w-100\">
  116. \t\t\t\t\t\t\t
  117. \t\t\t\t\t\t\t\t<div class=\"social\">
  118. \t\t\t\t\t\t\t\t\t<ul>
  119. \t\t\t\t\t\t\t\t\t\t<li><a href=\"#\" class=\"fa fa-facebook\"></a></li>
  120. \t\t\t\t\t\t\t\t\t\t<li><a href=\"#\" class=\"fa fa-twitter\"></a></li>
  121. \t\t\t\t\t\t\t\t\t\t<li><a href=\"#\" class=\"fa fa-linkedin\"></a></li>
  122. \t\t\t\t\t\t\t\t\t\t<li><a href=\"#\" class=\"fa fa-skype\"></a></li>
  123. \t\t\t\t\t\t\t\t\t</ul>
  124. \t\t\t\t\t\t\t\t</div>
  125. \t\t\t\t\t\t\t</div>
  126. \t\t\t\t\t\t\t<div class=\"team-content\">
  127. \t\t\t\t\t\t\t\t<h3 class=\"title\">";
  128.                     // line 33
  129.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["user"], "fullName", [], "any"falsefalsefalse33), "html"nulltrue);
  130.                     yield "</h3>
  131. \t\t\t\t\t\t\t\t<span class=\"post\">";
  132.                     // line 34
  133.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["user"], "domain", [], "any"falsefalsefalse34), "html"nulltrue);
  134.                     yield "</span>
  135. \t\t\t\t\t\t\t</div>
  136. \t\t\t\t\t\t</div>
  137. \t\t\t\t\t</div>
  138. \t\t\t\t";
  139.                 }
  140.                 $_parent $context['_parent'];
  141.                 unset($context['_seq'], $context['_key'], $context['user'], $context['_parent']);
  142.                 $context array_intersect_key($context$_parent) + $_parent;
  143.                 // line 39
  144.                 yield "\t\t\t\t</div><!-- end row -->
  145. \t\t";
  146.             }
  147.             $_parent $context['_parent'];
  148.             unset($context['_seq'], $context['_key'], $context['row'], $context['_parent']);
  149.             $context array_intersect_key($context$_parent) + $_parent;
  150.             // line 40
  151.             yield "\t
  152. \t\t\t
  153. \t\t  </div><!-- end container -->
  154. \t\t  \t";
  155.         } else {
  156.             // line 44
  157.             yield "\t\t<p class=\"mt-5 h1 text-center\"> No teacher yet.    <a href=\"";
  158.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_users_create");
  159.             yield "\"> Be the first! </a> </p>
  160. \t";
  161.         }
  162.         // line 46
  163.         yield "    </div><!-- end section -->
  164.       \t
  165. \t
  166. ";
  167.         
  168.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  169.         
  170.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  171.         yield from [];
  172.     }
  173.     /**
  174.      * @codeCoverageIgnore
  175.      */
  176.     public function getTemplateName(): string
  177.     {
  178.         return "school/teacher.html.twig";
  179.     }
  180.     /**
  181.      * @codeCoverageIgnore
  182.      */
  183.     public function isTraitable(): bool
  184.     {
  185.         return false;
  186.     }
  187.     /**
  188.      * @codeCoverageIgnore
  189.      */
  190.     public function getDebugInfo(): array
  191.     {
  192.         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,);
  193.     }
  194.     public function getSourceContext(): Source
  195.     {
  196.         return new Source("{% extends 'layout/frontEndLayout.html.twig' %}
  197. {% block name %}Teaachers of Bethesda {% endblock %}
  198. {% block body %}
  199. \t<div class=\"all-title-box\">
  200. \t\t<div class=\"container text-center\">
  201. \t\t\t<h1><span class=\"m_1\"> {{ pluralize(users|length, 'Teacher' , 'Teachers')  }} </span></h1>
  202. \t\t</div>
  203. \t</div>
  204. \t{% if  users|length > 0  %} 
  205. \t\t<div id=\"teachers\" class=\"section wb\">
  206.         \t<div class=\"container\">
  207. \t\t{% for row in users|batch(4) %}
  208. \t\t\t\t<div class=\"row\">
  209. \t\t\t\t{% for user in row %}
  210. \t\t\t\t\t<div class=\"col-lg-3 col-md-4 col-6\">
  211. \t\t\t\t\t\t<div class=\"our-team\">
  212. \t\t\t\t\t\t\t<div class=\"team-img\">
  213. \t\t\t\t\t\t\t
  214. \t\t\t\t\t\t\t\t<img src=\"{{ user.avatar(75) }}\" class=\"w-100\">
  215. \t\t\t\t\t\t\t
  216. \t\t\t\t\t\t\t\t<div class=\"social\">
  217. \t\t\t\t\t\t\t\t\t<ul>
  218. \t\t\t\t\t\t\t\t\t\t<li><a href=\"#\" class=\"fa fa-facebook\"></a></li>
  219. \t\t\t\t\t\t\t\t\t\t<li><a href=\"#\" class=\"fa fa-twitter\"></a></li>
  220. \t\t\t\t\t\t\t\t\t\t<li><a href=\"#\" class=\"fa fa-linkedin\"></a></li>
  221. \t\t\t\t\t\t\t\t\t\t<li><a href=\"#\" class=\"fa fa-skype\"></a></li>
  222. \t\t\t\t\t\t\t\t\t</ul>
  223. \t\t\t\t\t\t\t\t</div>
  224. \t\t\t\t\t\t\t</div>
  225. \t\t\t\t\t\t\t<div class=\"team-content\">
  226. \t\t\t\t\t\t\t\t<h3 class=\"title\">{{user.fullName}}</h3>
  227. \t\t\t\t\t\t\t\t<span class=\"post\">{{user.domain}}</span>
  228. \t\t\t\t\t\t\t</div>
  229. \t\t\t\t\t\t</div>
  230. \t\t\t\t\t</div>
  231. \t\t\t\t{% endfor  %}
  232. \t\t\t\t</div><!-- end row -->
  233. \t\t{% endfor  %}\t
  234. \t\t\t
  235. \t\t  </div><!-- end container -->
  236. \t\t  \t{% else %}
  237. \t\t<p class=\"mt-5 h1 text-center\"> No teacher yet.    <a href=\"{{path('admin_users_create')}}\"> Be the first! </a> </p>
  238. \t{% endif  %}
  239.     </div><!-- end section -->
  240.       \t
  241. \t
  242. {% endblock %}
  243. ""school/teacher.html.twig""/var/www/prod/current/templates/school/teacher.html.twig");
  244.     }
  245. }