var/cache/dev/twig/5f/5fea36b98d5a9cf449f9f2b96a4fd0db.php line 39

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