Browse Source

Added write button

master
Romain de Laage 2 years ago
parent
commit
63d6e1aee9
Signed by: rdelaage
GPG Key ID: 18BC11F1027B2AD4
  1. 3
      assets/lang/en.php
  2. 3
      assets/lang/fr.php
  3. 2
      index.php

3
assets/lang/en.php

@ -1,5 +1,6 @@
<?php
$lang = array(
'homeMenu' => 'Home menu'
'homeMenu' => 'Return to home',
'writeArticle' => 'Write an article'
);
?>

3
assets/lang/fr.php

@ -1,5 +1,6 @@
<?php
$lang = array(
'homeMenu' => 'Menu principal'
'homeMenu' => 'Menu principal',
'writeArticle' => 'Ecrire un article'
);
?>

2
index.php

@ -37,7 +37,7 @@ if(isset($_GET['page'])){
<body>
<h1><?php echo $config["title"]; ?></h1>
<p><?php echo $config["description"] ?></p>
<a href="?page=index"><?php echo isset($lang["homeMenu"])?$lang["homeMenu"]:"Return to home"; ?></a>
<a href="?page=index"><?php echo isset($lang["homeMenu"])?$lang["homeMenu"]:"Return to home"; ?></a> - <a href="?page=write"><?php echo isset($lang["writeArticle"])?$lang["writeArticle"]:"Write an article"; ?></a>
<hr />
<?php echo isset($content)?$content:'Content not found'; ?>
</body>