You are here

opigno-module-activity-from.html.twig in Opigno module 3.x

Default theme implementation to display a region.

Available variables:

  • content: The content for this region, typically blocks.
  • attributes: HTML attributes for the region <div>.
  • region: The name of the region variable as defined in the theme's .info.yml file.

File

templates/opigno-module-activity-from.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to display a region.
  5. *
  6. * Available variables:
  7. * - content: The content for this region, typically blocks.
  8. * - attributes: HTML attributes for the region <div>.
  9. * - region: The name of the region variable as defined in the theme's
  10. * .info.yml file.
  11. *
  12. * @see template_preprocess_region()
  13. *
  14. * @ingroup themeable
  15. */
  16. #}
  17. {% if content %}
  18. {{ get_progress(false, 'module-page') }}
  19. <div{{ attributes.addClass('content-box', 'opigno_activity__wrapper') }}>
  20. <div class="module-title-wrapper">
  21. <h2 class="module-title">
  22. {{ content.activity_title }}
  23. </h2>
  24. <div class="fullscreen-link bg-faded d-flex ml-md-3">
  25. <a href="#"><i class="fi fi-rr-expand"></i><i class="fi fi-rr-compress"></i></a>
  26. </div>
  27. </div>
  28. {{ content|without('activity_title') }}
  29. </div>
  30. {% endif %}