[IMP] website, *: replace contact by sales_three header

*: website_sale, website_sale_wishlist

The new header is quite different from the old one, the xml_id of
the header will thus change. That new "sales_three" header will however
be the closest one to the "contact". A related upgrade script will be
made to treat this as a simple xml_id renaming.

task-3060986

Part-of: odoo/odoo#119650
This commit is contained in:
Brieuc-brd
2023-10-25 11:37:12 +00:00
committed by qsm-odoo
parent 73e465e9c7
commit 986a76da4a
10 changed files with 131 additions and 198 deletions
+1 -1
View File
@@ -222,7 +222,6 @@ class Theme(models.AbstractModel):
'website.template_header_hamburger',
'website.template_header_vertical',
'website.template_header_sidebar',
'website.template_header_contact',
'website.template_header_boxed',
'website.template_header_image',
'website.template_header_hamburger_full',
@@ -231,6 +230,7 @@ class Theme(models.AbstractModel):
'website.template_header_search',
'website.template_header_sales_one',
'website.template_header_sales_two',
'website.template_header_sales_three',
# Default one, keep it last
'website.template_header_default',
]
@@ -1,74 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="234px" height="50px" viewBox="0 0 234 50" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<linearGradient x1="0%" y1="47.717%" x2="100%" y2="52.283%" id="linearGradient-1">
<stop stop-color="#00A09D" offset="0%"></stop>
<stop stop-color="#00E2FF" offset="100%"></stop>
</linearGradient>
</defs>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="header_template_contact" fill-rule="nonzero">
<g id="Group">
<g id="path-27-link" fill="#000000" fill-opacity="0.14">
<rect id="path-27" x="0" y="0" width="234" height="50"></rect>
</g>
<g id="path-27-link" fill="url(#linearGradient-1)" fill-opacity="0.3">
<rect id="path-27" x="0" y="0" width="234" height="50"></rect>
</g>
</g>
<g id="Group" transform="translate(10.000000, 31.000000)" fill="#FFFFFF">
<path d="M7.676,9 L7.676,6.885 L3.533,6.885 L3.533,0.41 L0.88,0.41 L0.88,9 L7.677,9 L7.676,9 Z M12.085,9.146 C13.038,9.146 13.834,8.968 14.472,8.61 C15.0978687,8.26580349 15.6076733,7.7438192 15.937,7.11 C16.275,6.468 16.444,5.645 16.444,4.64 C16.444,3.258 16.057,2.183 15.284,1.415 C14.511,0.647 13.409,0.264 11.979,0.264 C10.585,0.264 9.497,0.654 8.716,1.436 C7.934,2.216 7.544,3.309 7.544,4.711 C7.544,5.715 7.741,6.551 8.136,7.219 C8.53,7.887 9.045,8.375 9.679,8.684 C10.314,8.992 11.116,9.146 12.085,9.146 L12.085,9.146 Z M11.997,7.16 C11.442,7.16 11.004,6.97 10.681,6.592 C10.359,6.212 10.198,5.59 10.198,4.722 C10.198,3.848 10.36,3.221 10.684,2.842 C11.009,2.462 11.438,2.273 11.974,2.273 C12.532,2.273 12.974,2.46 13.301,2.833 C13.627,3.206 13.79,3.797 13.79,4.605 C13.79,5.566 13.634,6.232 13.321,6.604 C13.009,6.974 12.567,7.16 11.997,7.16 L11.997,7.16 Z M21.263,9.146 C22.091,9.146 22.807,9.05 23.411,8.856 C24.014,8.663 24.709,8.299 25.494,7.764 L25.494,4.102 L21.392,4.102 L21.392,5.889 L23.168,5.889 L23.168,6.697 C22.8767329,6.87778645 22.5661293,7.0253735 22.242,7.137 C21.9670701,7.22381625 21.6803084,7.26733655 21.392,7.266 C20.767,7.266 20.28,7.066 19.93,6.668 C19.58,6.27 19.406,5.605 19.406,4.676 C19.406,3.801 19.579,3.161 19.924,2.756 C20.27,2.353 20.734,2.15 21.316,2.15 C21.706,2.15 22.028,2.236 22.28,2.408 C22.532,2.58 22.71,2.828 22.816,3.152 L25.376,2.695 C25.22,2.141 24.986,1.683 24.676,1.321 C24.3615772,0.956921109 23.9576072,0.681173671 23.504,0.521 C23.034,0.35 22.324,0.264 21.374,0.264 C20.39,0.264 19.607,0.402 19.025,0.68 C18.3059335,1.01379281 17.7108821,1.56649058 17.325,2.259 C16.939,2.952 16.745,3.768 16.745,4.705 C16.745,5.595 16.922,6.385 17.276,7.072 C17.6020876,7.73123825 18.1238794,8.27363635 18.77,8.625 C19.413,8.973 20.244,9.146 21.263,9.146 L21.263,9.146 Z M30.477,9.146 C31.43,9.146 32.226,8.968 32.865,8.61 C33.4904985,8.26564661 33.9999402,7.74367762 34.329,7.11 C34.667,6.468 34.836,5.645 34.836,4.64 C34.836,3.258 34.45,2.183 33.676,1.415 C32.903,0.647 31.801,0.264 30.371,0.264 C28.977,0.264 27.889,0.654 27.108,1.436 C26.327,2.216 25.936,3.309 25.936,4.711 C25.936,5.715 26.133,6.551 26.528,7.219 C26.922,7.887 27.437,8.375 28.072,8.684 C28.706,8.992 29.508,9.146 30.477,9.146 Z M30.389,7.16 C29.834,7.16 29.396,6.97 29.074,6.592 C28.751,6.212 28.59,5.59 28.59,4.722 C28.59,3.848 28.752,3.221 29.077,2.842 C29.401,2.462 29.83,2.273 30.366,2.273 C30.924,2.273 31.366,2.46 31.693,2.833 C32.019,3.206 32.182,3.797 32.182,4.605 C32.182,5.566 32.026,6.232 31.713,6.604 C31.401,6.974 30.959,7.16 30.389,7.16 L30.389,7.16 Z" id="Shape"></path>
</g>
<g id="Group" opacity="0.804" transform="translate(56.000000, 34.000000)" fill="#FFFFFF">
<g id="Rectangle">
<rect x="0" y="0" width="13" height="4" rx="1"></rect>
</g>
<g transform="translate(18.000000, 0.000000)" id="Rectangle">
<rect x="0" y="0" width="23" height="4" rx="1"></rect>
</g>
<g transform="translate(46.000000, 0.000000)" id="Rectangle">
<rect x="0" y="0" width="16" height="4" rx="1"></rect>
</g>
<g transform="translate(67.000000, 0.000000)" id="Rectangle">
<rect x="0" y="0" width="23" height="4" rx="1"></rect>
</g>
</g>
<rect id="Rectangle" fill="#FFFFFF" x="204" y="31" width="20" height="9" rx="4.5"></rect>
<g id="Group" opacity="0.804" transform="translate(21.000000, 12.000000)" fill="#FFFFFF">
<g id="Rectangle">
<rect x="0" y="0" width="17" height="4" rx="1"></rect>
</g>
</g>
<g id="Group" opacity="0.804" transform="translate(43.000000, 12.000000)" fill="#FFFFFF">
<g id="Rectangle">
<rect x="0" y="0" width="17" height="4" rx="1"></rect>
</g>
</g>
<g id="Group" opacity="0.804" transform="translate(218.000000, 12.000000)" fill="#FFFFFF">
<g id="Rectangle">
<rect x="0" y="0" width="6" height="4" rx="1"></rect>
</g>
</g>
<g id="Group" opacity="0.804" transform="translate(209.000000, 12.000000)" fill="#FFFFFF">
<g id="Rectangle">
<rect x="0" y="0" width="6" height="4" rx="1"></rect>
</g>
</g>
<g id="Group" opacity="0.804" transform="translate(200.000000, 12.000000)" fill="#FFFFFF">
<g id="Rectangle">
<rect x="0" y="0" width="6" height="4" rx="1"></rect>
</g>
</g>
<g id="Group" opacity="0.804" transform="translate(191.000000, 12.000000)" fill="#FFFFFF">
<g id="Rectangle">
<rect x="0" y="0" width="6" height="4" rx="1"></rect>
</g>
</g>
<g id="Group-Copy" opacity="0.804" transform="translate(10.000000, 12.000000)" fill="#FFFFFF">
<g id="Group">
<rect id="Rectangle" x="0" y="0" width="6" height="4" rx="1"></rect>
</g>
</g>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 6.2 KiB

