From 03685416017163d38f4ef1239ca50df1e38a242a Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sun, 29 Apr 2018 12:08:02 +0200 Subject: Add some links with ?p= --- tpl/account/list.php | 4 ++-- tpl/blog/drafts.php | 22 +++++++++++----------- tpl/blog/index.php | 14 +++++++------- tpl/blog/view.php | 12 ++++++------ tpl/general/top.php | 4 ++-- tpl/notes/edit.php | 2 +- tpl/notes/inc_relativestree.php | 8 ++++---- tpl/notes/move.php | 4 ++-- tpl/notes/new.php | 2 +- tpl/notes/user.php | 6 +++--- tpl/notes/view.php | 10 +++++----- 11 files changed, 44 insertions(+), 44 deletions(-) diff --git a/tpl/account/list.php b/tpl/account/list.php index a97606f..9a6dd42 100644 --- a/tpl/account/list.php +++ b/tpl/account/list.php @@ -9,12 +9,12 @@ echo "UsernameNotebookBlog"; foreach($users as $u) { echo '' . $u['name'] . ''; if ($u['nbNotes'] > 0) { - echo '' . $u['nbNotes'] . ' notes'; + echo '' . $u['nbNotes'] . ' notes'; } else { echo 'no notes'; } if ($u['nbPosts'] > 0) { - echo '' . $u['nbPosts'] . ' posts'; + echo '' . $u['nbPosts'] . ' posts'; } else { echo 'no posts'; } diff --git a/tpl/blog/drafts.php b/tpl/blog/drafts.php index 6e18a6c..e1cc3c1 100644 --- a/tpl/blog/drafts.php +++ b/tpl/blog/drafts.php @@ -5,7 +5,7 @@ $title = "Mes articles"; require("tpl/general/top.php"); echo '
'; -echo 'écrire un article
'; +echo 'écrire un article'; echo '

Mes brouillons

'; @@ -14,17 +14,17 @@ if (count($drafts) > 0) { foreach ($drafts as $post) { /*echo '
'; echo '
'; - echo 'edit'; - echo ' | delete'; - echo ' | publish'; + echo 'edit'; + echo ' | delete'; + echo ' | publish'; echo '
'; echo '

' . $post['title'] . '

'; echo $post['text_html']; echo '
';*/ - echo '' . $post['title'] . ''; - echo 'modifier'; - echo ' | supprimer'; - echo ' | publier'; + echo '' . $post['title'] . ''; + echo 'modifier'; + echo ' | supprimer'; + echo ' | publier'; } echo ''; } else { @@ -36,9 +36,9 @@ echo '

Mes articles publiés

'; if (count($pub) > 0) { echo ''; foreach ($pub as $post) { - echo ''; - echo ''; + echo ''; + echo ''; } echo '
TitreActions
' . $post['title'] . 'modifier'; - echo ' | supprimer
' . $post['title'] . 'modifier'; + echo ' | supprimer
'; } else { diff --git a/tpl/blog/index.php b/tpl/blog/index.php index b2d6f93..f68c57c 100644 --- a/tpl/blog/index.php +++ b/tpl/blog/index.php @@ -3,8 +3,8 @@ require("tpl/general/top.php"); if ($can_post) { echo '
'; - echo 'écrire un article'; - echo ' | brouillons'; + echo 'écrire un article'; + echo ' | brouillons'; echo '
'; } @@ -16,12 +16,12 @@ if(count($posts) == 0) { } else { echo ''; foreach ($posts as $post) { - echo '
DateAuteur
' . $post['title'] . '
'; + echo '
' . $post['title'] . '
'; $k = array(); if ($can_edit && $post['owner_id'] == $user['id']) - $k[] = 'modifier'; + $k[] = 'modifier'; if ($can_delete && $post['owner_id'] == $user['id']) - $k[] = 'supprimer'; + $k[] = 'supprimer'; echo implode(' | ', $k); echo '
'; if ($post['tags'] != ''){ @@ -47,14 +47,14 @@ foreach ($fa as $kname => $kdata) { foreach ($fvalues as $k => $v) { if ($k != $kname) $n[] = "$k-$v"; } - echo 'remove filtering

'; + echo 'remove filtering

'; } else { echo ''; } 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 '
'; echo 'Écrit par ' . $post['owner']; if ($can_edit && $post['owner_id'] == $user['id']) - echo ' | modifier'; + echo ' | modifier'; if ($can_delete && $post['owner_id'] == $user['id']) - echo ' | supprimer'; + echo ' | supprimer'; if ($can_comment && !$is_draft) - echo ' | commenter'; + echo ' | commenter'; if ($is_draft) - echo ' | publier'; + echo ' | publier'; echo '
'; echo '
publié le ' . $post['date'] . '
'; if ($post['tags'] != '') { @@ -31,9 +31,9 @@ if (!$is_draft) { foreach ($comments as $comment) { echo '
'; $a = array(); - if ($can_delcom) $a[] = 'supprimer'; + if ($can_delcom) $a[] = 'supprimer'; if ($can_comment && $comment['author_id'] == $user['id']) - $a[] = 'modifier'; + $a[] = 'modifier'; if (count($a) > 0) echo '
' . implode(" | ", $a) . '
'; diff --git a/tpl/general/top.php b/tpl/general/top.php index f9ef6d8..792323e 100644 --- a/tpl/general/top.php +++ b/tpl/general/top.php @@ -23,7 +23,7 @@ global $user, $apps; //These might be hidden because this page is called from sq
InscriptionConnexion'; + echo 'InscriptionConnexion'; } else { echo 'Déconnexion (' . $user['name'] . ')'; } @@ -34,7 +34,7 @@ if ($user['id'] == 0) { Blog'; - echo 'bloc-notes'; + echo 'bloc-notes'; echo 'fichiers'; } ?> diff --git a/tpl/notes/edit.php b/tpl/notes/edit.php index 54f5157..2cf7fbf 100644 --- a/tpl/notes/edit.php +++ b/tpl/notes/edit.php @@ -2,7 +2,7 @@ require("tpl/general/top.php"); -echo ''; +echo ''; require("tpl/general/inc_form.php"); diff --git a/tpl/notes/inc_relativestree.php b/tpl/notes/inc_relativestree.php index 295e552..01cb956 100644 --- a/tpl/notes/inc_relativestree.php +++ b/tpl/notes/inc_relativestree.php @@ -23,7 +23,7 @@ for($id = $note['id']; $id != 0; $id = $notes_parents[$id]) { echo '
'; echo '

' . $note['ownername'] . '


'; -echo ''; +echo ''; function n_tree_branch($id) { global $notest, $note, $can_new; @@ -32,18 +32,18 @@ function n_tree_branch($id) { if ($branch['id'] == $note['id']) echo '

' . $branch['title'] . '

'; else - echo '

' . $branch['title'] . '

'; + echo '

' . $branch['title'] . '

'; if (isset($notest[$branch['id']])) { echo '
'; n_tree_branch($branch['id']); echo '
'; } else if ($can_new && $branch['id'] == $note['id']) { echo '
'; - if ($can_new) echo '

+ nouvelle note

'; + if ($can_new) echo '

+ nouvelle note

'; echo '
'; } } - if ($can_new) echo '

+ nouvelle note

'; + if ($can_new) echo '

+ nouvelle note

'; } echo '
'; diff --git a/tpl/notes/move.php b/tpl/notes/move.php index 985b89a..69882a1 100644 --- a/tpl/notes/move.php +++ b/tpl/notes/move.php @@ -4,12 +4,12 @@ require("tpl/general/top.php"); function f($n) { global $note; - return $n['title'] . ' - déplacer ici'; + return $n['title'] . ' - déplacer ici'; } require("tpl/general/inc_tree.php"); tree($notes_tree, @f); -echo 'déplacer à la racine'; +echo 'déplacer à la racine'; $can_new = false; require("tpl/notes/inc_relativestree.php"); diff --git a/tpl/notes/new.php b/tpl/notes/new.php index ca17f21..7ef6a59 100644 --- a/tpl/notes/new.php +++ b/tpl/notes/new.php @@ -3,7 +3,7 @@ require("tpl/general/top.php"); if (isset($parent)) { - echo '
back to ' . + echo ''; } diff --git a/tpl/notes/user.php b/tpl/notes/user.php index 06099ac..9a1ef0b 100644 --- a/tpl/notes/user.php +++ b/tpl/notes/user.php @@ -3,13 +3,13 @@ $title = "Bloc-notes de " . $note_owner['name'] ; require("tpl/general/top.php"); function f($n) { - return '' . $n['title'] . ''; + return '' . $n['title'] . ''; } require("tpl/general/inc_tree.php"); tree($notes_tree, @f); if ($note_owner['id'] == $user['id']) { - echo 'nouvelle note'; + echo 'nouvelle note'; } echo '
'; @@ -19,7 +19,7 @@ foreach($users as $u) { if ($u['id'] == $userid) { echo '
  • ' . $u['name'] . ' (' . $u['nbNotes'] . ' notes)
  • '; } else { - echo '
  • ' . $u['name'] . ' (' . $u['nbNotes'] . ' notes)
  • '; + echo '
  • ' . $u['name'] . ' (' . $u['nbNotes'] . ' notes)
  • '; } } echo ""; diff --git a/tpl/notes/view.php b/tpl/notes/view.php index 559c39e..e5838b6 100644 --- a/tpl/notes/view.php +++ b/tpl/notes/view.php @@ -4,12 +4,12 @@ require("tpl/general/top.php"); $t = array(); if ($note['parent_id'] != 0) { - $t[] = 'parent : ' . $note['parent_title'] . ''; + $t[] = 'parent : ' . $note['parent_title'] . ''; } -if ($can_edit) $t[] = 'modifier'; -$t[] = 'code source'; -if ($can_move) $t[] = 'déplacer'; -if ($can_delete) $t[] = 'supprimer'; +if ($can_edit) $t[] = 'modifier'; +$t[] = 'code source'; +if ($can_move) $t[] = 'déplacer'; +if ($can_delete) $t[] = 'supprimer'; echo '
    ' . implode(' | ', $t) . '
    '; echo $note['html']; -- cgit v1.2.3