diff --git a/app/appConf/routes.php b/app/appConf/routes.php index db05b416..067bbce7 100644 --- a/app/appConf/routes.php +++ b/app/appConf/routes.php @@ -238,6 +238,14 @@ return [ 'action' => 'logout', 'controller' => DEFAULT_CONTROLLER, ], + 'increment' => [ + 'path' => '/{controller}/increment', + 'action' => 'increment', + 'verb' => 'post', + 'tokens' => [ + 'controller' => '[a-z_]+', + ], + ], 'update' => [ 'path' => '/{controller}/update', 'action' => 'update', diff --git a/app/bootstrap.php b/app/bootstrap.php index 1c1c224b..d949fc3d 100644 --- a/app/bootstrap.php +++ b/app/bootstrap.php @@ -35,7 +35,7 @@ use Zend\Diactoros\{Response, ServerRequestFactory}; // ----------------------------------------------------------------------------- // Setup DI container // ----------------------------------------------------------------------------- -return function (array $configArray = []) { +return function ($configArray = []) { $container = new Container(); // ------------------------------------------------------------------------- diff --git a/app/views/anime/edit.php b/app/views/anime/edit.php index 8dcd62b2..12f367e5 100644 --- a/app/views/anime/edit.php +++ b/app/views/anime/edit.php @@ -79,7 +79,9 @@   - + + + @@ -100,7 +102,9 @@ - + + + diff --git a/app/views/collection/cover.php b/app/views/collection/cover.php index 7441f79b..429754ab 100644 --- a/app/views/collection/cover.php +++ b/app/views/collection/cover.php @@ -9,9 +9,8 @@ $items): ?> type="radio" id="collection-tab-" name="collection-tabs" /> - +
-

diff --git a/app/views/collection/list.php b/app/views/collection/list.php index e0a1ab9a..3f87b152 100644 --- a/app/views/collection/list.php +++ b/app/views/collection/list.php @@ -10,9 +10,8 @@ $items): ?> type="radio" id="collection-tab-" name="collection-tabs"/> - +
-

diff --git a/app/views/main-menu.php b/app/views/main-menu.php index 647076f0..efc03916 100644 --- a/app/views/main-menu.php +++ b/app/views/main-menu.php @@ -43,6 +43,11 @@ $hasManga = stripos($_SERVER['REQUEST_URI'], 'manga') !== FALSE; [a($urlGenerator->defaultUrl('anime') . $extraSegment, 'Anime List') ?>] [a($urlGenerator->defaultUrl('manga') . $extraSegment, 'Manga List') ?>] + isAuthenticated()): ?> + + + + [a( @@ -51,24 +56,25 @@ $hasManga = stripos($_SERVER['REQUEST_URI'], 'manga') !== FALSE; ) ?>]isAuthenticated()): ?> -   - + a( + $url->generate('settings'), + 'Settings', + ['class' => 'bracketed'] + ) ?> + + + a( + $url->generate('logout'), + 'Logout', + ['class' => 'bracketed'] + ) ?> + + + + [a($url->generate('login'), "{$whose} Login") ?>] -   - - - isAuthenticated()): ?> - a( - $url->generate('logout'), - 'Logout', - ['class' => 'bracketed'] - ) ?> - - [a($url->generate('login'), "{$whose} Login") ?>] - -