@@ -0,0 +1 @@
<svg width="234" height="60" viewBox="0 0 234 60" xmlns="http://www.w3.org/2000/svg"><path fill="#fff" fill-opacity=".5" d="M0 5h234v50H0z"/><path fill="url(#header_preview_sales_three__a)" d="M0 5h234v34H0z"/><path d="M18.082 29.708v-1.865h-3.708v-5.714H12v7.58l6.082-.001Zm3.945.13c.852 0 1.565-.158 2.136-.473a3.21 3.21 0 0 0 1.31-1.324c.303-.567.454-1.293.454-2.179 0-1.22-.346-2.169-1.038-2.846-.692-.677-1.677-1.016-2.957-1.016-1.247 0-2.22.345-2.92 1.034-.699.69-1.048 1.653-1.048 2.89 0 .886.176 1.624.53 2.213.352.59.813 1.02 1.38 1.292.569.273 1.286.409 2.153.409Zm-.079-1.753c-.496 0-.889-.167-1.177-.501-.288-.335-.432-.884-.432-1.65 0-.772.145-1.325.435-1.66.29-.333.674-.5 1.153-.5.5 0 .896.164 1.188.493.291.33.437.85.437 1.564 0 .848-.14 1.436-.42 1.763-.279.327-.674.491-1.184.491Zm8.291 1.753c.741 0 1.381-.085 1.921-.256.54-.17 1.162-.492 1.864-.964v-3.232h-3.67v1.577h1.589v.714c-.26.16-.539.29-.828.388a2.52 2.52 0 0 1-.76.113c-.56 0-.996-.176-1.309-.527-.312-.352-.469-.938-.469-1.758 0-.772.155-1.336.464-1.693.31-.357.724-.535 1.245-.535.35 0 .637.076.863.227.225.152.385.37.48.657l2.29-.403c-.14-.49-.348-.894-.626-1.213a2.476 2.476 0 0 0-1.049-.705c-.42-.152-1.056-.228-1.905-.228-.881 0-1.582.122-2.103.367-.64.293-1.173.78-1.52 1.393-.346.612-.519 1.332-.519 2.159 0 .786.158 1.482.474 2.089a3.17 3.17 0 0 0 1.337 1.37c.575.306 1.319.46 2.231.46Zm8.244 0c.853 0 1.565-.158 2.136-.473a3.21 3.21 0 0 0 1.31-1.324c.303-.567.454-1.293.454-2.179 0-1.22-.346-2.169-1.038-2.846-.692-.677-1.677-1.016-2.957-1.016-1.247 0-2.22.345-2.92 1.034-.699.69-1.048 1.653-1.048 2.89 0 .886.176 1.624.53 2.213.352.59.813 1.02 1.38 1.292.569.273 1.286.409 2.153.409Zm-.079-1.753c-.496 0-.888-.167-1.177-.501-.288-.335-.432-.884-.432-1.65 0-.772.145-1.325.435-1.66.29-.333.674-.5 1.153-.5.5 0 .896.164 1.188.493.292.33.437.85.437 1.564 0 .848-.14 1.436-.419 1.763-.28.327-.675.491-1.185.491Z" fill="#fff"/><rect x="176" y="27" width="12" height="4" rx="1" fill="#fff"/><rect x="190" y="27" width="18" height="4" rx="1" fill="#fff"/><rect x="210" y="27" width="12" height="4" rx="1" fill="#fff"/><rect x="210" y="21" width="12" height="2" rx="1" fill="#fff"/><rect x="192" y="21" width="16" height="2" rx="1" fill="#fff"/><path fill-opacity=".33" d="M0 5h234v8H0z"/><rect x="12" y="8" width="21" height="2" rx="1" fill="#fff"/><rect x="37" y="8" width="21" height="2" rx="1" fill="#fff"/><rect x="63" y="8" width="21" height="2" rx="1" fill="#fff"/><path fill="#fff" d="M192 5h30v8h-30z"/><defs><linearGradient id="header_preview_sales_three__a" x1="0" y1="5" x2="234.841" y2="31.566" gradientUnits="userSpaceOnUse"><stop stop-color="#357C83"/><stop offset="1" stop-color="#01A09D"/></linearGradient></defs></svg>

