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.
 
 
 
 
 

108 lines
6.0 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Header Template-->
<template id="theme_upshift_header"
inherit_id="website.layout">
<xpath expr="//header" position="replace">
<header class="navigation" id="navigation1">
<div class="wrapper">
<div class="container">
<nav class="navbar navbar-expand-lg w-100">
<div class="container-fluid p-0">
<a class="navbar-brand" href="/home">
<img src="/theme_upshift/static/src/img/Logo/logo-1.png"
alt=""/>
<span class="span1" id="theme_name"
>Upshift
</span>
</a>
<button class="navbar-toggler"
type="button"
data-bs-toggle="offcanvas"
data-bs-target="#offcanvasDarkNavbar"
aria-controls="offcanvasDarkNavbar"
aria-label="Toggle navigation">
<img src="/theme_upshift/static/src/img/icons/white.svg"/>
</button>
<div class="offcanvas offcanvas-end"
tabindex="-1"
id="offcanvasDarkNavbar"
aria-labelledby="offcanvasDarkNavbarLabel">
<div class="offcanvas-header">
<button type="button"
class="btn-close btn-close-white"
data-bs-dismiss="offcanvas"
aria-label="Close"/>
</div>
<div class="offcanvas-body justify-content-between">
<ul class="navbar-nav">
<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>
</ul>
<ul class="navbar-nav">
<!-- Sign In -->
<t t-call="portal.placeholder_user_sign_in">
<t t-set="_link_class"
t-valuef="btn btn-outline-secondary w-100 nav-link"/>
</t>
<!-- User Dropdown -->
<t t-call="portal.user_dropdown">
<t t-set="_user_name"
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>
</ul>
</div>
</div>
<a href="/contact-us"
class="btn btn-primary d-none d-lg-block">
Get in touch
<span>
<img
src="/theme_upshift/static/src/img/icons/arrow.svg"
class="ml-1"
width="25px"
alt=""
/>
</span>
</a>
</div>
</nav>
</div>
</div>
</header>
</xpath>
</template>
<template id="upshift_header_user_dropdown"
inherit_id="portal.user_dropdown"
name="Upshift Sign in">
<xpath expr="//a"
position="replace">
<a href="#" role="button" data-bs-toggle="dropdown"
t-attf-class="#{'' if _no_caret else 'dropdown-toggle'} btn #{_link_class}" id="HeaderUser">
<t t-if="_avatar">
<t t-set="avatar_source" t-value="image_data_uri(user_id.avatar_256)"/>
<img t-att-src="avatar_source" t-attf-class="rounded-circle o_object_fit_cover #{_avatar_class}"
width="24" height="24" alt="" loading="eager"/>
</t>
<div t-if="_icon" t-attf-class="#{_icon_wrap_class}">
<i t-attf-class="fa fa-1x fa-fw fa-user #{_icon_class}"/>
</div>
<span t-if="_user_name" t-attf-class="#{_user_name_class}"
t-esc="user_id.name[:23] + '...' if user_id.name and len(user_id.name) &gt; 25 else user_id.name"/>
</a>
</xpath>
</template>
</odoo>