images-jssor-formatter.html.twig in Jssor Slider 8
Available variables:
- attributes: HTML attributes for the containing element.
- children: The rendered child elements of the container.
- arrownavigator: Weither or not use arrows navigator.
- bulletnavigator: Weither or not use bullets navigator.
See also
1 theme call to images-jssor-formatter.html.twig
- JssorFieldFormatter::viewElements in src/
Plugin/ Field/ FieldFormatter/ JssorFieldFormatter.php - Builds a renderable array for a field value.
File
templates/images-jssor-formatter.html.twigView source
- {#
- /**
- * @file
- *
- * Available variables:
- * - attributes: HTML attributes for the containing element.
- * - children: The rendered child elements of the container.
- * - arrownavigator: Weither or not use arrows navigator.
- * - bulletnavigator: Weither or not use bullets navigator.
- *
- * @see template_preprocess_images_jssor_formatter()
- */
- #}
- <div {{ attributes.addClass(classes) }} style="position: relative; margin: 0 auto; top: 0; left: 0; width: 1300px; height: 600px; overflow: hidden;">
-
- <!-- Slides Container -->
- <div data-u="slides" style="cursor: move; position: absolute; left: 0; top: 0; width: 1300px; height: 600px; overflow: hidden;">
- {{ children }}
- </div>
-
- {% if arrownavigator %}
- <!-- Arrows navigator -->
- <span data-u="arrowleft" class="jssora01l"></span>
- <span data-u="arrowright" class="jssora01r"></span>
- {% endif %}
-
- {% if bulletnavigator %}
- <!-- Bullets navigator -->
- <div u="navigator" class="jssorb01" style="position: absolute; bottom: 16px; right: 6px;">
- <div u="prototype" style="position: absolute; width: 16px; height: 16px;"></div>
- </div>
- {% endif %}
-
- </div>