After

Width:  |  Height:  |  Size: 2.7 KiB

@@ -12,6 +12,8 @@ $o-base-color-palette: map-merge($o-base-color-palette, (
'header-sales_one-custom': null,
'header-sales_two': 5,
'header-sales_two-custom': null,
'header-sales_three': 2,
'header-sales_three-custom': null,
'footer': 5, // o_cc5
'footer-custom': null,
'copyright': null,
@@ -147,6 +147,7 @@ $-actual-user-color-palette: map-merge($-palette-default, $o-user-color-palette)
'menu': 'menu-custom',
'header-sales_one': 'header-sales_one-custom',
'header-sales_two': 'header-sales_two-custom',
'header-sales_three': 'header-sales_three-custom',
'footer': 'footer-custom',
'copyright': 'copyright-custom'
) {
+7 -1
View File
@@ -55,7 +55,7 @@ $-seen-urls: ();
// 3) The values in the $colors map are also printed by Bootstrap. However,
// we have color variables which can contain a reference to a color
// combination and that is the info we want in that case.
@each $key in ('menu', 'header-sales_one', 'header-sales_two', 'footer', 'copyright') {
@each $key in ('menu', 'header-sales_one', 'header-sales_two', 'header-sales_three', 'footer', 'copyright') {
$-value: map-get($o-color-palette, $key);
@if type-of($-value) == 'number' {
@include print-variable($key, $-value);
@@ -1221,6 +1221,12 @@ header {
@include o-apply-colors('header-sales_two-custom');
@include o-add-gradient('menu-secondary-gradient');
}
} @else if o-website-value('header-template') == 'sales_three' {
#wrapwrap .o_header_sales_three_top {
@include o-apply-colors('header-sales_three');
@include o-apply-colors('header-sales_three-custom');
@include o-add-gradient('menu-secondary-gradient');
}
}
.o_grid_header_3_cols {
+12 -5
View File
@@ -776,16 +776,16 @@
data-customize-website-views="website.template_header_sales_two"
data-customize-website-variable="'sales_two'"
data-img="/website/static/src/img/snippets_options/header_template_sales_two.svg"/>
<we-button title="Menu - Sales 3"
data-name="header_sales_three_opt"
data-customize-website-views="website.template_header_sales_three"
data-customize-website-variable="'sales_three'"
data-img="/website/static/src/img/snippets_options/header_template_sales_three.svg"/>
<we-button title="Sidebar"
data-name="header_sidebar_opt"
data-customize-website-views="website.template_header_sidebar, website.no_autohide_menu"
data-customize-website-variable="'sidebar'"
data-img="/website/static/src/img/snippets_options/header_template_sidebar.svg"/>
<we-button title="Contact"
data-name="header_contact_opt"
data-customize-website-views="website.template_header_contact"
data-customize-website-variable="'Contact'"
data-img="/website/static/src/img/snippets_options/header_template_contact.svg"/>
<we-button title="Image"
data-name="header_image_opt"
data-customize-website-views="website.template_header_image"
@@ -833,6 +833,13 @@
data-null-value="'NULL'"
data-with-combinations="customizeWebsiteColor"
data-with-gradients="true"/>
<we-colorpicker data-dependencies="header_sales_three_opt"
data-customize-website-color="" data-color="header-sales_three"
data-customize-website-layer2-color="" data-layer-color="header-sales_three-custom" data-layer-gradient="menu-secondary-gradient"
data-no-bundle-reload="true"
data-null-value="'NULL'"
data-with-combinations="customizeWebsiteColor"
data-with-gradients="true"/>
</we-row>
</div>
+83 -97
View File
@@ -1071,6 +1071,89 @@
</xpath>
</template>
<!-- "Sales three" template -->
<template id="template_header_sales_three" inherit_id="website.layout" name="Template Header Sale 3" active="False">
<xpath expr="//header//nav" position="replace">
<t t-call="website.navbar">
<t t-set="_navbar_classes" t-valuef="d-none d-lg-block p-0 shadow-sm"/>
<div id="top_menu_container">
<div aria-label="Top" t-if="is_view_active('website.header_text_element') or is_view_active('website.header_social_links') or is_view_active('website.header_search_box') or is_view_active('website.header_call_to_action')" class="o_header_sales_three_top position-relative border-bottom z-index-1 o_border_contrast">
<div class="container d-flex justify-content-between gap-3 h-100">
<ul class="navbar-nav align-items-center gap-3 py-1">
<!-- Social -->
<t t-call="website.header_social_links_no_color"/>
<!-- Text element -->
<t t-call="website.placeholder_header_text_element">
<t t-set="_txt_elt_content" t-valuef="list"/>
<t t-set="_div_class" t-valuef="mx-auto"/>
<t t-set="_item_class" t-valuef="flex-basis-0 flex-grow-1 flex-shrink-0"/>
</t>
</ul>
<ul class="navbar-nav">
<!-- Search bar -->
<t t-call="website.placeholder_header_search_box">
<t t-set="_input_classes" t-valuef="border-0 border-start rounded-0"/>
<t t-set="_submit_classes" t-valuef="rounded-0 bg-o-color-4"/>
<t t-set="_form_classes" t-valuef="h-100 z-index-0"/>
<t t-set="_classes" t-valuef="h-100"/>
</t>
<!-- Call To Action -->
<t t-call="website.header_call_to_action_stretched">
<t t-set="_div_class" t-valuef="d-flex h-100"/>
</t>
</ul>
</div>
</div>
<div aria-label="Bottom" class="container d-flex align-items-center py-2">
<!-- Brand -->
<t t-call="website.placeholder_header_brand">
<t t-set="_link_class" t-valuef="me-4"/>
</t>
<div class="ms-auto">
<ul class="navbar-nav justify-content-end align-items-center gap-2 w-100 o_header_separator">
<!-- Language Selector -->
<t t-call="website.placeholder_header_language_selector">
<t t-set="_btn_class" t-valuef="nav-link btn-sm d-flex align-items-center fw-bold text-uppercase o_nav-link_secondary"/>
<t t-set="_txt_class" t-valuef="ms-1"/>
<t t-set="_dropdown_menu_class" t-valuef="dropdown-menu-end"/>
<t t-set="_item_class" t-valuef="position-relative"/>
</t>
<!-- Sign In -->
<t t-call="portal.placeholder_user_sign_in">
<t t-set="_item_class" t-valuef="position-relative"/>
<t t-set="_link_class" t-valuef="nav-link btn-sm fw-bold text-uppercase o_nav-link_secondary"/>
</t>
<!-- User Dropdown -->
<t t-call="portal.user_dropdown">
<t t-set="_user_name" t-value="true"/>
<t t-set="_item_class" t-valuef="dropdown"/>
<t t-set="_link_class" t-valuef="nav-link btn-sm d-flex align-items-center fw-bold text-uppercase o_nav-link_secondary"/>
<t t-set="_dropdown_menu_class" t-valuef="dropdown-menu-end"/>
</t>
</ul>
<!-- Navbar -->
<t t-call="website.navbar_nav">
<t t-set="_nav_class" t-valuef="justify-content-end"/>
<!-- Menu -->
<t t-foreach="website.menu_id.child_id" t-as="submenu">
<t t-call="website.submenu">
<t t-set="item_class" t-valuef="nav-item"/>
<t t-set="link_class" t-valuef="nav-link"/>
</t>
</t>
</t>
</div>
</div>
</div>
</t>
<t t-call="website.template_header_mobile">
<t t-set="_txt_elt_content" t-valuef="list"/>
</t>
</xpath>
</template>
<template id="template_header_sidebar" inherit_id="website.layout" name="Template Header Sidebar" active="False">
<xpath expr="//header" position="attributes">
<attribute name="t-attf-class" add="o_header_sidebar" separator=" "/>
@@ -1182,103 +1265,6 @@
</xpath>
</template>
<template id="template_header_contact" inherit_id="website.layout" name="Template Header Contact" active="False">
<xpath expr="//header//nav" position="replace">
<div class="oe_structure oe_structure_solo" id="oe_structure_header_contact_1"/>
<t t-call="website.navbar">
<t t-set="_navbar_classes" t-valuef="shadow-sm"/>
<div id="top_menu_container" class="container">
<!-- Brand -->
<t t-call="website.placeholder_header_brand"/>
<!-- Navbar Toggler -->
<t t-call="website.navbar_toggler"/>
<!-- Call To Action -->
<t t-call="website.placeholder_header_call_to_action">
<t t-set="_div_classes" t-valuef="d-block d-lg-none"/>
</t>
<!-- Navbar Collapse -->
<div id="top_menu_collapse" class="collapse navbar-collapse ms-lg-3">
<t t-call="website.navbar_nav">
<t t-set="_nav_class" t-valuef="flex-grow-1"/>
<!-- Menu -->
<t t-foreach="website.menu_id.child_id" t-as="submenu">
<t t-call="website.submenu">
<t t-set="item_class" t-valuef="nav-item"/>
<t t-set="link_class" t-valuef="nav-link"/>
</t>
</t>
<!-- Sign In -->
<t t-call="portal.placeholder_user_sign_in">
<t t-set="_item_class" t-valuef="nav-item ms-lg-auto"/>
<t t-set="_link_class" t-valuef="nav-link"/>
</t>
<!-- User Dropdown -->
<t t-call="portal.user_dropdown">
<t t-set="_user_name" t-value="True"/>
<t t-set="_user_name_class" t-valuef="fw-bold"/>
<t t-set="_item_class" t-valuef="nav-item dropdown ms-lg-auto"/>
<t t-set="_link_class" t-valuef="nav-link"/>
</t>
<!-- Language Selector -->
<t t-call="website.placeholder_header_language_selector">
<t t-set="_div_classes" t-valuef="nav-item my-auto ms-lg-2 align-self-lg-center"/>
</t>
</t>
<!-- Call To Action -->
<t t-call="website.placeholder_header_call_to_action">
<t t-set="_div_classes" t-valuef="d-none d-lg-block ms-3"/>
</t>
</div>
</div>
</t>
</xpath>
</template>
<template id="template_header_contact_oe_structure_header_contact_1" inherit_id="website.template_header_contact" name="Template Header Contact (oe_structure_header_contact_1)">
<xpath expr="//*[hasclass('oe_structure')][@id='oe_structure_header_contact_1']" position="replace">
<div class="oe_structure oe_structure_solo" id="oe_structure_header_contact_1">
<section class="s_text_block pt8 pb8 o_cc o_cc2" data-snippet="s_text_block" data-name="Text">
<div class="container">
<div class="row align-items-center">
<div class="col-lg-8">
<small>
<i class="fa fa-1x fa-fw fa-phone me-2"/><span class="me-3"><a href="tel:+1(650)555-0111">+1 (650) 555-0111</a></span>
<i class="fa fa-1x fa-fw fa-envelope me-2 d-inline"/><span><a href="mailto:info@yourcompany.example.com">info@yourcompany.example.com</a></span>
</small>
</div>
<div class="col-lg-4 text-lg-end">
<div class="s_social_media no_icon_color o_not_editable" data-snippet="s_social_media" data-name="Social Media" contenteditable="false">
<small class="s_social_media_title text-muted d-none" contenteditable="true"><b>Follow us</b></small>
<a href="/website/social/facebook" class="s_social_media_facebook" target="_blank">
<i class="fa fa-facebook m-1 o_editable_media"/>
</a>
<a href="/website/social/twitter" class="s_social_media_twitter" target="_blank">
<i class="fa fa-twitter m-1 o_editable_media"/>
</a>
<a href="/website/social/linkedin" class="s_social_media_linkedin" target="_blank">
<i class="fa fa-linkedin m-1 o_editable_media"/>
</a>
<a href="/website/social/github" class="s_social_media_github" target="_blank">
<i class="fa fa-github m-1 o_editable_media"/>
</a>
<a href="/website/social/youtube" class="s_social_media_youtube" target="_blank">
<i class="fa fa-youtube m-1 o_editable_media"/>
</a>
<a href="/website/social/instagram" class="s_social_media_instagram" target="_blank">
<i class="fa fa-instagram m-1 o_editable_media"/>
</a>
<a href="/website/social/tiktok" class="s_social_media_tiktok" target="_blank">
<i class="fa fa-tiktok m-1 o_editable_media"/>
</a>
</div>
</div>
</div>
</div>
</section>
</div>
</xpath>
</template>
<!-- "Rounded box" template -->
<template id="template_header_boxed" inherit_id="website.layout" name="Template Header Rounded Box" active="False">
<xpath expr="//header//nav" position="replace">
+12 -10
View File
@@ -116,6 +116,18 @@
</xpath>
</template>
<template id="template_header_sales_three" inherit_id="website.template_header_sales_three">
<xpath expr="//t[@t-call='website.placeholder_header_language_selector']" position="before">
<t t-call="website_sale.header_cart_link">
<t t-set="_text" t-value="True"/>
<t t-set="_item_class" t-value="'position-relative'"/>
<t t-set="_link_class" t-value="'nav-link btn btn-sm d-flex flex-row-reverse align-items-center text-uppercase fw-bold'"/>
<t t-set="_icon_wrap_class" t-value="'d-contains'"/>
<t t-set="_badge_class" t-value="'top-0 d-block ms-2'"/>
</t>
</xpath>
</template>
<template id="template_header_sidebar" inherit_id="website.template_header_sidebar">
<xpath expr="//t[@t-foreach='website.menu_id.child_id']" position="after">
<t t-call="website_sale.header_cart_link">
@@ -127,16 +139,6 @@
</xpath>
</template>
<template id="template_header_contact" inherit_id="website.template_header_contact">
<xpath expr="//t[@t-foreach='website.menu_id.child_id']" position="after">
<t t-call="website_sale.header_cart_link">
<t t-set="_text" t-value="True"/>
<t t-set="_item_class" t-value="'nav-item ms-lg-3'"/>
<t t-set="_link_class" t-value="'nav-link'"/>
</t>
</xpath>
</template>
<template id="template_header_boxed" inherit_id="website.template_header_boxed">
<xpath expr="//t[@t-call='website.placeholder_header_search_box']" position="before">
<t t-call="website_sale.header_cart_link">
@@ -140,6 +140,18 @@
</xpath>
</template>
<template id="template_header_sales_three" inherit_id="website_sale.template_header_sales_three">
<xpath expr="//t[@t-call='website_sale.header_cart_link']" position="after">
<t t-call="website_sale_wishlist.header_wishlist_link">
<t t-set="_text" t-value="True"/>
<t t-set="_item_class" t-value="'position-relative'"/>
<t t-set="_link_class" t-value="'nav-link btn btn-sm d-flex flex-row-reverse align-items-center text-uppercase fw-bold'"/>
<t t-set="_icon_wrap_class" t-value="'d-contains'"/>
<t t-set="_badge_class" t-value="'top-0 d-block ms-2'"/>
</t>
</xpath>
</template>
<template id="template_header_sidebar" inherit_id="website_sale.template_header_sidebar">
<xpath expr="//t[@t-call='website_sale.header_cart_link']" position="after">
<t t-call="website_sale_wishlist.header_wishlist_link">
@@ -151,16 +163,6 @@
</xpath>
</template>
<template id="template_header_contact" inherit_id="website_sale.template_header_contact">
<xpath expr="//t[@t-call='website_sale.header_cart_link']" position="after">
<t t-call="website_sale_wishlist.header_wishlist_link">
<t t-set="_icon" t-value="True"/>
<t t-set="_item_class" t-value="'nav-item ms-lg-3'"/>
<t t-set="_link_class" t-value="'nav-link'"/>
</t>
</xpath>
</template>
<template id="template_header_boxed" inherit_id="website_sale.template_header_boxed">
<xpath expr="//t[@t-call='website_sale.header_cart_link']" position="after">
<t t-call="website_sale_wishlist.header_wishlist_link">