mirror of
https://github.com/Deutscher-Tischfussballbund/com_sportsmanager.git
synced 2026-09-12 02:51:50 +00:00
feat: add release notes to extension installation
This commit is contained in:
+9
@@ -24,6 +24,15 @@ class HtmlView extends BaseHtmlView
|
||||
?>
|
||||
<h3><?php echo Text::_('COM_SPORTSMANAGER'); ?> – Created by Sven Nickel | Maintained by DTFB</h3>
|
||||
<?php
|
||||
|
||||
$notesPath = JPATH_COMPONENT_ADMINISTRATOR . '/RELEASE_NOTES.md';
|
||||
if (file_exists($notesPath)) {
|
||||
$notes = file_get_contents($notesPath);
|
||||
echo '<div style="padding:1em;"><h3>Release Notes</h3><pre>' .
|
||||
htmlspecialchars($notes) . '</pre></div>';
|
||||
}
|
||||
|
||||
|
||||
// Display the template
|
||||
parent::display($tpl);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user