diff --git a/admin/renderer.php b/admin/renderer.php index 71437d5c9b7..11c52fcbc4f 100644 --- a/admin/renderer.php +++ b/admin/renderer.php @@ -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. * diff --git a/lang/en/admin.php b/lang/en/admin.php index e5567a35a5a..2fb9fcaff10 100644 --- a/lang/en/admin.php +++ b/lang/en/admin.php @@ -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 Moodle Marketplace .'; $string['maturity50'] = 'Alpha'; $string['maturity100'] = 'Beta'; $string['maturity150'] = 'Release candidate';