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