MDL-72845 core: make campaign template more generic

This commit is contained in:
Simey Lameze
2021-12-22 19:42:49 +08:00
parent 5c05b019ae
commit c3cb372e62
2 changed files with 19 additions and 9 deletions
+8 -1
View File
@@ -895,7 +895,14 @@ class core_admin_renderer extends plugin_renderer_base {
return '';
}
return $this->render_from_template('core/campaign_content', ['lang' => current_language()]);
$lang = current_language();
$url = "https://campaign.moodle.org/current/lms/{$lang}/install/";
$params = [
'url' => $url,
'iframeid' => 'campaign-content'
];
return $this->render_from_template('core/external_content_banner', $params);
}
/**