Created
September 20, 2016 15:52
-
-
Save cyberlex404/d020ca0b2a6754303929a1d2a0f2c65a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {# | |
| /** | |
| * @file | |
| * Default theme implementation for a swiper hoover media block. | |
| * | |
| * Available variables: | |
| * - items: List of slider element. | |
| * - thumbnail: URL image thumbnail | |
| * - large_img: URL large image | |
| * - attributes: Classes. | |
| * //- link: A link to the file. | |
| * | |
| * // @see template_preprocess_file_link() | |
| * | |
| * @ingroup themeable | |
| */ | |
| #} | |
| {{ kint(items) }} | |
| <div{{ attributes }}> | |
| <div class="swiper-container gallery-top"> | |
| <div class="swiper-wrapper"> | |
| <!-- | |
| <div class="swiper-slide" style="background-image:url(http://lorempixel.com/1200/1200/nature/1)"></div> | |
| <div class="swiper-slide" style="background-image:url(http://lorempixel.com/1200/1200/nature/2)"></div> | |
| --> | |
| {% for item in items %} | |
| <div{{ item.attributes.addClass('swiper-slide') }} style="background-image:url({{ item.large_img }})"></div> | |
| {% endfor %} | |
| </div> | |
| <!-- Add Arrows --> | |
| <div class="swiper-button-next swiper-button-white"></div> | |
| <div class="swiper-button-prev swiper-button-white"></div> | |
| </div> | |
| <div class="swiper-container gallery-thumbs"> | |
| <div class="swiper-wrapper"> | |
| <!--<div class="swiper-slide" style="background-image:url(http://lorempixel.com/1200/1200/nature/1)"></div> | |
| <div class="swiper-slide" style="background-image:url(http://lorempixel.com/1200/1200/nature/2)"></div> | |
| --> | |
| {% for item in items %} | |
| <div{{ item.attributes.addClass('swiper-slide') }} style="background-image:url({{ item.thumbnail }})"></div> | |
| {% endfor %} | |
| </div> | |
| </div> | |
| </div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment