custom/plugins/ShopWithMeUI/src/Resources/views/storefront/layout/footer/footer.html.twig line 1

Open in your IDE?
  1. {% block layout_footer_inner_container %}
  2.     {% set isLoggedIn = context.customer is not null ? 'true' : 'false' %}
  3.     {% set CompanyAddressHongKong = config('ShopWithMeUI.config.CompanyAddressHongKong') %}
  4.     {% set LinkSocialNetworkFacebook = config('ShopWithMeUI.config.LinkSocialNetworkFacebook') %}
  5.     {% set LinkSocialNetworkYoutube = config('ShopWithMeUI.config.LinkSocialNetworkYoutube') %}
  6.     {% set isoCode = page.header.activeLanguage.translationCode.code|lower|split('-') %}
  7.     {% set flagCountry = isoCode[1] %}
  8.     {% set translationCode = page.header.activeLanguage.translationCode.code|lower|split('-') %}
  9.     {% set countryLocal = translationCode[1] %}
  10.     <footer
  11.         id="swm-footer" class="homePage_footer_wrapper">
  12.         <!--Container-->
  13.         <div
  14.             class="homePage_footer_container swm-m-auto">
  15.             <!--Contents-->
  16.             <div
  17.                 class="homePage_footer_content-box d-flex flex-col">
  18.                 <!--Content-->
  19.                 <div
  20.                     class="homePage_footer_content d-flex justify-between">
  21.                     <!--Left-->
  22.                     <div class="homePage_footer_content-left d-flex flex-col">
  23.                         <img class="homePage_footer_content_logo" src="{{ asset('bundles/shopwithmeui/assets/imgs/logo-header.png') }}"/>
  24.                         <p class="homePage_footer_content_title text-heading-3-smb mobile:d-none">{{'app.footer.title'|trans|raw}}</p>
  25.                         <p class="homePage_footer_content_title homePage_footer_content_title-mobile text-heading-3-smb desktop:d-none">{{'app.home.getBestHappy'|trans|raw}}</p>
  26.                         <div class="homePage_footer_content_left_address">
  27.                             <span>{{ CompanyAddressHongKong }}</span>
  28.                         </div>
  29.                         <div class="homePage_footer_content_left_social_network">
  30.                             <a href="{{ LinkSocialNetworkFacebook }}" class="homePage_footer_content_left_social_network-item d-flex" target="_blank">
  31.                                 <img class="width-full" src="{{ asset('bundles/shopwithmeui/assets/icons/social_network_facebook.png') }}"/>
  32.                             </a>
  33.                             <a href="{{ LinkSocialNetworkYoutube }}" class="homePage_footer_content_left_social_network-item d-flex" target="_blank">
  34.                                 <img class="width-full" src="{{ asset('bundles/shopwithmeui/assets/icons/social_network_youtube.png') }}"/>
  35.                             </a>
  36.                         </div>
  37.                     </div>
  38.                     <!--Right-->
  39.                     <div
  40.                         id="footer_content_entry" class="homePage_footer_content_right d-flex">
  41.                         <!--Mock data-->
  42.                         <div class="homePage_footer_list d-flex flex-col gap-1.5rem">
  43.                             <h3 class="homePage_footer_list_title typo-head-5">{{ 'app.footer.categories.name'|trans|sw_sanitize }}</h3>
  44.                             <ul class="d-flex flex-col gap-1.5rem swm-p-0">
  45.                                 <li>
  46.                                     <a href="{{ seoUrl('frontend.current-deals') ~ '?category=' ~ '5bf8d9999ab24a84930e7bf07d7d4a6e' }}">{{ 'app.footer.categories.beauty'|trans|sw_sanitize }}</a>
  47.                                 </li>
  48.                             </ul>
  49.                             <ul class="d-flex flex-col gap-1.5rem swm-p-0">
  50.                                 <li>
  51.                                     <a href="{{ seoUrl('frontend.current-deals') ~ '?category=' ~ 'defe75e13ae7497d84edc460491818c6' }}">{{ 'app.footer.categories.fitness'|trans|sw_sanitize }}</a>
  52.                                 </li>
  53.                             </ul>
  54.                             <ul class="d-flex flex-col gap-1.5rem swm-p-0">
  55.                                 <li>
  56.                                     <a href="{{ seoUrl('frontend.current-deals') ~ '?category=' ~ 'a3e978d399ad4e56bf9eab1e896dd6fe' }}">{{ 'app.footer.categories.health'|trans|sw_sanitize }}</a>
  57.                                 </li>
  58.                             </ul>
  59.                             <ul class="d-flex flex-col gap-1.5rem swm-p-0">
  60.                                 <li>
  61.                                     <a href="{{ seoUrl('frontend.current-deals') ~ '?category=' ~ 'a029f373001a47f8b1dd9a18e8bc75cc' }}">{{ 'app.footer.categories.consumerElec'|trans|sw_sanitize }}</a>
  62.                                 </li>
  63.                             </ul>
  64.                         </div>
  65.                         <div class="homePage_footer_list d-flex flex-col gap-1.5rem">
  66.                             <h3 class="homePage_footer_list_title typo-head-5">{{ 'app.footer.links.name'|trans|sw_sanitize }}</h3>
  67.                             <ul class="d-flex flex-col gap-1.5rem swm-p-0">
  68.                                 <li>
  69.                                     <a href="{{ seoUrl('frontend.account.home.page') }}">{{ 'app.footer.links.account'|trans|sw_sanitize }}</a>
  70.                                 </li>
  71.                             </ul>
  72.                             <ul class="d-flex flex-col gap-1.5rem swm-p-0">
  73.                                 <li>
  74.                                     <a href="{{ isLoggedIn ? seoUrl('frontend.my.deals') : seoUrl('frontend.current-deals') }}">{{ 'app.footer.links.deals'|trans|sw_sanitize }}</a>
  75.                                 </li>
  76.                             </ul>
  77.                             {% if flagCountry != 'vn' %}
  78.                             <ul class="d-flex flex-col gap-1.5rem swm-p-0">
  79.                                 <li>
  80.                                     <a href="{{ seoUrl('frontend.shop4free') }}">{{ 'app.footer.links.shop4free'|trans|sw_sanitize }}</a>
  81.                                 </li>
  82.                             </ul>
  83.                             {% endif %}
  84.                             <ul class="d-flex flex-col gap-1.5rem swm-p-0">
  85.                                 <li>
  86.                                     <a href="{{ seoUrl('frontend.ai.stream') }}">{{ 'app.footer.links.aiStream'|trans|sw_sanitize }}</a>
  87.                                 </li>
  88.                             </ul>
  89.                             <ul class="d-flex flex-col gap-1.5rem swm-p-0">
  90.                                 <li>
  91.                                     <a href="{{ seoUrl('frontend.credit.lucky-wheel') }}">{{ 'app.footer.links.luckyWheel'|trans|sw_sanitize }}</a>
  92.                                 </li>
  93.                             </ul>
  94.                         </div>
  95.                         <div class="homePage_footer_list d-flex flex-col gap-1.5rem">
  96.                             <h3 class="homePage_footer_list_title typo-head-5">{{ 'app.footer.information.name'|trans|sw_sanitize }}</h3>
  97.                             {% set termAndConditionPageId = page.extensions.swmUI.termAndConditionPageId %}
  98.                             {% set shippingPolicyHk = page.extensions.swmUI.shippingPolicyHk %}
  99.                             {% set disputePolicyHk = page.extensions.swmUI.disputePolicyHk %}
  100.                             {% set refundPolicyHk = page.extensions.swmUI.refundPolicyHk %}
  101.                             {% if countryLocal in ['hk'] %}
  102.                                 <ul class="d-flex flex-col gap-1.5rem swm-p-0">
  103.                                     <li>
  104.                                         <a href="{% if shippingPolicyHk %}{{ seoUrl('frontend.navigation.page', { navigationId: shippingPolicyHk }) }}{% else %}#{% endif %}">發貨政策</a>
  105.                                     </li>
  106.                                 </ul>
  107.                                 <ul class="d-flex flex-col gap-1.5rem swm-p-0">
  108.                                     <li>
  109.                                         <a href="{% if refundPolicyHk %}{{ seoUrl('frontend.navigation.page', { navigationId: refundPolicyHk }) }}{% else %}#{% endif %}">退貨及退款政策</a>
  110.                                     </li>
  111.                                 </ul>
  112.                                 <ul class="d-flex flex-col gap-1.5rem swm-p-0">
  113.                                     <li>
  114.                                         <a href="{% if disputePolicyHk %}{{ seoUrl('frontend.navigation.page', { navigationId: disputePolicyHk }) }}{% else %}#{% endif %}">商戶欺詐監控政策及流程、爭議處理政策及流程</a>
  115.                                     </li>
  116.                                 </ul>
  117.                                 <ul class="d-flex flex-col gap-1.5rem swm-p-0">
  118.                                     <li>
  119.                                         <a href="{% if termAndConditionPageId %}{{ seoUrl('frontend.navigation.page', { navigationId: termAndConditionPageId }) }}{% else %}#{% endif %}">{{ 'app.footer.information.privacyPolicy'|trans|sw_sanitize }}</a>
  120.                                     </li>
  121.                                 </ul>
  122.                             {% else %}
  123.                             <ul class="d-flex flex-col gap-1.5rem swm-p-0">
  124.                                 <li>
  125.                                     <a href="{% if termAndConditionPageId %}{{ seoUrl('frontend.navigation.page', { navigationId: termAndConditionPageId }) }}{% else %}#{% endif %}">{{ 'app.footer.information.privacyPolicy'|trans|sw_sanitize }}</a>
  126.                                 </li>
  127.                             </ul>
  128.                             <ul class="d-flex flex-col gap-1.5rem swm-p-0">
  129.                                 <li>
  130.                                     <a href="{% if termAndConditionPageId %}{{ seoUrl('frontend.navigation.page', { navigationId: termAndConditionPageId }) }}{% else %}#{% endif %}">{{ 'app.footer.information.terms'|trans|sw_sanitize }}</a>
  131.                                 </li>
  132.                             </ul>
  133.                             {% endif %}
  134.                         </div>
  135.                         <div class="homePage_footer_list d-flex flex-col gap-1.5rem">
  136.                             <h3 class="homePage_footer_list_title typo-head-5">{{ 'app.footer.support.name'|trans|sw_sanitize }}</h3>
  137.                             <ul class="d-flex flex-col gap-1.5rem swm-p-0">
  138.                                 <li>
  139.                                     <a href="https://support.shopwithme.info" target="_blank">{{ 'app.footer.support.cusService'|trans|sw_sanitize }}</a>
  140.                                 </li>
  141.                             </ul>
  142.                             <ul class="d-flex flex-col gap-1.5rem swm-p-0">
  143.                                 <li>
  144.                                     <a href="{{ seoUrl('frontend.contact') }}" target="_blank">{{ 'app.footer.support.contactUs'|trans|sw_sanitize }}</a>
  145.                                 </li>
  146.                             </ul>
  147.                         </div>
  148.                     </div>
  149.                 </div>
  150.                 <!--Copyright-->
  151.                 <p class="homePage_footer_copyright d-flex justify-center typo-sub-text-2">@{{ date()|date('Y') }} Shopwithme</p>
  152.             </div>
  153.         </div>
  154.     </footer>
  155. {% endblock %}