{{!
    This file is part of Moodle - http://moodle.org/

    Moodle is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Moodle is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
}}
{{!
    @template theme_boost/carousel


    Example context (json):
    {
        "slides": [
         {
             "index": 1,
             "active": "",
             "name": "slide_one",
             "image": "",
             "title": "Slide title",
             "subtitle": "Slide subtitle"
         },
         {
             "index": 2,
             "active": "",
             "name": "slide_two",
             "image": "",
             "title": "Slide title",
             "subtitle": "Slide subtitle"
         }
        ]
    }
}}

<div id="snap-site-carousel" class="carousel slide" data-ride="carousel">
    <div class="carousel-inner" role="listbox">
        {{#slides}}
                <div class="carousel-item carousel-{{name}} {{active}}">
                    <div class="carousel-slide" style="background-image:url({{{image}}});">
                        <figure class="pessoas">
                            <img src="{{figura}}" style="position: absolute;bottom: 0;right: 40px;filter: opacity(100%);" class="img-responsive" alt="">
                        </figure>
                        <div class="conteiner-slide">
                            <div class="carousel-caption d-none d-md-block">
                                <h1>{{title}}</h1>
                                <p>{{subtitle}}</p>
                            </div>
                        </div>
                    </div>
                </div>
        {{/slides}}
    </div>
    <div class="carousel-controls">
        <a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-slide="prev">
            <span class="carousel-control-prev-icon" aria-hidden="true"></span>
            <span class="sr-only">Previous</span>
        </a>
        <a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-slide="next">
            <span class="carousel-control-next-icon" aria-hidden="true"></span>
            <span class="sr-only">Next</span>
        </a>
  </div>
  <ol class="carousel-indicators js-only">
     {{#slides}}
        <li data-target="#snap-site-carousel" data-slide-to="{{index}}" class="{{active}}"></li>
    {{/slides}}
  </ol>
</div>
