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.
See also
1 theme call to opigno-module-activity-from.html.twig
- OpignoModuleController::moduleQuestionAnswerForm in src/
Controller/ OpignoModuleController.php - Returns module question answer form.
File
templates/opigno-module-activity-from.html.twigView source
- {#
- /**
- * @file
- * 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.
- *
- * @see template_preprocess_region()
- *
- * @ingroup themeable
- */
- #}
- {% if content %}
- {{ get_progress(false, 'module-page') }}
- <div{{ attributes.addClass('content-box', 'opigno_activity__wrapper') }}>
- <div class="module-title-wrapper">
- <h2 class="module-title">
- {{ content.activity_title }}
- </h2>
- <div class="fullscreen-link bg-faded d-flex ml-md-3">
- <a href="#"><i class="fi fi-rr-expand"></i><i class="fi fi-rr-compress"></i></a>
- </div>
- </div>
- {{ content|without('activity_title') }}
- </div>
- {% endif %}