MDL-87959 admin: Add marketplace availability in notifications
This commit is contained in:
@@ -331,6 +331,7 @@ class core_admin_renderer extends plugin_renderer_base {
|
||||
$output .= $this->forgotten_password_url_warning($invalidforgottenpasswordurl);
|
||||
$output .= $this->mnet_deprecation_warning($xmlrpcwarning);
|
||||
$output .= $this->moodlenet_removal_warning();
|
||||
$output .= $this->marketplace_integration_notice();
|
||||
$output .= $this->userfeedback_encouragement($showfeedbackencouragement);
|
||||
$output .= $this->services_and_support_content($showservicesandsupport);
|
||||
$output .= $this->campaign_content($showcampaigncontent);
|
||||
@@ -2359,6 +2360,18 @@ class core_admin_renderer extends plugin_renderer_base {
|
||||
return '';
|
||||
}
|
||||
|
||||
/**
|
||||
* Display a notice about Moodle Marketplace integration.
|
||||
*
|
||||
* @return string HTML to output.
|
||||
*/
|
||||
protected function marketplace_integration_notice(): string {
|
||||
$installer = tool_installaddon_installer::instance();
|
||||
$url = $installer->get_marketplace_url();
|
||||
$notice = get_string('marketplaceavailablenotice', 'admin', $url->out());
|
||||
return $this->warning($notice, 'info');
|
||||
}
|
||||
|
||||
/**
|
||||
* Renders the theme selector list.
|
||||
*
|
||||
|
||||
@@ -867,6 +867,7 @@ $string['manageformatsgotosettings'] = 'Default format can be changed in {$a}';
|
||||
$string['managelang'] = 'Manage';
|
||||
$string['manageqbehaviours'] = 'Manage question behaviours';
|
||||
$string['manageqtypes'] = 'Manage question types';
|
||||
$string['marketplaceavailablenotice'] = 'Browse and download plugins on <a href="{$a}" target="_blank" rel="noopener noreferrer">Moodle Marketplace <i class="fa fa-external-link" role="img" aria-label="Opens in new window" title="Opens in new window"></i></a>.';
|
||||
$string['maturity50'] = 'Alpha';
|
||||
$string['maturity100'] = 'Beta';
|
||||
$string['maturity150'] = 'Release candidate';
|
||||
|
||||
Reference in New Issue
Block a user