mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-01 13:21:37 +02:00
* Remove icons folder * Create folders for badge, button, and dropdown components * Remove Bootstrap 5 from test * Rename `getBootstrap5Breakpoint` to `getBootstrapBreakpoint` * Cleanup and update BS 5 comments * Move components to the shared folder * Rename `tooltips-bs5` to `tooltip` * Remove `-bs5` suffix * Fix path * Delete BS3 version file * Rename `_form_marketing-bootstrap-5` to `_form_marketing` * Delete BS3 version file * Rename `_contact_general_modal-marketing-bootstrap-5` to `_contact_general_modal-marketing` * Delete BS3 version file * Rename `_contact_modal-marketing-bootstrap-5` to `_contact_modal-marketing` * Delete BS3 version file * Rename `thin-footer-bootstrap-5` to `thin-footer` * Delete BS3 version file * Rename `language-picker-bootstrap-5` to `language-picker` * Rename `fat-footer-react-bootstrap-5` to `fat-footer-react` * Delete BS3 version file * Rename `navbar-marketing-bootstrap-5` to `navbar-marketing` * Rename `navbar-marketing-react-bootstrap-5` to `navbar-marketing-react` * Delete BS3 version file * Rename `layout-website-redesign-cms-bootstrap-5` to `layout-website-redesign-cms` * Source format * Fix path GitOrigin-RevId: cf0f5db7c84cf545c69213dcc271d9ff17fe5db7
74 lines
2.5 KiB
Plaintext
74 lines
2.5 KiB
Plaintext
//- Avoids including Bootstrap's own JS to prevent conflicts with react-bootstrap,
|
|
//- since Bootstrap 5's JS and react-bootstrap should not be used together on the same page.
|
|
extends ./layout-base
|
|
|
|
include ./_mixins/formMessages
|
|
include ./_mixins/bootstrap_js
|
|
|
|
block entrypointVar
|
|
- entrypoint = 'marketing'
|
|
|
|
block isApplicationPageVar
|
|
- isApplicationPage = true
|
|
|
|
block append meta
|
|
- const canDisplayAdminMenu = hasAdminAccess()
|
|
- const canDisplayAdminRedirect = canRedirectToAdminDomain()
|
|
- const sessionUser = getSessionUser()
|
|
- const staffAccess = sessionUser?.staffAccess
|
|
- const canDisplaySplitTestMenu = hasFeature('saas') && (canDisplayAdminMenu || staffAccess?.splitTestMetrics || staffAccess?.splitTestManagement)
|
|
- const canDisplaySurveyMenu = hasFeature('saas') && canDisplayAdminMenu
|
|
- const canDisplayScriptLogMenu = hasFeature('saas') && hasAdminCapability('view-script-log') && canDisplayAdminMenu
|
|
- const enableUpgradeButton = projectDashboardReact && usersBestSubscription && (usersBestSubscription.type === 'free' || usersBestSubscription.type === 'standalone-ai-add-on')
|
|
- const showSignUpLink = hasFeature('registration-page')
|
|
|
|
meta(
|
|
name='ol-navbar'
|
|
data-type='json'
|
|
content={
|
|
customLogo: settings.nav.custom_logo,
|
|
title: nav.title,
|
|
canDisplayAdminMenu,
|
|
canDisplayAdminRedirect,
|
|
canDisplaySplitTestMenu,
|
|
canDisplaySurveyMenu,
|
|
canDisplayScriptLogMenu,
|
|
enableUpgradeButton,
|
|
suppressNavbarRight: !!suppressNavbarRight,
|
|
suppressNavContentLinks: !!suppressNavContentLinks,
|
|
showSubscriptionLink: nav.showSubscriptionLink,
|
|
showSignUpLink: showSignUpLink,
|
|
currentUrl: currentUrl,
|
|
sessionUser: sessionUser ? {email: sessionUser.email} : undefined,
|
|
adminUrl: settings.adminUrl,
|
|
items: cloneAndTranslateText(nav.header_extras),
|
|
}
|
|
)
|
|
meta(
|
|
name='ol-footer'
|
|
data-type='json'
|
|
content={
|
|
showThinFooter: showThinFooter,
|
|
showPoweredBy: !hasFeature('saas') && !settings.nav.hide_powered_by,
|
|
subdomainLang: settings.i18n.subdomainLang,
|
|
translatedLanguages: settings.translatedLanguages,
|
|
leftItems: cloneAndTranslateText(settings.nav.left_footer),
|
|
rightItems: settings.nav.right_footer,
|
|
}
|
|
)
|
|
|
|
block body
|
|
if typeof suppressNavbar === 'undefined'
|
|
include layout/navbar-marketing-react
|
|
|
|
block content
|
|
|
|
if typeof suppressFooter === 'undefined'
|
|
if showThinFooter
|
|
include layout/thin-footer
|
|
else
|
|
include layout/fat-footer-react
|
|
|
|
if typeof suppressPugCookieBanner === 'undefined'
|
|
include _cookie_banner
|