var/cache/dev/twig/f5/f5edc7ed6bad400030402f4b6a69038d.php line 38

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. /* question/homepage.html.twig */
  14. class __TwigTemplate_ecc1337b8feb95f329bc94c0f70160b5 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.             'body' => [$this'block_body'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "base.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""question/homepage.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""question/homepage.html.twig"));
  38.         $this->parent $this->loadTemplate("base.html.twig""question/homepage.html.twig"1);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  42.         
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  44.     }
  45.     // line 3
  46.     public function block_body($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  53.         // line 4
  54.         echo "<div class=\"jumbotron-img p-2 mb-2\">
  55.     <div class=\"container\">
  56.         <h1 class=\"display-4\">Your Questions Answered</h1>
  57.         <div class=\"lead\">And even answers for those questions you didn't think to ask!</div>
  58.     </div>
  59. </div>
  60. <div class=\"container\">
  61.     <div class=\"row mb-3\">
  62.         <div class=\"col\">
  63.             <button class=\"btn btn-question\">Ask a Question</button>
  64.         </div>
  65.     </div>
  66.     <div class=\"row\">
  67.         ";
  68.         // line 17
  69.         $context['_parent'] = $context;
  70.         $context['_seq'] = twig_ensure_traversable((isset($context["questions"]) || array_key_exists("questions"$context) ? $context["questions"] : (function () { throw new RuntimeError('Variable "questions" does not exist.'17$this->source); })()));
  71.         foreach ($context['_seq'] as $context["_key"] => $context["question"]) {
  72.             // line 18
  73.             echo "        <div class=\"col-12 mb-3\">
  74.             <div style=\"box-shadow: 2px 3px 9px 4px rgba(0,0,0,0.04);\">
  75.                 <div class=\"q-container p-4\">
  76.                     <div class=\"row\">
  77.                         <div class=\"col-2 text-center\">
  78.                             <img src=\"";
  79.             // line 23
  80.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["question"], "askedBy", [], "any"falsefalsefalse23), "avatarUrl", [], "any"falsefalsefalse23)), "html"nulltrue);
  81.             echo "\" width=\"100\" height=\"100\"  alt=\"Tisha avatar\">
  82.                             <div class=\"vote-arrows vote-arrows-alt flex-fill pt-2\" style=\"min-width: 90px;\">
  83.                                 <span>";
  84.             // line 25
  85.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["question"], "votesString", [], "any"falsefalsefalse25), "html"nulltrue);
  86.             echo " votes</span>
  87.                             </div>
  88.                         </div>
  89.                         <div class=\"col\">
  90.                             <a class=\"q-title\" href=\"";
  91.             // line 29
  92.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_question_show", ["slug" => twig_get_attribute($this->env$this->source$context["question"], "slug", [], "any"falsefalsefalse29)]), "html"nulltrue);
  93.             echo "\"><h2>";
  94.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["question"], "name", [], "any"falsefalsefalse29), "html"nulltrue);
  95.             echo "</h2></a>
  96.                             <div class=\"q-display p-3\">
  97.                                 <i class=\"fa fa-quote-left mr-3\"></i>
  98.                                 <p class=\"d-inline\">";
  99.             // line 32
  100.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["question"], "question", [], "any"falsefalsefalse32), "html"nulltrue);
  101.             echo "</p>
  102.                                 <p class=\"pt-4\"><strong>--";
  103.             // line 33
  104.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["question"], "askedBy", [], "any"falsefalsefalse33), "fullName", [], "any"falsefalsefalse33), "html"nulltrue);
  105.             echo "</strong></p>
  106.                             </div>
  107.                         </div>
  108.                     </div>
  109.                 </div>
  110.                 <a class=\"answer-link\" href=\"";
  111.             // line 38
  112.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_question_show", ["slug" => twig_get_attribute($this->env$this->source$context["question"], "slug", [], "any"falsefalsefalse38)]), "html"nulltrue);
  113.             echo "\" style=\"color: #fff;\">
  114.                     <p class=\"q-display-response text-center p-3\">
  115.                         <i class=\"fa fa-magic magic-wand\"></i> ";
  116.             // line 40
  117.             echo twig_escape_filter($this->envtwig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["question"], "answers", [], "any"falsefalsefalse40)), "html"nulltrue);
  118.             echo " answers
  119.                     </p>
  120.                 </a>
  121.             </div>
  122.         </div>
  123.         ";
  124.         }
  125.         $_parent $context['_parent'];
  126.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['question'], $context['_parent'], $context['loop']);
  127.         $context array_intersect_key($context$_parent) + $_parent;
  128.         // line 46
  129.         echo "    </div>
  130. </div>
  131. ";
  132.         
  133.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  134.         
  135.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  136.     }
  137.     /**
  138.      * @codeCoverageIgnore
  139.      */
  140.     public function getTemplateName()
  141.     {
  142.         return "question/homepage.html.twig";
  143.     }
  144.     /**
  145.      * @codeCoverageIgnore
  146.      */
  147.     public function isTraitable()
  148.     {
  149.         return false;
  150.     }
  151.     /**
  152.      * @codeCoverageIgnore
  153.      */
  154.     public function getDebugInfo()
  155.     {
  156.         return array (  143 => 46,  131 => 40,  126 => 38,  118 => 33,  114 => 32,  106 => 29,  99 => 25,  94 => 23,  87 => 18,  83 => 17,  68 => 4,  58 => 3,  35 => 1,);
  157.     }
  158.     public function getSourceContext()
  159.     {
  160.         return new Source("{% extends 'base.html.twig' %}
  161. {% block body %}
  162. <div class=\"jumbotron-img p-2 mb-2\">
  163.     <div class=\"container\">
  164.         <h1 class=\"display-4\">Your Questions Answered</h1>
  165.         <div class=\"lead\">And even answers for those questions you didn't think to ask!</div>
  166.     </div>
  167. </div>
  168. <div class=\"container\">
  169.     <div class=\"row mb-3\">
  170.         <div class=\"col\">
  171.             <button class=\"btn btn-question\">Ask a Question</button>
  172.         </div>
  173.     </div>
  174.     <div class=\"row\">
  175.         {% for question in questions %}
  176.         <div class=\"col-12 mb-3\">
  177.             <div style=\"box-shadow: 2px 3px 9px 4px rgba(0,0,0,0.04);\">
  178.                 <div class=\"q-container p-4\">
  179.                     <div class=\"row\">
  180.                         <div class=\"col-2 text-center\">
  181.                             <img src=\"{{ asset(question.askedBy.avatarUrl) }}\" width=\"100\" height=\"100\"  alt=\"Tisha avatar\">
  182.                             <div class=\"vote-arrows vote-arrows-alt flex-fill pt-2\" style=\"min-width: 90px;\">
  183.                                 <span>{{ question.votesString}} votes</span>
  184.                             </div>
  185.                         </div>
  186.                         <div class=\"col\">
  187.                             <a class=\"q-title\" href=\"{{ path('app_question_show', { slug: question.slug }) }}\"><h2>{{ question.name }}</h2></a>
  188.                             <div class=\"q-display p-3\">
  189.                                 <i class=\"fa fa-quote-left mr-3\"></i>
  190.                                 <p class=\"d-inline\">{{ question.question }}</p>
  191.                                 <p class=\"pt-4\"><strong>--{{ question.askedBy.fullName }}</strong></p>
  192.                             </div>
  193.                         </div>
  194.                     </div>
  195.                 </div>
  196.                 <a class=\"answer-link\" href=\"{{ path('app_question_show', { slug: question.slug }) }}\" style=\"color: #fff;\">
  197.                     <p class=\"q-display-response text-center p-3\">
  198.                         <i class=\"fa fa-magic magic-wand\"></i> {{ question.answers|length }} answers
  199.                     </p>
  200.                 </a>
  201.             </div>
  202.         </div>
  203.         {% endfor %}
  204.     </div>
  205. </div>
  206. {% endblock %}
  207. ""question/homepage.html.twig""/home/u538818725/domains/growupcrypto.site/public_html/templates/question/homepage.html.twig");
  208.     }
  209. }