var/cache/dev/twig/d0/d07873ee5c3e3ba30c77b554557478dffc8c8e323d0998195f9e1051ef64861b.php line 33

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. /* review/default.html.twig */
  14. class __TwigTemplate_f82104f40f7de3d8ad5790cf7b222b863d8355bf1a5950dd2976703052c5dcb6 extends \Twig\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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""review/default.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""review/default.html.twig"));
  33.         // line 1
  34.         echo "<div class=\"col-6\">
  35.     <div class=\"shadow-sm card mt-2 mb-2 rounded-5 review-item\">
  36.         <div class=\"card-title fw-bold ps-3 pt-3\">
  37.             <i class=\"fa fa-user me-1\"></i> ";
  38.         // line 4
  39.         if (twig_get_attribute($this->env$this->source, (isset($context["review"]) || array_key_exists("review"$context) ? $context["review"] : (function () { throw new RuntimeError('Variable "review" does not exist.'4$this->source); })()), "isAnonymous", [], "any"falsefalsefalse4)) {
  40.             echo "Anonym";
  41.         } else {
  42.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["review"]) || array_key_exists("review"$context) ? $context["review"] : (function () { throw new RuntimeError('Variable "review" does not exist.'4$this->source); })()), "applicant", [], "any"falsefalsefalse4), "fullName", [], "any"falsefalsefalse4), "html"nulltrue);
  43.         }
  44.         // line 5
  45.         echo "        </div>
  46.         <div class=\"card-body\">
  47.             ";
  48.         // line 7
  49.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["review"]) || array_key_exists("review"$context) ? $context["review"] : (function () { throw new RuntimeError('Variable "review" does not exist.'7$this->source); })()), "courseReview", [], "any"falsefalsefalse7), "html"nulltrue);
  50.         echo "
  51.             <div class=\"rating text-end\">
  52.                 ";
  53.         // line 9
  54.         $context['_parent'] = $context;
  55.         $context['_seq'] = twig_ensure_traversable(range(1twig_get_attribute($this->env$this->source, (isset($context["review"]) || array_key_exists("review"$context) ? $context["review"] : (function () { throw new RuntimeError('Variable "review" does not exist.'9$this->source); })()), "courseRating", [], "any"falsefalsefalse9)));
  56.         foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  57.             // line 10
  58.             echo "                    <i class=\"fa fa-star\"></i>
  59.                 ";
  60.         }
  61.         $_parent $context['_parent'];
  62.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  63.         $context array_intersect_key($context$_parent) + $_parent;
  64.         // line 12
  65.         echo "            </div>
  66.         </div>
  67.     </div>
  68. </div>";
  69.         
  70.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  71.         
  72.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  73.     }
  74.     public function getTemplateName()
  75.     {
  76.         return "review/default.html.twig";
  77.     }
  78.     public function isTraitable()
  79.     {
  80.         return false;
  81.     }
  82.     public function getDebugInfo()
  83.     {
  84.         return array (  74 => 12,  67 => 10,  63 => 9,  58 => 7,  54 => 5,  48 => 4,  43 => 1,);
  85.     }
  86.     public function getSourceContext()
  87.     {
  88.         return new Source("<div class=\"col-6\">
  89.     <div class=\"shadow-sm card mt-2 mb-2 rounded-5 review-item\">
  90.         <div class=\"card-title fw-bold ps-3 pt-3\">
  91.             <i class=\"fa fa-user me-1\"></i> {% if(review.isAnonymous) %}Anonym{% else %}{{ review.applicant.fullName }}{% endif %}
  92.         </div>
  93.         <div class=\"card-body\">
  94.             {{ review.courseReview }}
  95.             <div class=\"rating text-end\">
  96.                 {% for i in range(1, review.courseRating) %}
  97.                     <i class=\"fa fa-star\"></i>
  98.                 {% endfor %}
  99.             </div>
  100.         </div>
  101.     </div>
  102. </div>""review/default.html.twig""/home/forge/vsechnykurzy.cz/templates/review/default.html.twig");
  103.     }
  104. }