Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions assets/scss/_imports.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
@import 'base/images';
@import 'base/theme-transitions';
@import 'base/type';
@import 'base/no-sidebar';

// Components
@import 'components/alerts';
Expand Down
19 changes: 19 additions & 0 deletions assets/scss/base/_no-sidebar.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.main-wrapper-no-sidebar {
padding-left: 0;

#content-wrapper {
margin-top: 0;
}

.breadcrumb-mobile {
padding-left: $spacer;
}

.main-header {
padding-left: 0;

.navbar-brand {
width: auto;
}
}
}
81 changes: 81 additions & 0 deletions templates/base_no_sidebar.html.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{% block head %}
{% include '@SumoCodersFrameworkCore/head.html.twig' with {title: block('title') is defined ? block('title') : page_title} %}
{% endblock %}

<body class="body-base" data-theme-path="{{ asset('styles/style-dark.scss') }}">
{% block start_body %}
{% endblock %}
<div id="main-wrapper" class="main-wrapper main-wrapper-no-sidebar">
<div id="content-wrapper">
<div class="main-header d-flex flex-column flex-lg-row">
<a href="/" rel="home" class="navbar-brand d-block d-md-inline-flex justify-content-md-center">
{% block logo_image %}
<img class="img-responsive{% if theme() != 'theme-dark' %} d-none{% endif %}" data-navbar-logo-dark src="{{ asset('images/logo-application-dark.svg') }}" alt="{{ fallbacks.get('site_title') }}">
<img class="img-responsive{% if theme() == 'theme-dark' %} d-none{% endif %}" data-navbar-logo src="{{ asset('images/logo-application.svg') }}" alt="{{ fallbacks.get('site_title') }}">
{% endblock %}
</a>
<div class="d-md-none breadcrumb-mobile">
<nav aria-label="breadcrumb" class="my-2">
{{ block('breadcrumb', '@SumoCodersFrameworkCore/Breadcrumb/breadcrumb.html.twig') }}
</nav>
</div>
<div class="sub-nav d-flex">
<div class="header-title d-flex flex-row justify-content-between w-100 align-items-center">
{% block header_title %}
{% endblock %}
<div class="d-md-none">
{% if block('header_navigation') is defined and block('header_navigation') is not empty %}
<button type="button" class="navbar-toggler h-100 collapse-actions-toggle" data-bs-toggle="collapse" data-bs-target="#action-buttons-collapse" aria-expanded="false" aria-controls="action-buttons-collapse">
<i class="fas fa-ellipsis-v"></i>
</button>
{% endif %}
</div>
</div>
<div class="d-none d-md-block ms-auto">
{% include '@SumoCodersFrameworkCore/usermenu.html.twig' with {'mobile': false} %}
</div>
</div>
{% if block('header_navigation') is defined and block('header_navigation') is not empty %}
<div class="collapse collapse-actions" id="action-buttons-collapse">
<div class="action-buttons action-buttons-mobile">
{{ block('header_navigation') }}
</div>
</div>
{% endif %}
</div>

<section id="main" role="main">
<div class="header-subbar">
{{ include('@SumoCodersFrameworkCore/notifications.html.twig') }}
<div class="header-title-bar d-none d-md-flex justify-content-md-between align-items-md-center flex-column flex-md-row flex-wrap">
<nav aria-label="breadcrumb" class="my-2">
{{ block('breadcrumb', '@SumoCodersFrameworkCore/Breadcrumb/breadcrumb.html.twig') }}
</nav>
<div class="ms-md-auto">
{% if block('header_navigation') is defined and block('header_navigation') is not empty %}
<div class="d-flex gap-2 align-items-center">
{{ block('header_navigation') }}
</div>
{% endif %}
</div>
</div>
</div>
<div class="container-fluid">
<div class="main-content">
{% block main %}

{% endblock %}
</div>
</div>
</section>
</div>
<footer class="footer">
{% block footer %}
<a href="#main-wrapper" class="back-to-top d-none" data-controller="scroll-to-top" data-action="scroll@window->scroll-to-top#scroll"><i class="fas fa-chevron-up me-3"></i> {{ 'core.interface.backToTop'|trans|ucfirst }}</a>
{% endblock %}
</footer>
</div>

{{ include('@SumoCodersFrameworkCore/dialogs.html.twig') }}
</body>
</html>