templates/Cart/topNavCart.html.twig line 1

Open in your IDE?
  1. {% set isPortal = ((isPortal is defined) and isPortal) %}
  2. <div class="tools">
  3.   {% if FirstName is defined and FirstName is not empty %}
  4.   <div class="account-info">
  5.     <div class="img-holder">
  6.     
  7.       <a href="#"><img src="{{ asset('website/static/images/profile-icon.png') }}" alt="" width="37" height="37"></a>
  8.     </div>
  9.     <div class="text">
  10.       <span class="greeting">{{ 'topnav.welcome'|trans }},</span>
  11.       <strong class="name"><a href="#">{{ FirstName }}</a></strong>
  12.     </div>
  13.     <div class="drop">
  14.       <div class="box">
  15.         <h2>{{ FirstName ~ ' ' ~ LastName }}</h2>
  16.         <h2><a href="/{{ language|lower }}/account/history">{{ 'topnav.downloadhistory'|trans}}</a></h2>
  17.         <h2><a href="/{{ language|lower }}/account/sign-out">{{ 'topnav.signout'|trans}}</a></h2>
  18.       </div>
  19.     </div>
  20.   </div>
  21.   {% endif %}
  22.   {% set checkouturl = null %}
  23.   {% if editmode %}
  24.     {% set checkouturl =  pimcore_url({'action': 'list', 'prefix': language|lower, 'cart': null}) %}
  25.    
  26.   {% endif %}
  27.   
  28.   <div class="download-info hover-js">
  29. {% if cart and cart.getItems()|length > 0 %}
  30.     <a href="{{ checkouturl }}"><div class="data-holder"><span>{{cart.getItems()|length}}</span></div></a>
  31.     {% endif %}
  32.     <div class="text">
  33.       <span class="title"><a href="{{ checkouturl }}">{{ 'topnav.files to'|trans}}</a></span>
  34.       <strong class="link"><a href="{{ checkouturl }}" class="download">{{ 'topnav.download'|trans}}</a></strong>
  35.     </div>
  36.     <div class="drop">
  37.       <div class="box">
  38.         {% if cart and cart.getItems()|length > 0 %}
  39.         <h2>{{ 'cart.downloadlist'|trans}}:</h2>
  40.         <ul>
  41.           {% for item in cart.getItems() %}
  42.             <li><a href="{{ item.product.detailUrl }}">{{ item.product.OSName }}</a></li>
  43.           {% endfor %}
  44.         </ul>
  45.         <a href="{{ checkouturl }}" class="btn btn-default">{{ 'topnav.proceed to download'|trans}}</a>
  46.         <?php else: ?>
  47.         <h2>{{ 'topnav.add to the download list'|trans}}</h2>
  48.         {% endif %}
  49.       </div>
  50.     </div>
  51.   </div>
  52.   
  53. </div>