-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
31 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...contrib/navigation/templates/djangocms_frontend/bootstrap5/navigation/offcanvas/menu.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +0,0 @@ | ||
{% load cms_tags frontend %}{% spaceless %} | ||
<button class="navbar-toggler" type="button" data-bs-toggle="offcanvas" data-bs-target="#nav{{ instance.id|safe }}" aria-controls="nav{{ instance.id|safe }}" aria-expanded="false" aria-label="Toggle navigation"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
<div class="offcanvas offcanvas-end" id="nav{{ instance.id|safe }}"> | ||
<div class="offcanvas-header"> | ||
<button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button> | ||
</div> | ||
<div class="offcanvas-body"> | ||
<ul class="navbar-nav justify-content-end flex-grow-1 pe-3"> | ||
{% for plugin in instance.child_plugin_instances %} | ||
{% with forloop=parentloop parent=instance %}{% render_plugin plugin %}{% endwith %} | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
</div> | ||
{% endspaceless %} | ||
32 changes: 22 additions & 10 deletions
32
...b/navigation/templates/djangocms_frontend/bootstrap5/navigation/offcanvas/navigation.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,28 @@ | ||
{% load cms_tags frontend %}{% spaceless %} | ||
<nav{{ instance.get_attributes }}> | ||
{% if instance.navbar_container %}<div class="container">{% endif %} | ||
{% for plugin in instance.child_plugin_instances %} | ||
{% if plugin.plugin_type == "BrandPlugin" %} | ||
{% render_plugin plugin %} | ||
{% endif %} | ||
{% endfor %} | ||
{% for plugin in instance.child_plugin_instances %} | ||
{% if plugin.plugin_type != "BrandPlugin" %} | ||
{% with forloop=parentloop parent=instance %}{% render_plugin plugin %}{% endwith %} | ||
{% endif %} | ||
{% endfor %} | ||
{% for plugin in instance.child_plugin_instances %} | ||
{% if plugin.plugin_type == "NavBrandPlugin" %} | ||
{% render_plugin plugin %} | ||
{% endif %} | ||
{% endfor %} | ||
<button class="btn" type="button" data-bs-toggle="offcanvas" data-bs-target="#nav{{ instance.id|safe }}" aria-controls="nav{{ instance.id|safe }}" aria-expanded="false" aria-label="Toggle navigation"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
{% if instance.navbar_container %}</div>{% endif %} | ||
</nav> | ||
<div class="offcanvas offcanvas-end" id="nav{{ instance.id|safe }}"> | ||
<div class="offcanvas-header mt-5"> | ||
<button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button> | ||
</div> | ||
<div class="offcanvas-body"> | ||
<ul class="navbar-nav justify-content-end flex-grow-1 pe-3"> | ||
{% for plugin in instance.child_plugin_instances %} | ||
{% if plugin.plugin_type != "NavBrandPlugin" %} | ||
{% with forloop=parentloop parent=instance %}{% render_plugin plugin %}{% endwith %} | ||
{% endif %} | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
</div> | ||
{% endspaceless %} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters