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.
 
 
 
 
 

75 lines
3.7 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Navbar-->
<template id="header_coffee_shop"
inherit_id="website.template_header_default"
name="Template Header Theme" active="True">
<xpath expr="//t[@t-call='website.navbar']" position="replace">
<t t-call="website.navbar">
<div id="top_menu_container"
class="container justify-content-start justify-content-lg-between">
<div class="logo">
<img src="/theme_coffee_shop/static/src/images/logo.png"
alt=""/>
</div>
<div id="top_menu_collapse"
class="collapse navbar-collapse order-last order-lg-0">
<t t-call="website.navbar_nav">
<t t-set="_nav_class" t-valuef="flex-grow"/>
<!-- 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>
<!-- Cart -->
<t t-call="website_sale.header_cart_link">
<t t-set="_icon" t-value="True"/>
<t t-set="_item_class" t-value="'mx-lg-3 '"/>
<t t-set="_link_class" t-value="'nav-link'"/>
</t>
<!-- Wishlist -->
<t t-call="website_sale_wishlist.header_wishlist_link">
<t t-set="_icon" t-value="True"/>
<t t-set="_item_class" t-value="'mx-lg-3'"/>
<t t-set="_link_class" t-value="'nav-link'"/>
</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>
<!-- User Dropdown -->
<t t-call="portal.user_dropdown">
<t t-set="_user_name" t-value="true"/>
<t t-set="_item_class"
t-valuef="dropdown ms-lg-auto "/>
<t t-set="_link_class"
t-valuef="nav-link fw-bold"/>
</t>
</t>
</div>
<!-- Navbar Toggler -->
<t t-call="website.navbar_toggler">
<t t-set="_toggler_class" t-valuef="ms-auto"/>
</t>
</div>
</t>
</xpath>
</template>
<!-- TEMPLATE FOR WISHLIST AND CART IN HEADER-->
<template id="coffee_header_wishlist_link"
name=" Coffee Header Wishlist Link"
inherit_id="website_sale_wishlist.template_header_default">
<xpath expr="//t[@t-call='website_sale.header_cart_link']"
position="replace">
</xpath>
<xpath expr="//t[@t-call='website_sale_wishlist.header_wishlist_link']"
position="replace">
</xpath>
</template>
</odoo>