mirror of
https://github.com/Deutscher-Tischfussballbund/com_sportsmanager.git
synced 2026-06-10 14:37:52 +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);
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user