<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* Block/top_search.twig */
class __TwigTemplate_6880b279091367016d5b86828ceea75e extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Block/top_search.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Block/top_search.twig"));
// line 1
$context["ModelYears"] = twig_get_attribute($this->env, $this->source, $this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\Category"), "find", [0 => 29], "method", false, false, false, 1);
// line 2
echo "
<div class=\"container-fluid top-search-container d-flex justify-content-center align-items-center\">
\t<div class=\"d-flex\">
\t\t<div class=\"dropdown drop-search-box\">
\t\t\t<button class=\"btn btn-secondary dropdown-toggle\" type=\"button\" id=\"dropdownMenuButton1\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">
\t\t\t全てのメーカー
\t\t\t</button>
\t\t\t<ul class=\"dropdown-menu\" id=\"maker-ul\" aria-labelledby=\"dropdownMenuButton1\">
\t\t\t\t";
// line 10
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["Makers"]) || array_key_exists("Makers", $context) ? $context["Makers"] : (function () { throw new RuntimeError('Variable "Makers" does not exist.', 10, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["maker"]) {
// line 11
echo " <li><a class=\"dropdown-item\" href=\"javascript:void(0)\" onclick=\"clickMakerSearch(";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["maker"], "id", [], "any", false, false, false, 11), "html", null, true);
echo ", '";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["maker"], "name", [], "any", false, false, false, 11), "html", null, true);
echo "')\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["maker"], "name", [], "any", false, false, false, 11), "html", null, true);
echo "</a></li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['maker'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 13
echo "\t\t\t</ul>
\t\t</div>
\t\t<div class=\"dropdown drop-search-box\">
\t\t\t<button class=\"btn btn-secondary dropdown-toggle\" type=\"button\" id=\"dropdownMenuButton2\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">
\t\t\t全ての車両
\t\t\t</button>
\t\t\t<ul class=\"dropdown-menu\" id=\"vehicle-ul\" aria-labelledby=\"dropdownMenuButton2\">
\t\t\t</ul>
\t\t</div>
\t\t<div class=\"dropdown drop-search-box\">
\t\t\t<button class=\"btn btn-secondary dropdown-toggle\" type=\"button\" id=\"dropdownMenuButton3\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">
\t\t\t全ての年式
\t\t\t</button>
\t\t\t<ul class=\"dropdown-menu\" id=\"modelYear-ul\" aria-labelledby=\"dropdownMenuButton3\">
\t\t\t</ul>
\t\t</div>
\t\t<div>
\t\t<button type=\"button\" class=\"btn btn-light\" onclick=\"clickSideSearch()\">検索</button>
\t\t</div>
\t</div>
</div>
<style type=\"text/css\">
\t.top-search-wrapper{
\t\twidth: 100%;
\t}
\t.top-search-container{
\t\tmin-height: 400px;
\t\tbackground-image: url(";
// line 41
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/html/user_data/assets/img/top/altair-top-image.jpg"), "html", null, true);
echo ");
\t\tmargin-bottom: 50px;
\t}
\t.top-search-container input[type=\"submit\"]{
\t\theight: 100%;
\t\tpadding: 0 20px;
\t}
\t.drop-search-box button{
\t\twidth: 200px;
\t}
</style>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "Block/top_search.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 102 => 41, 72 => 13, 59 => 11, 55 => 10, 45 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% set ModelYears = repository('Eccube\\\\Entity\\\\Category').find(29) %}
<div class=\"container-fluid top-search-container d-flex justify-content-center align-items-center\">
\t<div class=\"d-flex\">
\t\t<div class=\"dropdown drop-search-box\">
\t\t\t<button class=\"btn btn-secondary dropdown-toggle\" type=\"button\" id=\"dropdownMenuButton1\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">
\t\t\t全てのメーカー
\t\t\t</button>
\t\t\t<ul class=\"dropdown-menu\" id=\"maker-ul\" aria-labelledby=\"dropdownMenuButton1\">
\t\t\t\t{% for maker in Makers %}
<li><a class=\"dropdown-item\" href=\"javascript:void(0)\" onclick=\"clickMakerSearch({{ maker.id }}, '{{ maker.name }}')\">{{ maker.name }}</a></li>
{% endfor %}
\t\t\t</ul>
\t\t</div>
\t\t<div class=\"dropdown drop-search-box\">
\t\t\t<button class=\"btn btn-secondary dropdown-toggle\" type=\"button\" id=\"dropdownMenuButton2\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">
\t\t\t全ての車両
\t\t\t</button>
\t\t\t<ul class=\"dropdown-menu\" id=\"vehicle-ul\" aria-labelledby=\"dropdownMenuButton2\">
\t\t\t</ul>
\t\t</div>
\t\t<div class=\"dropdown drop-search-box\">
\t\t\t<button class=\"btn btn-secondary dropdown-toggle\" type=\"button\" id=\"dropdownMenuButton3\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">
\t\t\t全ての年式
\t\t\t</button>
\t\t\t<ul class=\"dropdown-menu\" id=\"modelYear-ul\" aria-labelledby=\"dropdownMenuButton3\">
\t\t\t</ul>
\t\t</div>
\t\t<div>
\t\t<button type=\"button\" class=\"btn btn-light\" onclick=\"clickSideSearch()\">検索</button>
\t\t</div>
\t</div>
</div>
<style type=\"text/css\">
\t.top-search-wrapper{
\t\twidth: 100%;
\t}
\t.top-search-container{
\t\tmin-height: 400px;
\t\tbackground-image: url({{ asset('/html/user_data/assets/img/top/altair-top-image.jpg')}});
\t\tmargin-bottom: 50px;
\t}
\t.top-search-container input[type=\"submit\"]{
\t\theight: 100%;
\t\tpadding: 0 20px;
\t}
\t.drop-search-box button{
\t\twidth: 200px;
\t}
</style>", "Block/top_search.twig", "/home/breathfield/breathdev.com/public_html/altair.breathdev.com/app/template/default/Block/top_search.twig");
}
}