芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/public_html/cepali/mod/book/tool/print/templates/print_book.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 comments. You should have received a copy of the GNU General Public License along with Moodle. If not, see
. }} {{! @template booktool_print/print_book Print book page. Classes required for JS: * none Data attributes required for JS: * none * printdialoglink string The URL pointing to the print book chapter popup window. * booktitle string The HTML of the book title. * bookintro string The book description. * sitelink string The HTML link pointing to the site's dashboard. * coursename string The name of the course. * modulename string The name of the module. * username string The user name. * printdate string The print date. * chaptertitle string The title of the chapter. * toc object The HTML of the table of contents. * chapters array The array of book chapters, their content and visibility information. Example context (json): { "printdialoglink": "
Print book
", "booktitle": "
Book title
", "bookintro": "Book description", "sitelink" : "
Site title
", "coursename" : "Course name", "modulename" : "Module name", "username" : "User name", "printdate" : "Tuesday, 22 January 2019, 10:17 AM", "chaptertitle": "Chapter title", "toc" : "
Table of contents
", "chapters": [ { "content": "
Chapter1 content
", "visible": "true" }, { "content": "
Chapter2 content
", "visible": "false" } ] } }}
{{{ printdialoglink }}}
{{{ booktitle }}}
{{# str }} site {{/ str }}:
{{{ sitelink }}}
{{# str }} course {{/ str }}:
{{{ coursename }}}
{{# str }} modulename, mod_book {{/ str }}:
{{{ modulename }}}
{{# str }} printedby, booktool_print {{/ str }}:
{{{ username }}}
{{# str }} printdate, booktool_print {{/ str }}:
{{{ printdate }}}
{{#bookintro}}
{{#str}} description {{/str}}
{{{ bookintro }}}
{{/bookintro}}
{{{ toc }}}
{{#chapters}} {{#visible }}
{{{ content }}}
{{/visible}} {{/chapters}}