<?xml version="1.0"?>
<data name="Main Frontend Layout" inherit_id="web.frontend_layout">
        <xpath expr="//html" position="attributes">
            <attribute name="t-att-dir" add="request.env['res.lang']._get_data(code=request.env.lang).direction" separator=" "/>
        </xpath>
        <xpath expr="//div[@id='wrapwrap']" position="attributes">
            <attribute name="t-attf-class" add="#{request.env['res.lang']._get_data(code=request.env.lang).direction == 'rtl' and 'o_rtl' or ''}" separator=" "/>
            <attribute name="t-attf-class" add="#{'o_portal' if is_portal else ''}" separator=" "/>
        </xpath>
        <xpath expr="//div[@id='wrapwrap']/header" position="before">
            <a class="o_skip_to_content btn btn-primary rounded-0 visually-hidden-focusable position-absolute start-0" href="#wrap" groups="!base.group_user">Skip to Content</a>
        </xpath>
        <xpath expr="//div[@id='wrapwrap']/header/img" position="replace">
            <t t-cache="res_company">
                <nav class="navbar navbar-expand navbar-light bg-light">
                    <div class="container">
                        <a href="/" class="navbar-brand logo">
                            <img t-att-src="'/logo.png?company=%s' % res_company.id" t-att-alt="'Logo of %s' % res_company.name" t-att-title="res_company.name"/>
                        </a>
                        <ul id="top_menu" class="nav navbar-nav ms-auto">
                            <t t-call="portal.placeholder_user_sign_in">
                                <t t-set="_item_class" t-value="'nav-item'"/>
                                <t t-set="_link_class" t-value="'nav-link'"/>
                            </t>
                            <t t-call="portal.user_dropdown">
                                <t t-set="_user_name" t-value="true"/>
                                <t t-set="_item_class" t-value="'nav-item dropdown'"/>
                                <t t-set="_link_class" t-value="'nav-link'"/>
                                <t t-set="_dropdown_menu_class" t-value="'dropdown-menu-end'"/>
                            </t>
                        </ul>
                    </div>
                </nav>
            </t>
        </xpath>
        <xpath expr="//div[@id='wrapwrap']/main/t[@t-out='0']" position="before">
            <div t-if="o_portal_fullwidth_alert" class="container mt-3">
                <div class="alert alert-info alert-dismissible fade show d-print-none css_editable_mode_hidden">
                    <t t-out="o_portal_fullwidth_alert"/>
                </div>
            </div>
        </xpath>
        <xpath expr="//head/meta" position="after">
            <t t-if="preview_object">
                <!-- Remove seo_object to not define og and twitter tags twice when wesbite is installed -->
                <t t-set="seo_object" t-value="False"/>
                <t t-set="company" t-value="preview_object.company_id or request.env.company"/>
                <t t-set="not_uses_default_logo" t-value="company and not company.uses_default_logo"/>
                <meta property="og:title" t-att-content="preview_object.name"/>
                <meta property="og:description" t-att-content="preview_object.description.striptags() if preview_object.description else ''"/>
                <meta property="og:site_name" t-att-content="company.name if company else ''"/>
                <t t-if="not_uses_default_logo">
                    <meta property="og:image" t-attf-content="/web/binary/company_logo?company={{ company.id }}"/>
                </t>
                <meta property="og:image:width" content="300"/>
                <meta property="og:image:height" content="200"/>
                <meta name="twitter:card" content="summary_large_image"/>
                <meta property="twitter:title" t-att-content="preview_object.name"/>
                <meta property="twitter:description" t-att-content="preview_object.description.striptags() if preview_object.description else ''"/>
                <t t-if="not_uses_default_logo">
                    <meta property="twitter:image" t-attf-content="/web/binary/company_logo?company={{ company.id }}"/>
                </t>
            </t>
        </xpath>
    </data>

    