-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the figure builder component inside the controller classes to gen…
…erate the pictures.
- Loading branch information
1 parent
e6e7fa6
commit b7cb735
Showing
16 changed files
with
278 additions
and
239 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
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
contao/templates/component/_album.html.twig → ...templates/_new/component/_album.html.twig
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
52 changes: 52 additions & 0 deletions
52
contao/templates/_new/content_element/gallery_creator.html.twig
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,52 @@ | ||
{# content_element/gallery_creator.html.twig #} | ||
|
||
{% extends "@Contao/content_element/_base.html.twig" %} | ||
{% use '@Contao_MarkocupicGalleryCreatorBundle/component/_album_list_view.html.twig' %} | ||
{% use '@Contao_MarkocupicGalleryCreatorBundle/component/_album_detail_view.html.twig' %} | ||
{% use "@Contao_MarkocupicGalleryCreatorBundle/component/_album.html.twig" %} | ||
{% use "@Contao/component/_figure.html.twig" %} | ||
|
||
{% block content %} | ||
|
||
{% if hasBreadcrumb and showAlbumDetail %} | ||
<nav class="gc-breadcrumb-nav"> | ||
{{ breadcrumb|raw }} | ||
</nav> | ||
{% endif %} | ||
|
||
{% if showAlbumDetail %} | ||
{% block album_detail_view %} | ||
{# Do your template modification (e.g. add css classes, replace tag names, etc.) below here: #} | ||
|
||
{{ parent() }} | ||
{% endblock %} | ||
{% endif %} | ||
|
||
{% if showAlbumListing %} | ||
{% block album_list_view %} | ||
{# Do your template modification (e.g. add css classes, replace tag names, etc.) below here: #} | ||
|
||
{{ parent() }} | ||
{% endblock %} | ||
{% endif %} | ||
|
||
{% endblock %} | ||
|
||
{% block list_item %} | ||
{% if showAlbumDetail and item.figure.build|default %} | ||
{% with {figure: item.figure.build} %}{{ block('figure_component') }}{% endwith %} | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block list %} | ||
{% if showAlbumDetail %} | ||
{% set list = list|merge({'list_attributes': attrs(list.list_attributes|default) | ||
.removeClass("content-#{type}") | ||
.addClass('gc-album-detail-picture-list')}) %} | ||
|
||
{% set list = list|merge({'item_attributes': attrs(list.item_attributes|default) | ||
.addClass('gc-album-detail-picture-list-item')}) %} | ||
{% endif %} | ||
|
||
{{ parent() }} | ||
{% endblock %} |
34 changes: 34 additions & 0 deletions
34
contao/templates/_new/content_element/gallery_creator_news.html.twig
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,34 @@ | ||
{# content_elemnt/gallery_creator_news.html.twig #} | ||
|
||
{% extends '@Contao/block_searchable' %} | ||
{% use '@Contao_MarkocupicGalleryCreatorBundle/component/_album_detail_view.html.twig' %} | ||
{% use "@Contao/component/_figure.html.twig" %} | ||
|
||
{% block content %} | ||
|
||
{% block album_detail_view %} | ||
{# Do your template modification (e.g. add css classes, replace tag names, etc.) below here: #} | ||
|
||
{{ parent() }} | ||
{% endblock %} | ||
|
||
{% endblock %} | ||
|
||
{% block list_item %} | ||
{% if showAlbumDetail %} | ||
{% with {figure: item.figure} %}{{ block('figure_component') }}{% endwith %} | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block list %} | ||
{% if showAlbumDetail %} | ||
{% set list = list|merge({'list_attributes': attrs(list.list_attributes|default) | ||
.removeClass("content-#{type}") | ||
.addClass('gc-album-detail-picture-list')}) %} | ||
|
||
{% set list = list|merge({'item_attributes': attrs(list.item_attributes|default) | ||
.addClass('gc-album-detail-picture-list-item')}) %} | ||
{% endif %} | ||
|
||
{{ parent() }} | ||
{% endblock %} |
36 changes: 0 additions & 36 deletions
36
contao/templates/content_element/gallery_creator.html.twig
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
contao/templates/content_element/gallery_creator_news.html.twig
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.