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.
 
 
 
 
 

102 lines
5.9 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="oe_structure"/>
<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="logo"/>
<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>
<div class="button-container">
<a href="/contact-us" class="custom-button">
<span>Get in touch</span>
<svg class="arrow-icon" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" d="M13 5l7 7m0 0l-7 7m7-7H4" />
</svg>
</a>
</div>
</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)" id="dropdown"/>
<img t-att-src="avatar_source" t-attf-class="rounded-circle o_object_fit_cover #{_avatar_class}"
width="24" height="24" alt="image" 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>