Mini Shell

Direktori : /var/www/vhosts/ccp.ac.th/smtp.ccp.ac.th/httpdocs/moodle/theme/learnr/templates/
Upload File :
Current File : /var/www/vhosts/ccp.ac.th/smtp.ccp.ac.th/httpdocs/moodle/theme/learnr/templates/footnote.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/footnote

    LearnR footnote layout template.

    Context variables required for this template:
    * showfootnote - The fact if the footnote should be shown or not

    Example context (json):
    {
        "showfootnote": true,
        "footnotesetting": "This is my nice footnote",
        "imprintlinkpositionfootnote": true,
        "imprintlink": "https://localhost/theme/learnr/pages/imprint.php",
        "imprinttitle": "Imprint",
        "contactlinkpositionfootnote": true,
        "contactlink": "https://localhost/theme/learnr/pages/contact.php",
        "contacttitle": "Contact",
        "helplinkpositionfootnote": true,
        "helplink": "https://localhost/theme/learnr/pages/help.php",
        "helplinktitle": "Help",
        "maintenancelinkpositionfootnote": true,
        "maintenancelink": "https://localhost/theme/learnr/pages/maintenance.php",
        "maintenancetitle": "Maintenance"
    }
}}

{{# showfootnote }}
    <div id="footnote" class="py-3">
        <div class="container-fluid">
            <div class="row">
                {{{ footnotesetting }}}
            </div>
            <div class="row{{# footnotesetting }} mt-1{{/ footnotesetting }}">
                {{# imprintlinkpositionfootnote }}
                    <span class="theme_learnr_footnote_link theme_learnr_footnote_imprintlink pr-2 mr-2">
                        <a href="{{ imprintlink }}">{{ imprintpagetitle }}</a>
                    </span>
                {{/ imprintlinkpositionfootnote }}
                {{# contactlinkpositionfootnote }}
                    <span class="theme_learnr_footnote_link theme_learnr_footnote_contactlink pr-2 mr-2">
                        <a href="{{ contactlink }}">{{ contactpagetitle }}</a>
                    </span>
                {{/ contactlinkpositionfootnote }}
                {{# helplinkpositionfootnote }}
                    <span class="theme_learnr_footnote_link theme_learnr_footnote_helplink pr-2 mr-2">
                        <a href="{{ helplink }}">{{ helppagetitle }}</a>
                    </span>
                {{/ helplinkpositionfootnote }}
                {{# maintenancelinkpositionfootnote }}
                    <span class="theme_learnr_footnote_link theme_learnr_footnote_maintenancelink pr-2 mr-2">
                        <a href="{{ maintenancelink }}">{{ maintenancepagetitle }}</a>
                    </span>
                {{/ maintenancelinkpositionfootnote }}
            </div>
        </div>
    </div>
{{/ showfootnote }}

Zerion Mini Shell 1.0