diff --git a/classes/settingstools.php b/classes/settingstools.php index a01f9e9..c5c75b2 100644 --- a/classes/settingstools.php +++ b/classes/settingstools.php @@ -134,6 +134,10 @@ public static function fetch_template_pages($conf) { get_string('templateinstructions', 'filter_generico', $tindex), get_string('templateinstructions_desc', 'filter_generico'), '', PARAM_RAW)); + // Template hidden. + $settingspage->add(new \admin_setting_configcheckbox('filter_generico/templatehidden_' . $tindex, + get_string('templatehidden', 'filter_generico', $tindex), + get_string('templatehidden_desc', 'filter_generico'), 0)); // Template body. $settingspage->add(new \admin_setting_configtextarea('filter_generico/template_' . $tindex, diff --git a/lang/en/filter_generico.php b/lang/en/filter_generico.php index b2ada70..9eb44f4 100644 --- a/lang/en/filter_generico.php +++ b/lang/en/filter_generico.php @@ -77,6 +77,8 @@ $string['templateheading'] = 'Settings for Generico Template {$a}'; $string['templateheadingcss'] = 'CSS/Style Settings.'; $string['templateheadingjs'] = 'Javascript Settings.'; +$string['templatehidden'] = 'Hidden (template {$a})'; +$string['templatehidden_desc'] = 'Hide this template from the Generico editor plugin.'; $string['templateinstructions'] = 'Instructions (template {$a})'; $string['templateinstructions_desc'] = 'Any instructions entered here will be displayed on the Generic atto form for this template is displayed. Keep them short or it will look bad.'; $string['templatekey'] = 'The key that identifies template {$a}'; diff --git a/version.php b/version.php index 2464c24..e979c2a 100644 --- a/version.php +++ b/version.php @@ -24,10 +24,10 @@ */ defined('MOODLE_INTERNAL') || die(); - -$plugin->version = 2025100500; // The current plugin version (Date: YYYYMMDDXX). + +$plugin->version = 2026070700; // The current plugin version (Date: YYYYMMDDXX). $plugin->requires = 2022112800; // Requires this Moodle version. $plugin->component = 'filter_generico'; // Full name of the plugin (used for diagnostics). $plugin->maturity = MATURITY_STABLE; -$plugin->release = 'Version 1.4.25 (Build 2025100500)'; +$plugin->release = 'Version 1.4.26 (Build 2026070700)'; $plugin->supported = [401, 405];