Skip to content
Open
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
2 changes: 1 addition & 1 deletion gall.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Gallery Guide
type: theme
description: Gallery Guide theme
package: Other
core_version_requirement: ^8.8 || ^9
core_version_requirement: ^9 || ^10
libraries:
- gall/global

Expand Down
3 changes: 2 additions & 1 deletion gall.theme
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ function gall_page_attachments_alter(array &$page) {
* Implements hook_preprocess_page() for PAGE document templates.
*/
function gall_preprocess_page(&$variables) {
$svg = file_get_contents(drupal_get_path('theme', 'gall') . '/images/icons.svg');
$theme_path = \Drupal::service('extension.list.theme')->getPath('gall');
$svg = file_get_contents($theme_path . '/images/icons.svg');
$variables['svg_icons'] = $svg;
}

Expand Down
5 changes: 3 additions & 2 deletions templates/nodes/node--exhibition--full.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
</div>

<div class="exhibition__body">
{{ content.field_rating }}
{{ content.rate_fivestar }}
{{ content.body }}
</div>

Expand All @@ -119,5 +119,6 @@
<a href="/user/login?destination=node/{{ node.id }}">{{ 'Log in or register to edit this exhibition' }}</a>
{% endif %}
</div>
{{ content|without('rate_fivestar','body','field_exhib_gallery','field_images','artists','tags', 'field_admission_std', 'field_admission_conc', 'field_exhib_website', 'field_date_from', 'field_date_to') }}

</article>
</article>
4 changes: 3 additions & 1 deletion templates/nodes/node--gallery--full.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
{{ content.body }}

<div class="gallery__map">
{{ content.field_rating }}
{{ content.rate_fivestar }}
{{ content.field_location }}
</div>
</div>
Expand All @@ -126,4 +126,6 @@
{% endif %}
</div>
</div>

{{ content|without('rate_fivestar','body','field_exhib_gallery','field_images','artists','tags', 'field_admission_std', 'field_admission_conc', 'field_exhib_website', 'field_date_from', 'field_date_to') }}
</article>
5 changes: 4 additions & 1 deletion templates/terms/taxonomy-term--artists.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,17 @@
{{ content.field_image }}

<div class="artist__bio">
{{ content.rate_fivestar }}
{{ content.description }}

{{ content.field_born }}
{{ content.field_died }}

{{ content.field_website }}

{{ content.field_tags }}
</div>
</div>

{{ content }}
</div>