-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
💄(plugins) added 'large-banner' plugin variant 'compacted-banner'
It was required to have a compacted block available for page contents and that allowed to insert a title with the search bar and some buttons. We just implemented this compacted block with existing a new template variant (and related CSS) for this plugin.
- Loading branch information
Showing
6 changed files
with
201 additions
and
0 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
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
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
19 changes: 19 additions & 0 deletions
19
src/richie/plugins/large_banner/templates/richie/large_banner/compacted.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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{% load static i18n cms_tags rfc_5646_locale %} | ||
<div class="compacted-banner"> | ||
<div class="compacted-banner__inner"> | ||
<div class="compacted-banner__body"> | ||
<div class="compacted-banner__content"> | ||
{{ instance.content|safe }} | ||
</div> | ||
|
||
<div class="compacted-banner__search"> | ||
<div class="richie-react richie-react--root-search-suggest-field" | ||
data-props='{"courseSearchPageUrl": "{% page_url 'courses' %}"}'></div> | ||
|
||
<a class="compacted-banner__cta" href="{% page_url 'courses' %}"> | ||
{% trans "Explore our catalog" %} | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |