blob: fffd23da4bc3c147ba491f0e4c4bd66e3fb08ef6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
<?php defined("SYSPATH") or die("No direct script access.") ?>
<div id="gThemes">
<h1><?= t("Theme Administration") ?></h1>
<form method="post" id="gThemeAdmin" action="<?= url::site("admin/themes/save") ?>">
<?= access::csrf_form_field() ?>
<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") ?>
<a href="#">
<img src="<?= url::file("themes/{$active}/thumbnail.png") ?>" alt="<?= $themes[$active]->name ?>" />
</a>
<?= $themes[$active]->description ?>
<input type="radio" name="themes" value="<?= $active ?>" checked="checked">
<?= $themes[$active]->name ?>
</input>
</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>
<?= $theme->description ?>
<input type="radio" name="themes" value="<?= $id ?>">
<?= $theme->name ?>
</input>
</td>
<? endforeach ?>
</tr>
</tbody>
</table>
</div>
<div id="gtAdmin">
<table>
<tbody>
<tr>
<td>
<?= t("Current theme") ?>
<a href="#">
<img src="<?= url::file("themes/{$active_admin}/thumbnail.png") ?>"
alt="<?= $themes[$active_admin]->name ?>" />
</a>
<?= $admin_themes[$active_admin]->description ?>
<input type="radio" name="admin_themes" value="<?= $active_admin ?>" checked="checked">
<?= $admin_themes[$active_admin]->name ?>
</input>
</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>
<?= $theme->description ?>
<input type="radio" name="admin_themes" value="<?= $id ?>">
<?= $theme->name ?>
</input>
</td>
<? endforeach ?>
</tr>
</tbody>
</table>
</div>
</div>
<input type="submit" value="<?= t("Save") ?>"/>
</form>
</div>
<div id="gThemeDetails">
<?= $themes[$active]->details ?>
</div>
|