From: toyomoyo Date: Wed, 6 Dec 2006 07:57:54 +0000 (+0000) Subject: added new setting for allowvisiblecoursesinhiddencategories in appearance->front... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=aec86ae0276696703d467376aec7a43325077150;p=moodle.git added new setting for allowvisiblecoursesinhiddencategories in appearance->front page --- diff --git a/admin/settings/appearance.php b/admin/settings/appearance.php index ae14f00ed7..7a265e7124 100644 --- a/admin/settings/appearance.php +++ b/admin/settings/appearance.php @@ -38,6 +38,7 @@ $temp->add(new admin_setting_sitesetselect('newsitems', get_string('newsitemsnum '9' => '9', '10' => '10'))); $temp->add(new admin_setting_configtext('coursesperpage', get_string('coursesperpage', 'admin'), get_string('configcoursesperpage', 'admin'), 20, PARAM_INT)); +$temp->add(new admin_setting_configcheckbox('allowvisiblecoursesinhiddencategories', get_string('allowvisiblecoursesinhiddencategories', 'admin'), get_string('configallowvisiblecoursesinhiddencategories', 'admin'), 0)); $ADMIN->add('appearance', $temp); // calendar diff --git a/lang/en_utf8/admin.php b/lang/en_utf8/admin.php index 2e551294dc..f2f3a8c432 100644 --- a/lang/en_utf8/admin.php +++ b/lang/en_utf8/admin.php @@ -14,6 +14,7 @@ $string['allowrenames'] = 'Allow renames'; $string['allowuserblockhiding'] = 'Allow users to hide blocks'; $string['allowusermailcharset'] = 'Allow user to select character set'; $string['allowuserthemes'] = 'Allow user themes'; +$string['allowvisiblecoursesinhiddencategories'] = 'Allow visible courses in hidden categories'; $string['antivirus'] = 'Anti-Virus'; $string['appearance'] = 'Appearance'; $string['aspellpath'] = 'Path to aspell'; @@ -51,6 +52,7 @@ $string['configallowuserblockhiding'] = 'Do you want to allow users to hide/show $string['configallowusermailcharset'] = 'Enabling this, every user in the site will be able to specify his own charset for email.'; $string['configallowuserthemes'] = 'If you enable this, then users will be allowed to set their own themes. User themes override site themes (but not course themes)'; $string['configallusersaresitestudents'] = 'For activities on the front page of the site, should ALL users be considered as students? If you answer \"Yes\", then any confirmed user account will be allowed to participate as a student in those activities. If you answer \"No\", then only users who are already a participant in at least one course will be able to take part in those front page activities. Only admins and specially assigned teachers can act as teachers for these front page activities.'; +$string['configallowvisiblecoursesinhiddencategories'] = 'Display courses in hidden categories normally'; $string['configautologinguests'] = 'Should visitors be logged in as guests automatically when entering courses with guest access?'; $string['configbloglevel'] = 'This setting allows you to restrict the level to which user blogs can be viewed on this site. Note that they specify the maximum context of the VIEWER not the poster or the types of blog posts. Blogs can also be disabled completely if you don\'t want them at all.'; $string['configcachetext'] = 'For larger sites or sites that use text filters, this setting can really speed things up. Copies of texts will be retained in their processed form for the time specified here. Setting this too small may actually slow things down slightly, but setting it too large may mean texts take too long to refresh (with new links, for example).';