<?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;
/* common/_verticalRight.html.twig */
class __TwigTemplate_304179eb0306ce8f255cd6e110f4593f5d55197a780548977b58f7f520592de7 extends 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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "common/_verticalRight.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "common/_verticalRight.html.twig"));
// line 1
echo "<div class=\"indexBannerTab ";
if (twig_get_attribute($this->env, $this->source, (isset($context["loop"]) || array_key_exists("loop", $context) ? $context["loop"] : (function () { throw new RuntimeError('Variable "loop" does not exist.', 1, $this->source); })()), "first", [], "any", false, false, false, 1)) {
echo "activeR";
}
echo "\">
<div class=\"bigImg indexBigTab\">
<div class=\"imgView\">
";
// line 4
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["n"]) || array_key_exists("n", $context) ? $context["n"] : (function () { throw new RuntimeError('Variable "n" does not exist.', 4, $this->source); })()), "oIndexHighlightGoodses", [], "any", false, false, false, 4));
$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["goodses"]) {
// line 5
echo " ";
// line 6
echo " <a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("detail", ["id" => "15"]);
echo "\" ";
if (twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 6)) {
echo "class=\"showImg\"";
}
echo ">
<img src=\"";
// line 7
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.', 7, $this->source); })()) . twig_get_attribute($this->env, $this->source, twig_first($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["goodses"], "oGoods", [], "any", false, false, false, 7), "oGoodsImages", [], "any", false, false, false, 7)), "oUrl", [], "any", false, false, false, 7)), "html", null, true);
echo "\" alt=\"img\">
<div class=\"desc\">
<div class=\"star\">
<div>
<span class=\"commonStar\" data-score=\"";
// line 11
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["goodses"], "oGoods", [], "any", false, false, false, 11), "oStar", [], "any", false, false, false, 11), "html", null, true);
echo "\"></span>
</div>
</div>
<div class=\"name\"> ";
// line 14
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["goodses"], "oGoods", [], "any", false, false, false, 14), "oName", [], "any", false, false, false, 14), "html", null, true);
echo " </div>
<p class=\"price\">\$";
// line 15
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_first($this->env, twig_get_attribute($this->env, $this->source, twig_first($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["goodses"], "oGoods", [], "any", false, false, false, 15), "oGoodsImages", [], "any", false, false, false, 15)), "oGoodsSizes", [], "any", false, false, false, 15)), "oPrice", [], "any", false, false, false, 15), "html", null, true);
echo " </p>
</div>
</a>
";
++$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['goodses'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 19
echo " </div>
</div>
<ul class=\"miniImg clearfix\">
";
// line 23
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["n"]) || array_key_exists("n", $context) ? $context["n"] : (function () { throw new RuntimeError('Variable "n" does not exist.', 23, $this->source); })()), "oIndexHighlightGoodses", [], "any", false, false, false, 23));
$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["goodses"]) {
// line 24
echo " <li class=\"fl ";
if (twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 24)) {
echo "activeLi";
}
echo "\" onclick=\"miniTab(";
echo twig_escape_filter($this->env, (isset($context["key"]) || array_key_exists("key", $context) ? $context["key"] : (function () { throw new RuntimeError('Variable "key" does not exist.', 24, $this->source); })()), "html", null, true);
echo ",";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 24), "html", null, true);
echo ")\" >
<img src=\"";
// line 25
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.', 25, $this->source); })()) . twig_get_attribute($this->env, $this->source, twig_first($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["goodses"], "oGoods", [], "any", false, false, false, 25), "oGoodsImages", [], "any", false, false, false, 25)), "oUrl", [], "any", false, false, false, 25)), "html", null, true);
echo "\" alt=\"imgMini\">
<div class=\"btnView\">
<a target=\"_blank\" class=\"goList\" href=\"";
// line 27
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("detail", ["id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["goodses"], "oGoods", [], "any", false, false, false, 27), "id", [], "any", false, false, false, 27)]), "html", null, true);
echo "\">查看详情</a>
</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['goodses'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 31
echo " </ul>
</div>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "common/_verticalRight.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 172 => 31, 154 => 27, 149 => 25, 138 => 24, 121 => 23, 115 => 19, 97 => 15, 93 => 14, 87 => 11, 80 => 7, 71 => 6, 69 => 5, 52 => 4, 43 => 1,);
}
public function getSourceContext()
{
return new Source("<div class=\"indexBannerTab {% if loop.first %}activeR{% endif %}\">
<div class=\"bigImg indexBigTab\">
<div class=\"imgView\">
{% for goodses in n.oIndexHighlightGoodses %}
{# {{ dump(goodses.oGoods) }}#}
<a href=\"{{ path('detail',{ 'id':'15'}) }}\" {% if loop.first %}class=\"showImg\"{% endif %}>
<img src=\"{{ cdn_url~goodses.oGoods.oGoodsImages|first.oUrl }}\" alt=\"img\">
<div class=\"desc\">
<div class=\"star\">
<div>
<span class=\"commonStar\" data-score=\"{{ goodses.oGoods.oStar }}\"></span>
</div>
</div>
<div class=\"name\"> {{ goodses.oGoods.oName }} </div>
<p class=\"price\">\${{ goodses.oGoods.oGoodsImages|first.oGoodsSizes|first.oPrice }} </p>
</div>
</a>
{% endfor %}
</div>
</div>
<ul class=\"miniImg clearfix\">
{% for goodses in n.oIndexHighlightGoodses %}
<li class=\"fl {% if loop.first %}activeLi{% endif %}\" onclick=\"miniTab({{ key }},{{ loop.index0 }})\" >
<img src=\"{{ cdn_url~goodses.oGoods.oGoodsImages|first.oUrl }}\" alt=\"imgMini\">
<div class=\"btnView\">
<a target=\"_blank\" class=\"goList\" href=\"{{ path('detail',{ 'id':goodses.oGoods.id}) }}\">查看详情</a>
</div>
</li>
{% endfor %}
</ul>
</div>
", "common/_verticalRight.html.twig", "/home/wwwroot/ada.santic.com/templates/common/_verticalRight.html.twig");
}
}