11 |
efrain |
1 |
<?php
|
|
|
2 |
// This file is part of Moodle - http://moodle.org/
|
|
|
3 |
//
|
|
|
4 |
// Moodle is free software: you can redistribute it and/or modify
|
|
|
5 |
// it under the terms of the GNU General Public License as published by
|
|
|
6 |
// the Free Software Foundation, either version 3 of the License, or
|
|
|
7 |
// (at your option) any later version.
|
|
|
8 |
//
|
|
|
9 |
// Moodle is distributed in the hope that it will be useful,
|
|
|
10 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
11 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
12 |
// GNU General Public License for more details.
|
|
|
13 |
//
|
|
|
14 |
// You should have received a copy of the GNU General Public License
|
|
|
15 |
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
|
|
16 |
|
|
|
17 |
/**
|
|
|
18 |
* format_buttons_renderer
|
|
|
19 |
*
|
|
|
20 |
* @package format_buttons
|
|
|
21 |
* @author Rodrigo Brandão <https://www.linkedin.com/in/brandaorodrigo>
|
|
|
22 |
* @copyright 2020 Rodrigo Brandão <rodrigo.brandao.contato@gmail.com>
|
|
|
23 |
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
|
|
24 |
*/
|
|
|
25 |
|
|
|
26 |
defined('MOODLE_INTERNAL') || die();
|
|
|
27 |
|
|
|
28 |
$string['pluginname'] = 'Buttons format';
|
|
|
29 |
$string['currentsection'] = 'This topic';
|
|
|
30 |
$string['editsection'] = 'Edit topic';
|
|
|
31 |
$string['deletesection'] = 'Delete topic';
|
|
|
32 |
$string['sectionname'] = 'Topic';
|
|
|
33 |
$string['section0name'] = 'General';
|
|
|
34 |
$string['hidefromothers'] = 'Hide topic';
|
|
|
35 |
$string['showfromothers'] = 'Show topic';
|
|
|
36 |
$string['showdefaultsectionname'] = 'Show the default sections name';
|
|
|
37 |
$string['showdefaultsectionname_help'] = 'If no name is set for the section will not show anything.<br>
|
|
|
38 |
By definition an unnamed topic is displayed as <strong>Topic [N]</strong>.';
|
|
|
39 |
$string['yes'] = 'Yes';
|
|
|
40 |
$string['no'] = 'No';
|
|
|
41 |
$string['sectionposition'] = 'Section zero position';
|
|
|
42 |
$string['sectionposition_help'] = 'The section 0 will appear together the visible section.<br><br>
|
|
|
43 |
<strong>Above the list buttons</strong><br>Use this option if you want to add some text or resource before the buttons list.
|
|
|
44 |
<i>Example: Define a picture to illustrate the course.</i><br><br><strong>Below the visible section</strong><br>
|
|
|
45 |
Use this option if you want to add some text or resource after the visible section.
|
|
|
46 |
<i>Example: Resources or links to be displayed regardless of the visible section.</i><br><br>';
|
|
|
47 |
$string['above'] = 'Above the list buttons';
|
|
|
48 |
$string['below'] = 'Below the visible section';
|
|
|
49 |
$string['divisor'] = 'Number of sections to group - {$a}';
|
|
|
50 |
$string['divisortext'] = 'Title of the grouping - {$a}';
|
|
|
51 |
$string['divisortext_help'] = 'The grouping sections is used to separate section by type or modules.
|
|
|
52 |
<i>Example: The course has 10 sections divided into two modules: Theoretical (with 5 sections) and Practical (with 5 sections).<br>
|
|
|
53 |
Define the title like "Teorical" and set the number of sections to 5.</i><br><br>
|
|
|
54 |
Tip: if you want to use the tag <strong><br></strong>, type [br].';
|
|
|
55 |
$string['colorcurrent'] = 'Color of the current section button';
|
|
|
56 |
$string['colorcurrent_help'] = 'The current section is the section marked with highlight.<br>Define a color in hexadecimal.
|
|
|
57 |
<i>Example: #fab747</i><br>If you want to use the default color, leave empty.';
|
|
|
58 |
$string['colorvisible'] = 'Color of the visible section button';
|
|
|
59 |
$string['colorvisible_help'] = 'The visible section is the selected section.<br>Define a color in hexadecimal.
|
|
|
60 |
<i>Example: #747fab</i><br>If you want to use the default color, leave empty.';
|
|
|
61 |
$string['editing'] = 'The buttons are disabled while the edit mode is active.';
|
|
|
62 |
$string['sequential'] = 'Sequential';
|
|
|
63 |
$string['notsequentialdesc'] = 'Each new group begins counting sections from one.';
|
|
|
64 |
$string['sequentialdesc'] = 'Count the section numbers ignoring the grouping.';
|
|
|
65 |
$string['sectiontype'] = 'List style';
|
|
|
66 |
$string['numeric'] = 'Numeric';
|
|
|
67 |
$string['roman'] = 'Roman numerals';
|
|
|
68 |
$string['alphabet'] = 'Alphabet';
|
|
|
69 |
$string['buttonstyle'] = 'Button style';
|
|
|
70 |
$string['buttonstyle_help'] = 'Define the shape style of the buttons.';
|
|
|
71 |
$string['circle'] = 'Circle';
|
|
|
72 |
$string['square'] = 'Square';
|
|
|
73 |
$string['inlinesections'] = 'Inline sections';
|
|
|
74 |
$string['inlinesections_help'] = 'Give each section a new line.';
|