mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Now informs about old themes.
It's damn ugly, this page, but I'm just getting it to a useful state first
This commit is contained in:
parent
d74d4f2053
commit
cc15a607eb
1 changed files with 14 additions and 3 deletions
|
@ -75,6 +75,9 @@
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unset($THEME);
|
||||||
|
include_once("$CFG->dirroot/theme/$theme/config.php");
|
||||||
|
|
||||||
echo "<tr>";
|
echo "<tr>";
|
||||||
echo "<td align=\"center\"><iframe name=\"$theme\" src=\"preview.php?preview=$theme\" height=\"150\" width=\"500\"></iframe></td>";
|
echo "<td align=\"center\"><iframe name=\"$theme\" src=\"preview.php?preview=$theme\" height=\"150\" width=\"500\"></iframe></td>";
|
||||||
|
|
||||||
|
@ -84,17 +87,25 @@
|
||||||
echo '<td valign="top">';
|
echo '<td valign="top">';
|
||||||
}
|
}
|
||||||
echo "<h4>$theme</h4>";
|
echo "<h4>$theme</h4>";
|
||||||
|
if (!isset($THEME->sheets)) {
|
||||||
|
notify("OLD THEME!!");
|
||||||
|
}
|
||||||
|
|
||||||
|
echo '<ul>';
|
||||||
|
|
||||||
if (file_exists("$theme/README.html")) {
|
if (file_exists("$theme/README.html")) {
|
||||||
echo "<p><a target=\"$theme\" href=\"preview.php?preview=$theme\">$strpreview</a></p>";
|
echo "<li><a target=\"$theme\" href=\"preview.php?preview=$theme\">$strpreview</a>";
|
||||||
|
echo '<li>';
|
||||||
link_to_popup_window('/theme/'.$theme.'/README.html', $theme, $strinfo);
|
link_to_popup_window('/theme/'.$theme.'/README.html', $theme, $strinfo);
|
||||||
} else if (file_exists("$theme/README.txt")) {
|
} else if (file_exists("$theme/README.txt")) {
|
||||||
echo "<p><a target=\"$theme\" href=\"preview.php?preview=$theme\">$strpreview</a></p>";
|
echo "<li><a target=\"$theme\" href=\"preview.php?preview=$theme\">$strpreview</a>";
|
||||||
|
echo '<li>';
|
||||||
link_to_popup_window('/theme/'.$theme.'/README.txt', $theme, $strinfo);
|
link_to_popup_window('/theme/'.$theme.'/README.txt', $theme, $strinfo);
|
||||||
}
|
}
|
||||||
if ($CFG->theme != $theme) {
|
if ($CFG->theme != $theme) {
|
||||||
echo "<p><a href=\"index.php?choose=$theme&sesskey=$sesskey\">$strchoose</a></p>";
|
echo "<li><a href=\"index.php?choose=$theme&sesskey=$sesskey\">$strchoose</a>";
|
||||||
}
|
}
|
||||||
|
echo '</ul>';
|
||||||
echo '</td>';
|
echo '</td>';
|
||||||
echo "</tr>";
|
echo "</tr>";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue