site-map-box.html.twig in Site map 8
Theme implementation to display a site map box.
Available variables:
- title: The subject of the box.
- content: The content of the box.
- attributes: Optional attributes for the box.
- options: Options are set by site_map.helper service.
8 theme calls to site-map-box.html.twig
- SiteMapHelper::getTaxonomyTree in src/
SiteMapHelper.php - Render the taxonomy tree.
- _site_map_audio in ./
site_map.module - Render the latest maps for audio.
- _site_map_blogs in ./
site_map.module - Render the latest blogs.
- _site_map_books in ./
site_map.module - Render the latest maps for books.
- _site_map_faq in ./
site_map.module - Render the latest maps for faq.
File
templates/site-map-box.html.twigView source
- {#
- /**
- * @file
- * Theme implementation to display a site map box.
- *
- * Available variables:
- * - title: The subject of the box.
- * - content: The content of the box.
- * - attributes: Optional attributes for the box.
- * - options: Options are set by site_map.helper service.
- *
- * @see template_preprocess()
- * @see template_preprocess_site_map_box()
- */
- #}
- <div{{ attributes.addClass('site-map-box') }}>
- {% if options.show_titles %}
- <h2>{{ title }}</h2>
- {% endif %}
- <div class="content">
- {{ content }}
- </div>
- </div>