Mini Shell

Direktori : /var/www/vhosts/ccp.ac.th/backup_full/httpdocs/moodle/theme/learnr/templates/
Upload File :
Current File : /var/www/vhosts/ccp.ac.th/backup_full/httpdocs/moodle/theme/learnr/templates/infobanners.mustache

{{!
    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_learnr/infobanners

    LearnR Info banners layout template.

    Context variables required for this template:
    * infobanners - The configured info banners list with:
      * content - The info banner content
      * bsclass - The info banner bootstrap class
      * no - The info banner number
      * dismissible - The fact that the info banner is dismissible

    Example context (json):
    {
        "infobanners": [
            {
                "content": "Lorem ipsum",
                "bsclass": "primary",
                "no": 1,
                "dismissible": true
            },
            {
                "content": "Dolor sit damet",
                "bsclass": "secondary",
                "no": 2,
                "dismissible": false
            }
        ]
    }
}}

{{#infobanners}}
    <div id="themeboostunioninfobanner{{no}}" class="themeboostunioninfobanner alert {{#bsclass}}alert-{{{ bsclass }}}{{/bsclass}}" role="alert">
        {{#dismissible}}
            <button type="button" id="themeboostunioninfobanner{{no}}close" class="close" data-dismiss="alert" data-infobanner-no="{{no}}" aria-label="{{#str}}infobannerclose, theme_learnr{{/str}}">
                <span aria-hidden="true">&times;</span>
            </button>
        {{/dismissible}}
        {{{content}}}
    </div>
{{/infobanners}}

Zerion Mini Shell 1.0