feat: add release notes to extension installation

This commit is contained in:
Marvin Flock
2025-06-24 20:16:51 +02:00
parent 6d9df0e769
commit 51ee656f66
4 changed files with 15 additions and 1 deletions
@@ -24,6 +24,15 @@ class HtmlView extends BaseHtmlView
?>
<h3><?php echo Text::_('COM_SPORTSMANAGER'); ?> &#8211; 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);
}
+1
View File
@@ -37,6 +37,7 @@
<files folder="admin">
<filename>access.xml</filename>
<filename>index.html</filename>
<filename>RELEASE_NOTES.md</filename>
<folder>services</folder>
<folder>src</folder>
<folder>tmpl</folder>