panopoly-magic-preview.html.twig in Panopoly 8.2
Default theme implementation for Panopoly magic previews.
1 theme call to panopoly-magic-preview.html.twig
- LayoutBuilderChooseBlockController::getBlockLinks in modules/
panopoly/ panopoly_magic/ src/ Controller/ LayoutBuilderChooseBlockController.php - Overrides the parent to show a preview of the block, along with the link.
File
modules/panopoly/panopoly_magic/templates/panopoly-magic-preview.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation for Panopoly magic previews.
- *
- * @ingroup themeable
- */
- #}
- <div {{ attributes.addClass('panopoly-magic-preview-wrapper').addClass('clearfix') }}>
- <div class="panopoly-magic-preview-title-wrapper clearfix">
- {% if add_link %}
- <div class="panopoly-magic-preview-add-link">{{ add_link }}</div>
- {% endif %}
- <span class="panopoly-magic-preview-title-inner">{{ title }}</span>
- </div>
- <div class="panopoly-magic-preview-inner">
- {{ preview }}
- </div>
- </div>
-