You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
116 lines
6.1 KiB
116 lines
6.1 KiB
<?xml version="1.0" encoding="utf-8" ?>
|
|
<odoo>
|
|
<!-- Inheriting The website header area and adding some features styles-->
|
|
<template id="perfume_header_cart_link"
|
|
inherit_id="website_sale.header_cart_link"
|
|
name="Perfume Cart link">
|
|
<xpath expr="//i[@class='fa fa-shopping-cart']" position="replace">
|
|
<span t-if="_icon" class="flaticon-shopping-cart"
|
|
style="padding:0px;"/>
|
|
</xpath>
|
|
</template>
|
|
<template id="perfume_header_user_dropdown"
|
|
inherit_id="portal.user_dropdown"
|
|
name="Perfume Sign in">
|
|
<xpath expr="//i[@t-attf-class='fa fa-1x fa-fw fa-user-circle-o #{_icon_class}']"
|
|
position="replace">
|
|
<span t-if="_icon" class="flaticon-user"
|
|
style="padding:0px;"/>
|
|
</xpath>
|
|
</template>
|
|
<template id="perfume_wishlist"
|
|
inherit_id="website_sale_wishlist.header_wishlist_link"
|
|
name="Perfume Wishlist">
|
|
<xpath expr="//i[@class='fa fa-1x fa-heart']"
|
|
position="replace">
|
|
<span t-if="_icon" class="flaticon-heart"
|
|
style="padding:0px;"/>
|
|
</xpath>
|
|
</template>
|
|
<template id="perfume_header"
|
|
inherit_id="website.template_header_default">
|
|
<xpath expr="//t[@t-call='website.navbar']" position="replace">
|
|
<t t-call="website.navbar">
|
|
<div class="header-area">
|
|
<div class="main-header header-sticky">
|
|
<div class="container-fluid">
|
|
<div class="menu-wrapper">
|
|
<!-- Logo -->
|
|
<div class="logo">
|
|
<t t-call="website.placeholder_header_brand">
|
|
<t t-set="_link_class"
|
|
t-value="'mr-4'"/>
|
|
</t>
|
|
</div>
|
|
<!-- Main-menu -->
|
|
<div class="main-menu d-none d-lg-block">
|
|
<nav>
|
|
<ul id="navigation">
|
|
<t t-foreach="website.menu_id.child_id"
|
|
t-as="submenu">
|
|
<t t-call="website.submenu">
|
|
<t t-set="item_class"
|
|
t-value="'nav-item'"/>
|
|
<t t-set="link_class"
|
|
t-value="'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 fw-bold"/>
|
|
</t>
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
<!-- Header Right -->
|
|
<!-- Sign In -->
|
|
<div class="header-right">
|
|
<ul>
|
|
<li>
|
|
<!-- User Dropdown -->
|
|
<t t-call="portal.user_dropdown">
|
|
<t t-set="_icon"
|
|
t-value="True"/>
|
|
<t t-set="_item_class"
|
|
t-value="'nav-item dropdown ml-lg-auto'"/>
|
|
<t t-set="_link_class"
|
|
t-value="'nav-link'"/>
|
|
</t>
|
|
</li>
|
|
<li>
|
|
<t t-call="website_sale.header_cart_link">
|
|
<t t-set="_icon"
|
|
t-value="True"/>
|
|
<t t-set="_item_class"
|
|
t-value="'nav-item ml-lg-3'"/>
|
|
<t t-set="_link_class"
|
|
t-value="'nav-link'"/>
|
|
</t>
|
|
</li>
|
|
<li>
|
|
<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 mr-lg-3'"/>
|
|
<t t-set="_link_class"
|
|
t-value="'nav-link'"/>
|
|
</t>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<!-- Mobile Menu -->
|
|
<div class="col-12">
|
|
<div class="mobile_menu d-block d-lg-none"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</xpath>
|
|
</template>
|
|
</odoo>
|