From 1ce0c238258c99bb56e45595197dd63dd1947b44 Mon Sep 17 00:00:00 2001 From: raylu Date: Sun, 3 Jul 2011 18:47:10 -0700 Subject: get rid of separate nav elements --- views/layouts/default.html.php | 43 ++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 41 insertions(+), 2 deletions(-) (limited to 'views/layouts') diff --git a/views/layouts/default.html.php b/views/layouts/default.html.php index b53d02a..bb918ce 100644 --- a/views/layouts/default.html.php +++ b/views/layouts/default.html.php @@ -27,16 +27,55 @@ use \lithium\security\Auth;
'/', + 'Anime' => '/anime', + 'Manga' => '/manga', + ); $user = Auth::check('default'); if ($user) { - echo $this->_render('element', 'authnav', compact('user')); + $links['Feed'] = '/users/feed'; + $links['Profile'] = '/users/feed'; + $links['Logout'] = '/logout'; } else { - echo $this->_render('element', 'normalnav', compact('user')); + $links['Sign up'] = '/users/signup'; + $links['Login'] = '#login'; + echo ' + '; } + echo ' + + '; ?> + + form->create(null, array('url' => '/search/index/anime', 'class' => 'search', 'method' => 'get')); ?> + form->text('search', array('value' => 'Search...', 'onFocus' => 'clearDefault(this)', 'style' => 'width: 200px')); ?> + + form->end(); ?> +
-- cgit v1.2.3