diff options
author | Felix Rabinovich <virshu@users.sourceforge.net> | 2009-01-09 23:31:46 +0000 |
---|---|---|
committer | Felix Rabinovich <virshu@users.sourceforge.net> | 2009-01-09 23:31:46 +0000 |
commit | b647aa0f74e66548d6d69fc4585b89220ce60043 (patch) | |
tree | 81c78a1d1694462d45db75ab7f56d9c3cbc192de /core/views | |
parent | 1e14594d689a1150e922a5f5fe01956be4ccaf21 (diff) |
Theme Administration v. 2. Doesn't distinguish between regular and admin themes yet
Diffstat (limited to 'core/views')
-rw-r--r-- | core/views/admin_themes.html.php | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/core/views/admin_themes.html.php b/core/views/admin_themes.html.php index 1064ae5e..e6475b45 100644 --- a/core/views/admin_themes.html.php +++ b/core/views/admin_themes.html.php @@ -1,17 +1,30 @@ <?php defined("SYSPATH") or die("No direct script access.") ?> <div id="gThemes"> <h1><?= t("Theme Administration") ?></h1> - <p> - <?= t("These are the themes in your system") ?> - </p> - <form method="post" action="<?= url::site("admin/themes/save") ?>"> + <form method="post" id="gThemeAdmin" action="<?= url::site("admin/themes/save") ?>"> <?= access::csrf_form_field() ?> - <? foreach ($themes as $theme): ?> - <input type="radio" name="theme" value="<?= $theme ?>" - <? if ($theme == $active): ?> checked="checked" <? endif ?> - /> - <?= $theme ?> + <table><tbody><tr><td> + <?= t("Current theme") ?><br /> + <a href="#"> + <img src="<?= url::file("themes/{$active}/thumbnail.png") ?>" alt="<?= $themes[$active]->name ?>" /> + </a><br /> + <?= $themes[$active]->description ?><br /> + <input type="radio" name="themes" value="<?= $active ?>" checked="checked"> + <?= $themes[$active]->name ?> + </td> + <? foreach ($themes as $id => $theme): ?> + <? if ($id == $active) continue; ?> + <td> + <a href="#"> + <img src="<?= url::file("themes/{$id}/thumbnail.png") ?>" alt="<?= $theme->name ?>" /> + </a><br /> + <?= $theme->description ?><br /> + <input type="radio" name="themes" value="<?= $id ?>"> <?= $theme->name ?> + </td> <? endforeach ?> + </tr></tbody></table> <input type="submit" value="<?= t("Save") ?>"/> </form> + <div id="gThemeDetails"></div> + </div> |