Skip to content
Permalink
Browse files

Now informs about old themes.

It's damn ugly, this page, but I'm just getting it to a useful state first
  • Loading branch information...
moodler
moodler committed Jan 31, 2005
1 parent d74d4f2 commit cc15a607eb81acf052b8d990e23eceaa5300a65b
Showing with 14 additions and 3 deletions.
  1. +14 −3 theme/index.php
@@ -75,6 +75,9 @@
continue;
}
unset($THEME);
include_once("$CFG->dirroot/theme/$theme/config.php");
echo "<tr>";
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 "<h4>$theme</h4>";
if (!isset($THEME->sheets)) {
notify("OLD THEME!!");
}
echo '<ul>';
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);
} 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);
}
if ($CFG->theme != $theme) {
echo "<p><a href=\"index.php?choose=$theme&amp;sesskey=$sesskey\">$strchoose</a></p>";
echo "<li><a href=\"index.php?choose=$theme&amp;sesskey=$sesskey\">$strchoose</a>";
}
echo '</ul>';
echo '</td>';
echo "</tr>";
}

0 comments on commit cc15a60

Please sign in to comment.
You can’t perform that action at this time.