Skip to content
Browse files

Adding plugin override view for login page, allowing login hint to be…

… displayed above login form, instead of in side bar.
  • Loading branch information...
1 parent a23cf99 commit b79c43cb49c92048e26cb9dc135ca0779c8b354e @markstory markstory committed Jan 21, 2010
View
2 views/elements/login_hint.ctp
@@ -1,4 +1,4 @@
<div class="context-menu">
<h4><?php __('Login with your Bakery account') ?></h4>
-<p><?php echo sprintf(__('Not got one? Hop on over to %s and sign up', true), $html->link('The Bakery', 'http://bakery.cakephp.org'))?></p>
+<p><?php echo sprintf(__('Don\'t have one? Hop on over to %s and sign up', true), $html->link('The Bakery', 'http://bakery.cakephp.org'))?></p>
</div>
View
4 views/elements/side_menu.ctp
@@ -1,7 +1,5 @@
<?php
-if ($this->name == 'Users') {
- echo $this->element('login_hint');
-}
+
$sections = $menu->sections();
if (!$this->name && !empty($this->data['Node'])) {
// rendered from cache
View
4 views/layouts/default.ctp
@@ -149,11 +149,9 @@ echo $html->meta('keywords',
echo $this->element('toc');
}
?>
- <?php echo $html->image('cakefest2009.png', array(
- 'id' => 'cakefest', 'url' => 'http://cakefest.org', 'alt' => 'CakeFest #3: July 9-12 2009 Berlin!')); ?>
<cake:nocache>
<?php echo $this->element('side_menu'); ?>
- </cake:nocache>
+ </cake:nocache>
</div>
<div id="body">
<?php echo $this->element('crumbs'); ?>
View
6 views/plugins/users/users/login.ctp
@@ -0,0 +1,6 @@
+<?php
+
+echo $this->element('login_hint');
+include(APP . 'plugins/users/views/users/login.ctp');
+
+?>

0 comments on commit b79c43c

Please sign in to comment.
Something went wrong with that request. Please try again.