<?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;
/* index/index.html.twig */
class __TwigTemplate_c525e23695abc2461bbb53c96965d9d0dca8cca610b892e55dc738cf70b90b5f extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "index/index.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "index/index.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "index/index.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 4
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 5
echo " <!--首页内容-->
<div class=\"indexBigImg viewWidth\" style=\"background-image: url('";
// line 6
echo twig_escape_filter($this->env, ((isset($context["cdn_url"]) || array_key_exists("cdn_url", $context) ? $context["cdn_url"] : (function () { throw new RuntimeError('Variable "cdn_url" does not exist.', 6, $this->source); })()) . twig_get_attribute($this->env, $this->source, (isset($context["firstImage"]) || array_key_exists("firstImage", $context) ? $context["firstImage"] : (function () { throw new RuntimeError('Variable "firstImage" does not exist.', 6, $this->source); })()), "oUrl", [], "any", false, false, false, 6)), "html", null, true);
echo "')\">
<h3 class=\"small\">
<!-- <p> item1.desc </p>-->
<p>";
// line 9
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["firstImage"]) || array_key_exists("firstImage", $context) ? $context["firstImage"] : (function () { throw new RuntimeError('Variable "firstImage" does not exist.', 9, $this->source); })()), "oTitle", [], "any", false, false, false, 9), "html", null, true);
echo "</p>
<!-- <div class=\"bg\"></div>-->
<i>New arrivals in the Pro Team summer collection.</i>
</h3>
</div>
<div class=\"indexTitles indexWidth\">
<div class=\"wrapper\">
<b class=\"taC\">系列产品</b>
</div>
</div>
<div class=\"shopThe clearfix indexWidth\" >
<div class=\"titleDiv fl\">
<div class=\"leftTitle\">系列产品</div>
</div>
<div class=\"bannerVertical clearfix fl\">
<ul class=\"vertical-left fl\" id=\"indexVertical\">
";
// line 25
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["highlights"]) || array_key_exists("highlights", $context) ? $context["highlights"] : (function () { throw new RuntimeError('Variable "highlights" does not exist.', 25, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["n"]) {
// line 26
echo " <li class=\"nav-item ";
if (twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 26)) {
echo "activeP";
}
echo "\">
<div class=\"item-wrapper\">
<p class=\"title taC\">";
// line 28
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["n"], "oName", [], "any", false, false, false, 28), "html", null, true);
echo "</p>
<span class=\"three\"></span>
</div>
</li>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['n'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 33
echo " </ul>
<ul class=\"vertical-center fl\" id=\"indexVerticalImg\">
";
// line 35
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["highlights"]) || array_key_exists("highlights", $context) ? $context["highlights"] : (function () { throw new RuntimeError('Variable "highlights" does not exist.', 35, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["n"]) {
// line 36
echo " <li class=\"transition_img ";
if (twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 36)) {
echo "activeImg";
}
echo "\">
<img src=\"";
// line 37
echo twig_escape_filter($this->env, ((isset($context["cdn_url"]) || array_key_exists("cdn_url", $context) ? $context["cdn_url"] : (function () { throw new RuntimeError('Variable "cdn_url" does not exist.', 37, $this->source); })()) . twig_get_attribute($this->env, $this->source, $context["n"], "oImageUrl", [], "any", false, false, false, 37)), "html", null, true);
echo "?imageView2/5/w/800/h/527/q/100\" alt=\"\">
</li>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['n'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 40
echo " </ul>
<div class=\"vertical-right fr\" id=\"index_vertical_right\">
";
// line 42
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["highlights"]) || array_key_exists("highlights", $context) ? $context["highlights"] : (function () { throw new RuntimeError('Variable "highlights" does not exist.', 42, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["key"] => $context["n"]) {
// line 43
echo " ";
echo twig_include($this->env, $context, "common/_verticalRight.html.twig", ["key" => $context["key"], "n" => $context["n"]]);
echo "
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['n'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 45
echo " </div>
</div>
</div>
";
// line 49
echo " <div class=\"viewList clearfix indexWidth\" id=\"commodityTab\">
";
// line 51
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["indexGoods"]) || array_key_exists("indexGoods", $context) ? $context["indexGoods"] : (function () { throw new RuntimeError('Variable "indexGoods" does not exist.', 51, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["key"] => $context["val"]) {
// line 52
echo " ";
echo twig_include($this->env, $context, "common/_productBanner.html.twig", ["index" => $context["key"], "goods" => $context["val"]]);
echo "
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['val'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 54
echo " </div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "index/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 266 => 54, 249 => 52, 231 => 51, 228 => 49, 223 => 45, 206 => 43, 189 => 42, 185 => 40, 168 => 37, 161 => 36, 144 => 35, 140 => 33, 121 => 28, 113 => 26, 96 => 25, 77 => 9, 71 => 6, 68 => 5, 58 => 4, 35 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block body %}
<!--首页内容-->
<div class=\"indexBigImg viewWidth\" style=\"background-image: url('{{ cdn_url~firstImage.oUrl }}')\">
<h3 class=\"small\">
<!-- <p> item1.desc </p>-->
<p>{{ firstImage.oTitle }}</p>
<!-- <div class=\"bg\"></div>-->
<i>New arrivals in the Pro Team summer collection.</i>
</h3>
</div>
<div class=\"indexTitles indexWidth\">
<div class=\"wrapper\">
<b class=\"taC\">系列产品</b>
</div>
</div>
<div class=\"shopThe clearfix indexWidth\" >
<div class=\"titleDiv fl\">
<div class=\"leftTitle\">系列产品</div>
</div>
<div class=\"bannerVertical clearfix fl\">
<ul class=\"vertical-left fl\" id=\"indexVertical\">
{% for n in highlights %}
<li class=\"nav-item {% if loop.first %}activeP{% endif %}\">
<div class=\"item-wrapper\">
<p class=\"title taC\">{{ n.oName }}</p>
<span class=\"three\"></span>
</div>
</li>
{% endfor %}
</ul>
<ul class=\"vertical-center fl\" id=\"indexVerticalImg\">
{% for n in highlights %}
<li class=\"transition_img {% if loop.first %}activeImg{% endif %}\">
<img src=\"{{ cdn_url~n.oImageUrl }}?imageView2/5/w/800/h/527/q/100\" alt=\"\">
</li>
{% endfor %}
</ul>
<div class=\"vertical-right fr\" id=\"index_vertical_right\">
{% for key,n in highlights %}
{{ include('common/_verticalRight.html.twig',{ key: key, n: n }) }}
{% endfor %}
</div>
</div>
</div>
{#首页商品列表#}
<div class=\"viewList clearfix indexWidth\" id=\"commodityTab\">
{#模拟循环次数,正式的需要外部循环一次,并将数据传入,在组件内循环商品资料,用index匹配封装的js#}
{% for key,val in indexGoods %}
{{ include('common/_productBanner.html.twig',{ index: key, goods: val }) }}
{% endfor %}
</div>
{% endblock %}
", "index/index.html.twig", "/home/wwwroot/ada.santic.com/templates/index/index.html.twig");
}
}