var/cache/dev/twig/14/14a39575446a53e863b59c858dd88dc6876e32df78710b4fd35611f186dda3ad.php line 85

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. /* homepage2.html.twig */
  14. class __TwigTemplate_7597f3ea6195b1198d5bf13c89ae2a40a8f53989eb70f09af95ad442340374d1 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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""homepage2.html.twig"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""homepage2.html.twig"));
  38.         $this->parent $this->loadTemplate("base.html.twig""homepage2.html.twig"1);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  42.         
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  44.     }
  45.     // line 3
  46.     public function block_body($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  51.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  53.         // line 4
  54.         echo "    ";
  55.         $context["days"] = [=> "Søndag"=> "Mandag"=> "Tirsdag"=> "Onsdag"=> "Torsdag"=> "Fredag"=> "Lørdag"];
  56.         // line 5
  57.         echo "    ";
  58.         $context["months"] = [=> "Januar"=> "Februar"=> "Mars"=> "April"=> "Mai"=> "Juni"=> "Juli"=> "August"=> "September"=> "Oktober"10 => "November"11 => "Desember"];
  59.         // line 6
  60.         echo "    <section class=\"travel-area mt-5\">
  61.     </section>
  62.     <section class=\"travel-area mt-1\">
  63.         <div class=\"container\">
  64. ";
  65.         // line 11
  66.         echo "            <div class=\"row\">
  67.                 <div class=\"col-lg-8\">
  68.                     <div class=\"single-travel media pb-10\">
  69.                         ";
  70.         // line 14
  71.         $context["href"] = (((=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["meetings"]) || array_key_exists("meetings"$context) ? $context["meetings"] : (function () { throw new RuntimeError('Variable "meetings" does not exist.'14$this->source); })()), 0, [], "array"falsefalsefalse14), "country", [], "any"falsefalsefalse14), "SWE"))) ? ("/tipsSWE/") : ("/tips/"));
  72.         // line 15
  73.         echo "                        <a style=\"width:100%;\" href=\"";
  74.         echo twig_escape_filter($this->env, (isset($context["href"]) || array_key_exists("href"$context) ? $context["href"] : (function () { throw new RuntimeError('Variable "href" does not exist.'15$this->source); })()), "html"nulltrue);
  75.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["meetings"]) || array_key_exists("meetings"$context) ? $context["meetings"] : (function () { throw new RuntimeError('Variable "meetings" does not exist.'15$this->source); })()), 0, [], "array"falsefalsefalse15), "mee_id", [], "any"falsefalsefalse15), "html"nulltrue);
  76.         echo "\">
  77.                             <img class=\"img-fluid d-flex  mr-3\" src=\"";
  78.         // line 16
  79.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["meetings"]) || array_key_exists("meetings"$context) ? $context["meetings"] : (function () { throw new RuntimeError('Variable "meetings" does not exist.'16$this->source); })()), 0, [], "array"falsefalsefalse16), "image", [], "any"falsefalsefalse16), "html"nulltrue);
  80.         echo "\" alt=\"\" style=\"width:100%;object-fit:cover;object-position:top;border:1px solid #ccc;\">
  81.                         </a>
  82.                         <div class=\"dates\" style=\"margin:6px;padding: 0px; background: none;\">
  83.                             ";
  84.         // line 19
  85.         $context["legtypes"] = twig_split_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["meetings"]) || array_key_exists("meetings"$context) ? $context["meetings"] : (function () { throw new RuntimeError('Variable "meetings" does not exist.'19$this->source); })()), 0, [], "array"falsefalsefalse19), "legtypes", [], "any"falsefalsefalse19), "/");
  86.         // line 20
  87.         echo "                            ";
  88.         $context['_parent'] = $context;
  89.         $context['_seq'] = twig_ensure_traversable((isset($context["legtypes"]) || array_key_exists("legtypes"$context) ? $context["legtypes"] : (function () { throw new RuntimeError('Variable "legtypes" does not exist.'20$this->source); })()));
  90.         foreach ($context['_seq'] as $context["_key"] => $context["l"]) {
  91.             // line 21
  92.             echo "                                <img src=\"/img/";
  93.             echo twig_escape_filter($this->env$context["l"], "html"nulltrue);
  94.             echo ".png\" style=\"width:50px;\">
  95.                             ";
  96.         }
  97.         $_parent $context['_parent'];
  98.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['l'], $context['_parent'], $context['loop']);
  99.         $context array_intersect_key($context$_parent) + $_parent;
  100.         // line 23
  101.         echo "                        </div>
  102.                     </div>
  103.                     <div class=\"media-body align-self-center pb-30\">
  104.                         <h5 class=\"redright homesmalltitle\">
  105.                             <a href=\"";
  106.         // line 27
  107.         echo twig_escape_filter($this->env, (isset($context["href"]) || array_key_exists("href"$context) ? $context["href"] : (function () { throw new RuntimeError('Variable "href" does not exist.'27$this->source); })()), "html"nulltrue);
  108.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["meetings"]) || array_key_exists("meetings"$context) ? $context["meetings"] : (function () { throw new RuntimeError('Variable "meetings" does not exist.'27$this->source); })()), 0, [], "array"falsefalsefalse27), "mee_id", [], "any"falsefalsefalse27), "html"nulltrue);
  109.         echo "\" style=\"color: grey;\">
  110.                                 ";
  111.         // line 28
  112.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["meetings"]) || array_key_exists("meetings"$context) ? $context["meetings"] : (function () { throw new RuntimeError('Variable "meetings" does not exist.'28$this->source); })()), 0, [], "array"falsefalsefalse28), "shortname", [], "any"falsefalsefalse28), "html"nulltrue);
  113.         echo " ";
  114.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["meetings"]) || array_key_exists("meetings"$context) ? $context["meetings"] : (function () { throw new RuntimeError('Variable "meetings" does not exist.'28$this->source); })()), 0, [], "array"falsefalsefalse28), "date", [], "any"falsefalsefalse28), "html"nulltrue);
  115.         echo "
  116.                             </a>
  117.                         </h5>
  118.                         <h5 class=\"redright mt-2 homesubtitle\" style=\"border-left:none; padding-left: 12px;\">
  119.                             <a href=\"";
  120.         // line 32
  121.         echo twig_escape_filter($this->env, (isset($context["href"]) || array_key_exists("href"$context) ? $context["href"] : (function () { throw new RuntimeError('Variable "href" does not exist.'32$this->source); })()), "html"nulltrue);
  122.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["meetings"]) || array_key_exists("meetings"$context) ? $context["meetings"] : (function () { throw new RuntimeError('Variable "meetings" does not exist.'32$this->source); })()), 0, [], "array"falsefalsefalse32), "mee_id", [], "any"falsefalsefalse32), "html"nulltrue);
  123.         echo "\" style=\"width:100%;color:#000;\" >
  124.                                 ";
  125.         // line 33
  126.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["meetings"]) || array_key_exists("meetings"$context) ? $context["meetings"] : (function () { throw new RuntimeError('Variable "meetings" does not exist.'33$this->source); })()), 0, [], "array"falsefalsefalse33), "title", [], "array"falsefalsefalse33), "html"nulltrue);
  127.         echo "
  128.                             </a>
  129.                         </h5>
  130.                     </div>
  131.                 </div>
  132.                 <div class=\"col-lg-4 mb-4\">
  133.                     <h4>Hestefakta</h4>
  134.                     <form method=\"post\" action=\"";
  135.         // line 40
  136.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_search", ["kind" => "horse"]);
  137.         echo "\">
  138.                         <div class=\"col-lg-12 col-sm-auto input-group mb-1 p-0 mt-2\" >
  139.                             <input type=\"text\" class=\"form-control\" aria-label=\"Recipients username\" aria-describedby=\"basic-addon2\" placeholder=\"Søk etter hest/kusk/trener\"  name=\"horse_name\" style=\"padding: .3rem;font-size: .9rem;\">&nbsp;
  140.                             <div class=\"input-group-append\">
  141.                                 <button class=\"btn btn-outline-primary\" type=\"submit\"><i class=\"fa fa-search fa-lg\"></i></button>
  142.                             </div>
  143.                         </div>
  144.                         <p>Søk trenere og kusker ved å skrive inn etternavnet. Søk hester ved å skrive inn hestens navn, enten starten av navnet eller hele navnet.</p>
  145.                     </form>
  146.                     <div>
  147.                         <a href=\"https://www.rikstoto.no/Andelstorget/Butikker/00747\" target=\"_blank\">
  148.                             <img class=\"w-100\" src=\"/assets/img/Andelstorg_TGN 320x250.jpg\">
  149.                         </a>
  150.                     </div>
  151.                 </div>
  152.             </div>
  153.         </div>
  154.     </section>
  155.     <section class=\"travel-area\">
  156.         <div class=\"container\">
  157.             <div class=\"row\">
  158.                 <div class=\"col-lg-8\">
  159.                     <div class=\"row\">
  160.                         ";
  161.         // line 64
  162.         $context['_parent'] = $context;
  163.         $context['_seq'] = twig_ensure_traversable((isset($context["meetings"]) || array_key_exists("meetings"$context) ? $context["meetings"] : (function () { throw new RuntimeError('Variable "meetings" does not exist.'64$this->source); })()));
  164.         foreach ($context['_seq'] as $context["c"] => $context["m"]) {
  165.             // line 65
  166.             echo "                            ";
  167.             if ((=== twig_compare($context["c"], 0))) {
  168.                 // line 66
  169.                 echo "                                <div class=\"col-sm-6\">
  170.                                     <div class=\"single-travel media pb-10\">
  171.                                         ";
  172.                 // line 68
  173.                 $context["href"] = (((=== twig_compare(twig_get_attribute($this->env$this->source$context["m"], "country", [], "any"falsefalsefalse68), "SWE"))) ? ("/tipsSWE/") : ("/tips/"));
  174.                 // line 69
  175.                 echo "                                        <a style=\"width:100%;\" href=\"";
  176.                 echo twig_escape_filter($this->env, (isset($context["href"]) || array_key_exists("href"$context) ? $context["href"] : (function () { throw new RuntimeError('Variable "href" does not exist.'69$this->source); })()), "html"nulltrue);
  177.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["m"], "mee_id", [], "any"falsefalsefalse69), "html"nulltrue);
  178.                 echo "\">
  179.                                             ";
  180.                 // line 70
  181.                 if ((=== twig_compare(twig_get_attribute($this->env$this->source$context["m"], "image", [], "any"falsefalsefalse70), "/assets/img/noimage.jpg"))) {
  182.                     // line 71
  183.                     echo "                                                <img class=\"img-fluid d-flex  mr-3\" src=\"/img/trav.jpg\" alt=\"\" style=\"width:100%;height:220px;object-fit:cover;object-position:top;border:1px solid #ccc;\">
  184.                                             ";
  185.                 } else {
  186.                     // line 73
  187.                     echo "                                                <img class=\"img-fluid d-flex  mr-3\" src=\"";
  188.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["m"], "image", [], "any"falsefalsefalse73), "html"nulltrue);
  189.                     echo "\" alt=\"\" style=\"width:100%;height:220px;object-fit:cover;object-position:top;border:1px solid #ccc;\">
  190.                                             ";
  191.                 }
  192.                 // line 75
  193.                 echo "                                        </a>
  194.                                         <div class=\"dates\" style=\"margin:6px;padding: 0px; background: none;\">
  195.                                             ";
  196.                 // line 77
  197.                 $context["legtypes"] = twig_split_filter($this->envtwig_get_attribute($this->env$this->source$context["m"], "legtypes", [], "any"falsefalsefalse77), "/");
  198.                 // line 78
  199.                 echo "                                            ";
  200.                 $context['_parent'] = $context;
  201.                 $context['_seq'] = twig_ensure_traversable((isset($context["legtypes"]) || array_key_exists("legtypes"$context) ? $context["legtypes"] : (function () { throw new RuntimeError('Variable "legtypes" does not exist.'78$this->source); })()));
  202.                 foreach ($context['_seq'] as $context["_key"] => $context["l"]) {
  203.                     // line 79
  204.                     echo "                                                <img src=\"/img/";
  205.                     echo twig_escape_filter($this->env$context["l"], "html"nulltrue);
  206.                     echo ".png\" style=\"width:50px;\">
  207.                                             ";
  208.                 }
  209.                 $_parent $context['_parent'];
  210.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['l'], $context['_parent'], $context['loop']);
  211.                 $context array_intersect_key($context$_parent) + $_parent;
  212.                 // line 81
  213.                 echo "                                        </div>
  214.                                     </div>
  215.                                     <div class=\"media-body align-self-center pb-30\">
  216.                                         <h5 class=\"redright homesmalltitle\">
  217.                                             <a href=\"";
  218.                 // line 85
  219.                 echo twig_escape_filter($this->env, (isset($context["href"]) || array_key_exists("href"$context) ? $context["href"] : (function () { throw new RuntimeError('Variable "href" does not exist.'85$this->source); })()), "html"nulltrue);
  220.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["m"], "mee_id", [], "any"falsefalsefalse85), "html"nulltrue);
  221.                 echo "\" style=\"color: grey;\">
  222.                                                 ";
  223.                 // line 86
  224.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["m"], "shortname", [], "any"falsefalsefalse86), "html"nulltrue);
  225.                 echo " ";
  226.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["days"]) || array_key_exists("days"$context) ? $context["days"] : (function () { throw new RuntimeError('Variable "days" does not exist.'86$this->source); })()), twig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["m"], "date", [], "any"falsefalsefalse86), "w"), [], "array"falsefalsefalse86), "html"nulltrue);
  227.                 echo " ";
  228.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["m"], "date", [], "any"falsefalsefalse86), "j"), "html"nulltrue);
  229.                 echo ". ";
  230.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["months"]) || array_key_exists("months"$context) ? $context["months"] : (function () { throw new RuntimeError('Variable "months" does not exist.'86$this->source); })()), (twig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["m"], "date", [], "any"falsefalsefalse86), "n") - 1), [], "array"falsefalsefalse86), "html"nulltrue);
  231.                 echo "
  232.                                             </a>
  233.                                         </h5>
  234.                                         <h5 class=\"redright mt-2 homesubtitle\" style=\"border-left:none; padding-left: 12px;\">
  235.                                             <a href=\"";
  236.                 // line 90
  237.                 echo twig_escape_filter($this->env, (isset($context["href"]) || array_key_exists("href"$context) ? $context["href"] : (function () { throw new RuntimeError('Variable "href" does not exist.'90$this->source); })()), "html"nulltrue);
  238.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["m"], "mee_id", [], "any"falsefalsefalse90), "html"nulltrue);
  239.                 echo "\" style=\"width:100%;color:#000;\" >
  240.                                                 ";
  241.                 // line 91
  242.                 if ((=== twig_compare(twig_get_attribute($this->env$this->source$context["m"], "ready", [], "any"falsefalsefalse91), 0))) {
  243.                     // line 92
  244.                     echo "                                                    ";
  245.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["m"], "title", [], "array"falsefalsefalse92), "html"nulltrue);
  246.                     echo "
  247.                                                 ";
  248.                 } else {
  249.                     // line 94
  250.                     echo "                                                    &nbsp;
  251.                                                 ";
  252.                 }
  253.                 // line 96
  254.                 echo "                                            </a>
  255.                                         </h5>
  256.                                     </div>
  257.                                 </div>
  258.                             ";
  259.             }
  260.             // line 101
  261.             echo "                        ";
  262.         }
  263.         $_parent $context['_parent'];
  264.         unset($context['_seq'], $context['_iterated'], $context['c'], $context['m'], $context['_parent'], $context['loop']);
  265.         $context array_intersect_key($context$_parent) + $_parent;
  266.         // line 102
  267.         echo "                    </div>
  268.                 </div>
  269.                 <div class=\"col-lg-4\">
  270.                 </div>
  271.             </div>
  272.         </div>
  273.     </section>
  274. ";
  275.         
  276.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  277.         
  278.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  279.     }
  280.     public function getTemplateName()
  281.     {
  282.         return "homepage2.html.twig";
  283.     }
  284.     public function isTraitable()
  285.     {
  286.         return false;
  287.     }
  288.     public function getDebugInfo()
  289.     {
  290.         return array (  282 => 102,  276 => 101,  269 => 96,  265 => 94,  259 => 92,  257 => 91,  252 => 90,  239 => 86,  234 => 85,  228 => 81,  219 => 79,  214 => 78,  212 => 77,  208 => 75,  202 => 73,  198 => 71,  196 => 70,  190 => 69,  188 => 68,  184 => 66,  181 => 65,  177 => 64,  150 => 40,  140 => 33,  135 => 32,  126 => 28,  121 => 27,  115 => 23,  106 => 21,  101 => 20,  99 => 19,  93 => 16,  87 => 15,  85 => 14,  80 => 11,  74 => 6,  71 => 5,  68 => 4,  58 => 3,  35 => 1,);
  291.     }
  292.     public function getSourceContext()
  293.     {
  294.         return new Source("{% extends 'base.html.twig' %}
  295. {% block body %}
  296.     {% set days = ['Søndag','Mandag','Tirsdag','Onsdag','Torsdag','Fredag','Lørdag'] %}
  297.     {% set months = ['Januar','Februar','Mars','April','Mai','Juni','Juli','August','September','Oktober','November','Desember'] %}
  298.     <section class=\"travel-area mt-5\">
  299.     </section>
  300.     <section class=\"travel-area mt-1\">
  301.         <div class=\"container\">
  302. {#            {{ dump(meetings) }}#}
  303.             <div class=\"row\">
  304.                 <div class=\"col-lg-8\">
  305.                     <div class=\"single-travel media pb-10\">
  306.                         {% set href = meetings[0].country == 'SWE' ? '/tipsSWE/' : '/tips/' %}
  307.                         <a style=\"width:100%;\" href=\"{{ href }}{{ meetings[0].mee_id }}\">
  308.                             <img class=\"img-fluid d-flex  mr-3\" src=\"{{ meetings[0].image }}\" alt=\"\" style=\"width:100%;object-fit:cover;object-position:top;border:1px solid #ccc;\">
  309.                         </a>
  310.                         <div class=\"dates\" style=\"margin:6px;padding: 0px; background: none;\">
  311.                             {% set legtypes = meetings[0].legtypes | split('/') %}
  312.                             {% for l in legtypes %}
  313.                                 <img src=\"/img/{{ l }}.png\" style=\"width:50px;\">
  314.                             {% endfor %}
  315.                         </div>
  316.                     </div>
  317.                     <div class=\"media-body align-self-center pb-30\">
  318.                         <h5 class=\"redright homesmalltitle\">
  319.                             <a href=\"{{ href }}{{ meetings[0].mee_id }}\" style=\"color: grey;\">
  320.                                 {{ meetings[0].shortname }} {{ meetings[0].date }}
  321.                             </a>
  322.                         </h5>
  323.                         <h5 class=\"redright mt-2 homesubtitle\" style=\"border-left:none; padding-left: 12px;\">
  324.                             <a href=\"{{ href }}{{ meetings[0].mee_id }}\" style=\"width:100%;color:#000;\" >
  325.                                 {{ meetings[0]['title'] }}
  326.                             </a>
  327.                         </h5>
  328.                     </div>
  329.                 </div>
  330.                 <div class=\"col-lg-4 mb-4\">
  331.                     <h4>Hestefakta</h4>
  332.                     <form method=\"post\" action=\"{{ path('app_search', {kind: 'horse' }) }}\">
  333.                         <div class=\"col-lg-12 col-sm-auto input-group mb-1 p-0 mt-2\" >
  334.                             <input type=\"text\" class=\"form-control\" aria-label=\"Recipients username\" aria-describedby=\"basic-addon2\" placeholder=\"Søk etter hest/kusk/trener\"  name=\"horse_name\" style=\"padding: .3rem;font-size: .9rem;\">&nbsp;
  335.                             <div class=\"input-group-append\">
  336.                                 <button class=\"btn btn-outline-primary\" type=\"submit\"><i class=\"fa fa-search fa-lg\"></i></button>
  337.                             </div>
  338.                         </div>
  339.                         <p>Søk trenere og kusker ved å skrive inn etternavnet. Søk hester ved å skrive inn hestens navn, enten starten av navnet eller hele navnet.</p>
  340.                     </form>
  341.                     <div>
  342.                         <a href=\"https://www.rikstoto.no/Andelstorget/Butikker/00747\" target=\"_blank\">
  343.                             <img class=\"w-100\" src=\"/assets/img/Andelstorg_TGN 320x250.jpg\">
  344.                         </a>
  345.                     </div>
  346.                 </div>
  347.             </div>
  348.         </div>
  349.     </section>
  350.     <section class=\"travel-area\">
  351.         <div class=\"container\">
  352.             <div class=\"row\">
  353.                 <div class=\"col-lg-8\">
  354.                     <div class=\"row\">
  355.                         {% for c,m in meetings %}
  356.                             {% if (c > 0) %}
  357.                                 <div class=\"col-sm-6\">
  358.                                     <div class=\"single-travel media pb-10\">
  359.                                         {% set href = m.country == 'SWE' ? '/tipsSWE/' : '/tips/' %}
  360.                                         <a style=\"width:100%;\" href=\"{{ href }}{{ m.mee_id }}\">
  361.                                             {% if (m.image == '/assets/img/noimage.jpg') %}
  362.                                                 <img class=\"img-fluid d-flex  mr-3\" src=\"/img/trav.jpg\" alt=\"\" style=\"width:100%;height:220px;object-fit:cover;object-position:top;border:1px solid #ccc;\">
  363.                                             {% else %}
  364.                                                 <img class=\"img-fluid d-flex  mr-3\" src=\"{{ m.image }}\" alt=\"\" style=\"width:100%;height:220px;object-fit:cover;object-position:top;border:1px solid #ccc;\">
  365.                                             {% endif %}
  366.                                         </a>
  367.                                         <div class=\"dates\" style=\"margin:6px;padding: 0px; background: none;\">
  368.                                             {% set legtypes = m.legtypes | split('/') %}
  369.                                             {% for l in legtypes %}
  370.                                                 <img src=\"/img/{{ l }}.png\" style=\"width:50px;\">
  371.                                             {% endfor %}
  372.                                         </div>
  373.                                     </div>
  374.                                     <div class=\"media-body align-self-center pb-30\">
  375.                                         <h5 class=\"redright homesmalltitle\">
  376.                                             <a href=\"{{ href }}{{ m.mee_id }}\" style=\"color: grey;\">
  377.                                                 {{ m.shortname }} {{ days[m.date|date('w')] }} {{ m.date | date('j') }}. {{ months[m.date|date('n')-1] }}
  378.                                             </a>
  379.                                         </h5>
  380.                                         <h5 class=\"redright mt-2 homesubtitle\" style=\"border-left:none; padding-left: 12px;\">
  381.                                             <a href=\"{{ href }}{{ m.mee_id }}\" style=\"width:100%;color:#000;\" >
  382.                                                 {% if (m.ready > 0) %}
  383.                                                     {{ m['title'] }}
  384.                                                 {% else %}
  385.                                                     &nbsp;
  386.                                                 {% endif %}
  387.                                             </a>
  388.                                         </h5>
  389.                                     </div>
  390.                                 </div>
  391.                             {% endif %}
  392.                         {% endfor %}
  393.                     </div>
  394.                 </div>
  395.                 <div class=\"col-lg-4\">
  396.                 </div>
  397.             </div>
  398.         </div>
  399.     </section>
  400. {% endblock %}
  401. ""homepage2.html.twig""/var/www/html/hestefaktaDEV/templates/homepage2.html.twig");
  402.     }
  403. }