diff options
author | Alex Auvolat <alex@adnab.me> | 2018-04-29 12:08:02 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2018-04-29 12:08:02 +0200 |
commit | 03685416017163d38f4ef1239ca50df1e38a242a (patch) | |
tree | e6801bff28301e17ebb27812bc68c5cd6631d158 /tpl/blog/view.php | |
parent | c69c046ff936c1853fb5bf10a5203ec30609d248 (diff) | |
download | Bits-03685416017163d38f4ef1239ca50df1e38a242a.tar.gz Bits-03685416017163d38f4ef1239ca50df1e38a242a.zip |
Add some links with ?p=update
Diffstat (limited to 'tpl/blog/view.php')
-rw-r--r-- | tpl/blog/view.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tpl/blog/view.php b/tpl/blog/view.php index fc4107d..e453a19 100644 --- a/tpl/blog/view.php +++ b/tpl/blog/view.php @@ -7,13 +7,13 @@ require("tpl/general/top.php"); echo '<div class="small_align_right">'; echo 'Écrit par ' . $post['owner']; if ($can_edit && $post['owner_id'] == $user['id']) - echo ' | <a href="edit-blog-' . $post['id'] . '">modifier</a>'; + echo ' | <a href="?p=edit-blog-' . $post['id'] . '">modifier</a>'; if ($can_delete && $post['owner_id'] == $user['id']) - echo ' | <a href="delete-blog-' . $post['id'] . '">supprimer</a>'; + echo ' | <a href="?p=delete-blog-' . $post['id'] . '">supprimer</a>'; if ($can_comment && !$is_draft) - echo ' | <a href="comment-blog-' . $post['id'] . '">commenter</a>'; + echo ' | <a href="?p=comment-blog-' . $post['id'] . '">commenter</a>'; if ($is_draft) - echo ' | <a href="publish-blog-' . $post['id'] . '">publier</a>'; + echo ' | <a href="?p=publish-blog-' . $post['id'] . '">publier</a>'; echo '</div>'; echo '<div class="small_align_right">publié le ' . $post['date'] . '</div>'; if ($post['tags'] != '') { @@ -31,9 +31,9 @@ if (!$is_draft) { foreach ($comments as $comment) { echo '<div class="blog_post">'; $a = array(); - if ($can_delcom) $a[] = '<a href="delcom-blog-' . $comment['id'] . '">supprimer</a>'; + if ($can_delcom) $a[] = '<a href="?p=delcom-blog-' . $comment['id'] . '">supprimer</a>'; if ($can_comment && $comment['author_id'] == $user['id']) - $a[] = '<a href="edcom-blog-' . $comment['id'] . '">modifier</a>'; + $a[] = '<a href="?p=edcom-blog-' . $comment['id'] . '">modifier</a>'; if (count($a) > 0) echo '<div class="small_right">' . implode(" | ", $a) . '</div>'; |