mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
publication MDL-19315 add informative text to the hub selector page + select Moodle.org by default
This commit is contained in:
parent
3f106c06c7
commit
e2ed692db3
@ -45,6 +45,8 @@ class hub_publish_selector_form extends moodleform {
|
||||
|
||||
$mform->addElement('header', 'site', get_string('selecthub', 'hub'));
|
||||
|
||||
$mform->addElement('static', 'info', '', get_string('selecthubinfo', 'hub').html_writer::empty_tag('br'));
|
||||
|
||||
$hubmanager = new hub();
|
||||
$registeredhubs = $hubmanager->get_registered_on_hubs();
|
||||
|
||||
@ -58,6 +60,9 @@ class hub_publish_selector_form extends moodleform {
|
||||
$hubname = $hub->huburl;
|
||||
}
|
||||
$mform->addElement('radio','huburl',null,' '.$hubname, $hub->huburl);
|
||||
if ($hub->huburl == MOODLEORGHUBURL) {
|
||||
$mform->setDefault('huburl', $hub->huburl);
|
||||
}
|
||||
}
|
||||
|
||||
$mform->addElement('hidden', 'id', $this->_customdata['id']);
|
||||
|
@ -154,6 +154,7 @@ $string['screenshots'] = 'Screenshots';
|
||||
$string['screenshots_help'] = 'Screenshots will displayed during search results.';
|
||||
$string['search'] = 'Search';
|
||||
$string['selecthub'] = 'Select hub';
|
||||
$string['selecthubinfo'] = 'Please select the hub to publish on. A hub is a directory of Moodle sites and a directory of Moodle courses.';
|
||||
$string['selecthubforadvertise'] = 'Select hub for advertising';
|
||||
$string['selecthubforsharing'] = 'Select hub for uploading';
|
||||
$string['sendfollowinginfo'] = 'Send the following information:';
|
||||
|
Loading…
x
Reference in New Issue
Block a user