diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2018-11-11 18:37:36 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2018-11-11 18:37:36 +0100 |
commit | 45903fe3960b65d63f70188640630c895dbbe222 (patch) | |
tree | ba0b0f9ba0615cd46214eeab236031c062664d6d /app/view | |
parent | d7f3313ff4514e38c9f53439cd1a1287e56e45f7 (diff) | |
download | wcms-45903fe3960b65d63f70188640630c895dbbe222.tar.gz wcms-45903fe3960b65d63f70188640630c895dbbe222.zip |
cleaning
Diffstat (limited to 'app/view')
-rw-r--r-- | app/view/templates/navart.php | 4 | ||||
-rw-r--r-- | app/view/templates/readart.php | 25 |
2 files changed, 2 insertions, 27 deletions
diff --git a/app/view/templates/navart.php b/app/view/templates/navart.php index b6a7219..469139d 100644 --- a/app/view/templates/navart.php +++ b/app/view/templates/navart.php @@ -53,10 +53,10 @@ div#dropmenu { <?php if($user->canedit() && $artexist) { ?> <li> - <a class="button" href="?id=<?=$art->id() ?>" target="_blank">display</a> + <a class="button" href="<?= $router->generate('artread/', ['art' => $art->id()]) ?>" target="_blank">display</a> </li> <li> - <a class="button" href="?id=<?=$art->id() ?>&aff=edit" >edit</a> + <a class="button" href="<?= $router->generate('artedit/', ['art' => $art->id()]) ?>" >edit</a> </li> <?php } ?> diff --git a/app/view/templates/readart.php b/app/view/templates/readart.php deleted file mode 100644 index e44877d..0000000 --- a/app/view/templates/readart.php +++ /dev/null @@ -1,25 +0,0 @@ -<script> -<?=$art->javascript() ?> -</script> - -<body> - -<header> -<?=$art->header()?> -</header> - -<nav> -<?=$art->nav()?> -</nav> - -<aside> -<?=$art->aside()?> -</aside> - -<section> -<?=$art->section()?> -</section> - -<footer> -<?=$art->footer()?> -</footer> |