diff --git a/views/bootstrap/class.ExtensionMgr.php b/views/bootstrap/class.ExtensionMgr.php
index e1c5a717d..971fb0ebf 100644
--- a/views/bootstrap/class.ExtensionMgr.php
+++ b/views/bootstrap/class.ExtensionMgr.php
@@ -45,6 +45,27 @@ class SeedDMS_View_ExtensionMgr extends SeedDMS_Theme_Style {
echo '';
}
+ function css() { /* {{{ */
+?>
+div.changelog h1 {
+ font-size: 18px;
+ font-weight: bold;
+ line-height: 16px;
+}
+div.readme h1 {
+ font-size: 24px;
+ font-weight: bold;
+ line-height: 24px;
+}
+div.readme h2 {
+ font-size: 18px;
+ font-weight: bold;
+ line-height: 24px;
+}
+
@@ -195,7 +216,10 @@ class SeedDMS_View_ExtensionMgr extends SeedDMS_Theme_Style {
$list = $extmgr->getExtensionListByName($extname);
/* Just show the changelog of the latest version */
$re = array_shift($list);
- echo '
'.$re['changelog']."
";
+ $Parsedown = new Parsedown();
+ $changelog = $Parsedown->text(htmlspecialchars($re['changelog']));
+ echo ''.$changelog.'
';
+// echo ''.$re['changelog']."
";
} /* }}} */
function changelog() { /* {{{ */
@@ -209,7 +233,10 @@ class SeedDMS_View_ExtensionMgr extends SeedDMS_Theme_Style {
if(isset($extconf[$extname])) {
$extconf = $extconf[$extname];
if(!empty($extconf['changelog']) && file_exists($extdir."/".$extname."/".$extconf['changelog'])) {
- echo ''.file_get_contents($extdir."/".$extname."/".$extconf['changelog'])."
";
+ $Parsedown = new Parsedown();
+ $changelog = $Parsedown->text(file_get_contents($extdir."/".$extname."/".$extconf['changelog']));
+ echo ''.$changelog.'
';
+// echo ''.file_get_contents($extdir."/".$extname."/".$extconf['changelog'])."
";
}
}
} /* }}} */
@@ -227,9 +254,9 @@ class SeedDMS_View_ExtensionMgr extends SeedDMS_Theme_Style {
$extconf = $extconf[$extname];
$Parsedown = new Parsedown();
if(file_exists($extdir."/".$extname."/README.".$session->getLanguage().".md")) {
- echo $Parsedown->text(file_get_contents($extdir."/".$extname."/README.".$session->getLanguage().".md"));
+ echo ''.$Parsedown->text(file_get_contents($extdir."/".$extname."/README.".$session->getLanguage().".md")).'
';
} elseif(file_exists($extdir."/".$extname."/README.md")) {
- echo $Parsedown->text(file_get_contents($extdir."/".$extname."/README.md"));
+ echo ''.$Parsedown->text(file_get_contents($extdir."/".$extname."/README.md")).'
';
}
}
} /* }}} */