src/Aqarmap/Bundle/ListingBundle/Resources/views/Listing/listingTopSellers.html.twig line 1

Open in your IDE?
  1. {% if not IS_PROJECT %}
  2.     {% set attrPropertyType = app.request.attributes.get('propertyType') %}
  3.     {% set attrPropertyTypeId = propertyType ?  propertyType.id : null %}
  4.     {% set listingPropertyType = listing is defined ? listing.propertyType : null %}
  5.     {% set listingPropertyTypeId = listingPropertyType ?  listingPropertyType.id : 'null' %}
  6.     {% set attrSection = app.request.attributes.get('section') %}
  7.     {% set attrSectionId = section ? section.id : null %}
  8.     {% set listingSection = listing is defined ? listing.section : null %}
  9.     {% set listingSectionId = listingSection ? listingSection.id : 'null' %}
  10.     {% set paramLocation = app.request.query.get('location')%}
  11.     {% set paramLocationId = paramLocation ? paramLocation : null %}
  12.     {% set attrLocation = app.request.attributes.get('location')%}
  13.     {% set attrLocationId = attrLocation ? attrLocation.id : null %}
  14.     {% set listingLocation = listing is defined ? listing.location : null %}
  15.     {% set listingLocationId = listingLocation ? listingLocation.id : 'null' %}
  16.     {% set locationId = attrLocationId ? attrLocationId: (paramLocationId ? paramLocationId : listingLocationId)  %}
  17.     {% set propertyTypeId = attrPropertyTypeId ? attrPropertyTypeId :  listingPropertyType %}
  18.     {% set sectionId = attrSectionId ? attrSectionId :  listingSectionId %}
  19.     {% set isCompaniesDataParamsDefined = true %}
  20.         <div class="top-sellers-warp-cards top-sellers-logos horizontal-top-sellers-container">
  21.             {% include "@AqarmapListingBundle/Listing/topSellersLogosCard.html.twig"  with {trigger: 'gtm-action-topsellers-lead-logos-card', eventAction:'Top Sellers Logos Card' , leadSourcePage: 'listing_details'} %}
  22.         </div>
  23. {% endif %}