2009-01-04 01:35:35 +00:00
|
|
|
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
2009-01-11 00:24:39 +00:00
|
|
|
<script type="text/javascript">
|
|
|
|
|
var load_url = '<?= url::site("admin/themes/__TYPE__") ?>';
|
|
|
|
|
var load = function(type) {
|
|
|
|
|
$("#gThemePane").load(load_url.replace('__TYPE__', type));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var select_url = "<?= url::site("admin/themes/choose") ?>";
|
|
|
|
|
select = function(type, id) {
|
|
|
|
|
$.post(select_url, {"type": type, "id": id, "csrf": '<?= access::csrf_token() ?>'},
|
|
|
|
|
function() { load(type) });
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<div id="gAdminThemes">
|
2009-01-08 17:13:06 +00:00
|
|
|
<h1><?= t("Theme Administration") ?></h1>
|
2009-01-11 00:24:39 +00:00
|
|
|
<div id="gThemeTabs">
|
|
|
|
|
<?= $menu ?>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- @todo: move this fix into the CSS file -->
|
|
|
|
|
<div style="clear: both"></div>
|
2009-01-10 19:19:36 +00:00
|
|
|
|
2009-01-11 00:24:39 +00:00
|
|
|
<div id="gThemePane">
|
|
|
|
|
<h1> <?= $title ?> </h1>
|
|
|
|
|
<div class="active">
|
|
|
|
|
<h2> <?= t("Selected theme") ?> </h2>
|
|
|
|
|
<div class="theme_block">
|
|
|
|
|
<h3> <?= $themes[$active]->name ?> </h3>
|
|
|
|
|
<img src="<?= url::file("themes/{$active}/thumbnail.png") ?>"
|
|
|
|
|
alt="<?= $themes[$active]->name ?>" />
|
|
|
|
|
<p>
|
|
|
|
|
<?= $themes[$active]->description ?>
|
|
|
|
|
</p>
|
2009-01-10 19:19:36 +00:00
|
|
|
</div>
|
2009-01-11 00:24:39 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="available">
|
|
|
|
|
<h2> <?= t("Available themes") ?> </h2>
|
|
|
|
|
<? foreach ($themes as $id => $info): ?>
|
|
|
|
|
<? if (!$info->$type) continue ?>
|
|
|
|
|
<? if ($id == $active) continue ?>
|
|
|
|
|
<div class="theme_block gDialogLink" href="<?= url::site("admin/themes/preview/$type/$id") ?>">
|
|
|
|
|
<h3> <?= $info->name ?> </h3>
|
|
|
|
|
<img src="<?= url::file("themes/{$id}/thumbnail.png") ?>"
|
|
|
|
|
alt="<?= $info->name ?>" />
|
|
|
|
|
<p>
|
|
|
|
|
<?= $info->description ?>
|
|
|
|
|
</p>
|
2009-01-10 08:00:43 +00:00
|
|
|
</div>
|
2009-01-11 00:24:39 +00:00
|
|
|
<? endforeach ?>
|
2009-01-09 23:54:40 +00:00
|
|
|
</div>
|
2009-01-11 00:24:39 +00:00
|
|
|
</div>
|
2009-01-01 18:56:06 +00:00
|
|
|
</div>
|