var/cache/dev/twig/b0/b041bbe8eb16862ae4a7f350d657b7291a475a3e7aa8cdb76cb57bb1036ac34f.php line 97

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. /* common/_verticalRight.html.twig */
  14. class __TwigTemplate_304179eb0306ce8f255cd6e110f4593f5d55197a780548977b58f7f520592de7 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""common/_verticalRight.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""common/_verticalRight.html.twig"));
  33.         // line 1
  34.         echo "<div class=\"indexBannerTab ";
  35.         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"falsefalsefalse1)) {
  36.             echo "activeR";
  37.         }
  38.         echo "\">
  39.     <div class=\"bigImg indexBigTab\">
  40.         <div class=\"imgView\">
  41.             ";
  42.         // line 4
  43.         $context['_parent'] = $context;
  44.         $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"falsefalsefalse4));
  45.         $context['loop'] = [
  46.           'parent' => $context['_parent'],
  47.           'index0' => 0,
  48.           'index'  => 1,
  49.           'first'  => true,
  50.         ];
  51.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  52.             $length count($context['_seq']);
  53.             $context['loop']['revindex0'] = $length 1;
  54.             $context['loop']['revindex'] = $length;
  55.             $context['loop']['length'] = $length;
  56.             $context['loop']['last'] = === $length;
  57.         }
  58.         foreach ($context['_seq'] as $context["_key"] => $context["goodses"]) {
  59.             // line 5
  60.             echo "                ";
  61.             // line 6
  62.             echo "                <a href=\"";
  63.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("detail", ["id" => "15"]);
  64.             echo "\" ";
  65.             if (twig_get_attribute($this->env$this->source$context["loop"], "first", [], "any"falsefalsefalse6)) {
  66.                 echo "class=\"showImg\"";
  67.             }
  68.             echo ">
  69.                     <img src=\"";
  70.             // line 7
  71.             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->sourcetwig_first($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["goodses"], "oGoods", [], "any"falsefalsefalse7), "oGoodsImages", [], "any"falsefalsefalse7)), "oUrl", [], "any"falsefalsefalse7)), "html"nulltrue);
  72.             echo "\"  alt=\"img\">
  73.                     <div class=\"desc\">
  74.                         <div class=\"star\">
  75.                             <div>
  76.                                 <span class=\"commonStar\" data-score=\"";
  77.             // line 11
  78.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["goodses"], "oGoods", [], "any"falsefalsefalse11), "oStar", [], "any"falsefalsefalse11), "html"nulltrue);
  79.             echo "\"></span>
  80.                             </div>
  81.                         </div>
  82.                         <div class=\"name\"> ";
  83.             // line 14
  84.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["goodses"], "oGoods", [], "any"falsefalsefalse14), "oName", [], "any"falsefalsefalse14), "html"nulltrue);
  85.             echo " </div>
  86.                         <p class=\"price\">\$";
  87.             // line 15
  88.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_first($this->envtwig_get_attribute($this->env$this->sourcetwig_first($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["goodses"], "oGoods", [], "any"falsefalsefalse15), "oGoodsImages", [], "any"falsefalsefalse15)), "oGoodsSizes", [], "any"falsefalsefalse15)), "oPrice", [], "any"falsefalsefalse15), "html"nulltrue);
  89.             echo " </p>
  90.                     </div>
  91.                 </a>
  92.             ";
  93.             ++$context['loop']['index0'];
  94.             ++$context['loop']['index'];
  95.             $context['loop']['first'] = false;
  96.             if (isset($context['loop']['length'])) {
  97.                 --$context['loop']['revindex0'];
  98.                 --$context['loop']['revindex'];
  99.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  100.             }
  101.         }
  102.         $_parent $context['_parent'];
  103.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['goodses'], $context['_parent'], $context['loop']);
  104.         $context array_intersect_key($context$_parent) + $_parent;
  105.         // line 19
  106.         echo "        </div>
  107.     </div>
  108.     <ul class=\"miniImg clearfix\">
  109.         ";
  110.         // line 23
  111.         $context['_parent'] = $context;
  112.         $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"falsefalsefalse23));
  113.         $context['loop'] = [
  114.           'parent' => $context['_parent'],
  115.           'index0' => 0,
  116.           'index'  => 1,
  117.           'first'  => true,
  118.         ];
  119.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  120.             $length count($context['_seq']);
  121.             $context['loop']['revindex0'] = $length 1;
  122.             $context['loop']['revindex'] = $length;
  123.             $context['loop']['length'] = $length;
  124.             $context['loop']['last'] = === $length;
  125.         }
  126.         foreach ($context['_seq'] as $context["_key"] => $context["goodses"]) {
  127.             // line 24
  128.             echo "            <li  class=\"fl ";
  129.             if (twig_get_attribute($this->env$this->source$context["loop"], "first", [], "any"falsefalsefalse24)) {
  130.                 echo "activeLi";
  131.             }
  132.             echo "\" onclick=\"miniTab(";
  133.             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"nulltrue);
  134.             echo ",";
  135.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsefalse24), "html"nulltrue);
  136.             echo ")\" >
  137.                 <img src=\"";
  138.             // line 25
  139.             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->sourcetwig_first($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["goodses"], "oGoods", [], "any"falsefalsefalse25), "oGoodsImages", [], "any"falsefalsefalse25)), "oUrl", [], "any"falsefalsefalse25)), "html"nulltrue);
  140.             echo "\" alt=\"imgMini\">
  141.                 <div class=\"btnView\">
  142.                     <a target=\"_blank\" class=\"goList\" href=\"";
  143.             // line 27
  144.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("detail", ["id" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["goodses"], "oGoods", [], "any"falsefalsefalse27), "id", [], "any"falsefalsefalse27)]), "html"nulltrue);
  145.             echo "\">查看详情</a>
  146.                 </div>
  147.             </li>
  148.         ";
  149.             ++$context['loop']['index0'];
  150.             ++$context['loop']['index'];
  151.             $context['loop']['first'] = false;
  152.             if (isset($context['loop']['length'])) {
  153.                 --$context['loop']['revindex0'];
  154.                 --$context['loop']['revindex'];
  155.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  156.             }
  157.         }
  158.         $_parent $context['_parent'];
  159.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['goodses'], $context['_parent'], $context['loop']);
  160.         $context array_intersect_key($context$_parent) + $_parent;
  161.         // line 31
  162.         echo "    </ul>
  163. </div>
  164. ";
  165.         
  166.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  167.         
  168.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  169.     }
  170.     public function getTemplateName()
  171.     {
  172.         return "common/_verticalRight.html.twig";
  173.     }
  174.     public function isTraitable()
  175.     {
  176.         return false;
  177.     }
  178.     public function getDebugInfo()
  179.     {
  180.         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,);
  181.     }
  182.     public function getSourceContext()
  183.     {
  184.         return new Source("<div class=\"indexBannerTab {% if loop.first %}activeR{% endif %}\">
  185.     <div class=\"bigImg indexBigTab\">
  186.         <div class=\"imgView\">
  187.             {% for goodses in n.oIndexHighlightGoodses %}
  188.                 {#                                {{ dump(goodses.oGoods) }}#}
  189.                 <a href=\"{{ path('detail',{ 'id':'15'}) }}\" {% if loop.first %}class=\"showImg\"{% endif %}>
  190.                     <img src=\"{{ cdn_url~goodses.oGoods.oGoodsImages|first.oUrl }}\"  alt=\"img\">
  191.                     <div class=\"desc\">
  192.                         <div class=\"star\">
  193.                             <div>
  194.                                 <span class=\"commonStar\" data-score=\"{{ goodses.oGoods.oStar }}\"></span>
  195.                             </div>
  196.                         </div>
  197.                         <div class=\"name\"> {{ goodses.oGoods.oName }} </div>
  198.                         <p class=\"price\">\${{ goodses.oGoods.oGoodsImages|first.oGoodsSizes|first.oPrice }} </p>
  199.                     </div>
  200.                 </a>
  201.             {% endfor %}
  202.         </div>
  203.     </div>
  204.     <ul class=\"miniImg clearfix\">
  205.         {% for goodses in n.oIndexHighlightGoodses %}
  206.             <li  class=\"fl {% if loop.first %}activeLi{% endif %}\" onclick=\"miniTab({{ key }},{{ loop.index0 }})\" >
  207.                 <img src=\"{{ cdn_url~goodses.oGoods.oGoodsImages|first.oUrl }}\" alt=\"imgMini\">
  208.                 <div class=\"btnView\">
  209.                     <a target=\"_blank\" class=\"goList\" href=\"{{ path('detail',{ 'id':goodses.oGoods.id}) }}\">查看详情</a>
  210.                 </div>
  211.             </li>
  212.         {% endfor %}
  213.     </ul>
  214. </div>
  215. ""common/_verticalRight.html.twig""/home/wwwroot/ada.santic.com/templates/common/_verticalRight.html.twig");
  216.     }
  217. }