summaryrefslogtreecommitdiff
path: root/code/admin/add.php
diff options
context:
space:
mode:
authorLudovic Pouzenc <lpouzenc@gmail.com>2013-10-30 00:51:01 +0100
committerLudovic Pouzenc <lpouzenc@gmail.com>2013-10-30 00:51:01 +0100
commit97bd9842f44bb25832f5dd8288372f2199cf3b7b (patch)
tree336f9affdbd5f0a617071ba6058f6872055951bc /code/admin/add.php
parent6ab5a946d9b512889d19ae041002cd78156c3ffc (diff)
downloadeditablesite-97bd9842f44bb25832f5dd8288372f2199cf3b7b.tar.gz
editablesite-97bd9842f44bb25832f5dd8288372f2199cf3b7b.tar.bz2
editablesite-97bd9842f44bb25832f5dd8288372f2199cf3b7b.zip
Correction de bugs, amélioration titres admin, traductions.
Diffstat (limited to 'code/admin/add.php')
-rw-r--r--code/admin/add.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/code/admin/add.php b/code/admin/add.php
index c839e0a..0869dd5 100644
--- a/code/admin/add.php
+++ b/code/admin/add.php
@@ -9,7 +9,11 @@
// Localization Init
l10n_init($site_conf['site_admin_lang']);
- $kind=sanitize($_GET, 'kind', '/[^a-z_]+/', 'page'); /* Could be : page, media */
+ // URL parameter parsing
+ $kind = sanitize($_GET, 'kind', '/[^a-z_]+/', 'page'); /* Could be : page, media */
+
+ // Pre-computed because used twice
+ $page_title = _('Admin') . ' - ' . ( ($kind=='media')?_('Add a media'):_('Add a page') );
?>
<!DOCTYPE html>
<html>
@@ -18,9 +22,10 @@
<link rel="stylesheet" href="treeview.css">
<link rel="stylesheet" href="admin.css">
<script type="text/javascript" src="admin.js"></script>
-<title><?=($kind=='media')?_('Add media'):_('Add page')?></title>
+<title><?=$page_title?></title>
</head>
<body>
+<h1><?=$page_title?></h1>
<form>
<fieldset>
@@ -50,6 +55,8 @@
<input id="fold_add_item" type="button" value="<?=_('Add page')?>" onclick="go_add('<?=$kind?>','item');">
</fieldset>
+<input id="fold_back_admin" type="button" value="<?=_('Back to admin')?>" onclick="go_admin_page();">
+
</form>
</body>
</html>