summaryrefslogtreecommitdiff
path: root/core/views
diff options
context:
space:
mode:
authorFelix Rabinovich <virshu@users.sourceforge.net>2009-01-10 08:00:43 +0000
committerFelix Rabinovich <virshu@users.sourceforge.net>2009-01-10 08:00:43 +0000
commit006f18dc7ac4c40e1ca48de5bc4d8bb492bbc454 (patch)
tree4c916444f5e5128881890a4578986d91b97a99c6 /core/views
parent9d584a528b8aa6b825a489ddf4bb9ecd50c54016 (diff)
Split themes into two tabs for regular and admin themes
Diffstat (limited to 'core/views')
-rw-r--r--core/views/admin_themes.html.php72
1 files changed, 52 insertions, 20 deletions
diff --git a/core/views/admin_themes.html.php b/core/views/admin_themes.html.php
index c9e62983..9f0cfd56 100644
--- a/core/views/admin_themes.html.php
+++ b/core/views/admin_themes.html.php
@@ -3,26 +3,58 @@
<h1><?= t("Theme Administration") ?></h1>
<form method="post" id="gThemeAdmin" action="<?= url::site("admin/themes/save") ?>">
<?= access::csrf_form_field() ?>
- <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>
+ <div id="gThemeTabs">
+ <ul>
+ <li><a href="#gtRegular"><span>Regular</span></a></li>
+ <li><a href="#gtAdmin"><span>Admin</span></a></li>
+ </ul>
+ <div id="gtRegular">
+ <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>
+ </div>
+ <div id="gtAdmin">
+ <table><tbody><tr><td>
+ <?= t("Current theme") ?><br />
+ <a href="#">
+ <img src="<?= url::file("themes/{$active_admin}/thumbnail.png") ?>"
+ alt="<?= $themes[$active_admin]->name ?>" />
+ </a><br />
+ <?= $admin_themes[$active_admin]->description ?><br />
+ <input type="radio" name="admin_themes" value="<?= $active_admin ?>" checked="checked">
+ <?= $admin_themes[$active_admin]->name ?>
+ </td>
+ <? foreach ($admin_themes as $id => $theme): ?>
+ <? if ($id == $active_admin) continue; ?>
+ <td>
+ <a href="#">
+ <img src="<?= url::file("themes/{$id}/thumbnail.png") ?>" alt="<?= $theme->name ?>" />
+ </a><br />
+ <?= $theme->description ?><br />
+ <input type="radio" name="admin_themes" value="<?= $id ?>"> <?= $theme->name ?>
+ </td>
+ <? endforeach ?>
+ </tr></tbody></table>
+ </div>
+ </div>
+ </div>
<input type="submit" value="<?= t("Save") ?>"/>
</form>
<div id="gThemeDetails">