parent
5f3cb6685d
commit
7f8f7d8ad1
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -1,16 +1,19 @@ |
|||||||
|
|
||||||
<nav id="menu"> |
<nav id="menu"> |
||||||
<div id="brand" onclick="$('#menu').toggleClass('expanded')"><?= tr('appname') ?></div>
|
<div id="brand" tabindex=0><?= tr('appname') ?></div>
|
||||||
<?php |
<?php |
||||||
// generate the menu |
// generate the menu |
||||||
foreach ($_pages as $k => $page) { |
foreach ($_pages as $k => $page) { |
||||||
if (strpos($page->bodyclass, 'cfg') === false) continue; |
if (strpos($page->bodyclass, 'cfg') === false) continue; |
||||||
|
|
||||||
$sel = ($_GET['page'] == $k) ? ' class="selected"' : ''; |
$sel = ($_GET['page'] == $k) ? 'selected' : ''; |
||||||
$text = $page->label; |
$text = $page->label; |
||||||
$url = e(url($k)); |
$url = e(url($k)); |
||||||
echo "<a href=\"$url\"$sel>$text</a>"; |
echo "<a href=\"$url\" class=\"$page->icon $sel\">$text</a>"; |
||||||
} |
} |
||||||
?><a href="<?= e(url('term')) ?>"><?= tr('menu.term') ?></a>
|
?><a href="<?= e(url('term')) ?>" class="icn-back"><?= tr('menu.term') ?></a>
|
||||||
|
|
||||||
</nav> |
</nav> |
||||||
|
|
||||||
|
<script> |
||||||
|
function menuOpen() { $('#menu').toggleClass('expanded') } |
||||||
|
$('#brand').on('click', menuOpen).on('keypress', cr(menuOpen)); |
||||||
|
</script> |
||||||
|
@ -0,0 +1,34 @@ |
|||||||
|
<div class="Box"> |
||||||
|
<div class="Row explain"> |
||||||
|
<?= tr('admin.explain') ?> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="Row buttons"> |
||||||
|
<a class="button icn-restore" |
||||||
|
onclick="return confirm('<?= tr('admin.confirm_restore') ?>');"
|
||||||
|
href="<?= e(url('restore_defaults')) ?>"
|
||||||
|
> |
||||||
|
<?= tr('admin.restore_defaults') ?> |
||||||
|
</a> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="Row buttons"> |
||||||
|
<a onclick="writeDefaults(); return false;" href="#"><?= tr('admin.write_defaults') ?></a>
|
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="Row buttons"> |
||||||
|
<a onclick="return confirm('<?= tr('admin.confirm_restore_hard') ?>');"
|
||||||
|
href="<?= e(url('restore_hard')) ?>"
|
||||||
|
> |
||||||
|
<?= tr('admin.restore_hard') ?> |
||||||
|
</a> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<script> |
||||||
|
function writeDefaults() { |
||||||
|
var pw = prompt('<?= tr('admin.confirm_store_defaults') ?>');
|
||||||
|
if (!pw) return; |
||||||
|
location.href = <?=json_encode(url('write_defaults')) ?> + '?pw=' + pw;
|
||||||
|
} |
||||||
|
</script> |
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue