Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
798a5fd
commit c1a96bc
Showing
5 changed files
with
64 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,21 @@ | ||
<?php | ||
/* | ||
* Short Description / title. | ||
* | ||
* Overview of what the file does. About a paragraph or two | ||
* | ||
* Copyright (c) 2010 Carl Sutton ( dogmatic69 ) | ||
* | ||
* @filesource | ||
* @copyright Copyright (c) 2010 Carl Sutton ( dogmatic69 ) | ||
* @link http://www.infinitas-cms.org | ||
* @package {see_below} | ||
* @subpackage {see_below} | ||
* @license http://www.opensource.org/licenses/mit-license.php The MIT License | ||
* @since {check_current_milestone_in_lighthouse} | ||
* | ||
* @author {your_name} | ||
* | ||
* Licensed under The MIT License | ||
* Redistributions of files must retain the above copyright notice. | ||
*/ | ||
/** | ||
* Logout element | ||
* | ||
* @copyright Copyright (c) 2010 Carl Sutton ( dogmatic69 ) | ||
* @link http://www.infinitas-cms.org | ||
* @package Infinitas.Users.View | ||
* @license http://www.opensource.org/licenses/mit-license.php The MIT License | ||
* @since 0.6a | ||
* | ||
* @author Carl Sutton <dogmatic69@infinitas-cms.org> | ||
*/ | ||
|
||
echo $this->Html->link( | ||
__('logout'), | ||
array( | ||
'plugin' => 'users', | ||
'controller' => 'users', | ||
'action' => 'logout' | ||
), | ||
array( | ||
'class' => 'niceLink' | ||
) | ||
); | ||
?> | ||
<div id="login-box"> | ||
<div class="siteLogout"> | ||
<?php | ||
echo sprintf(__('Welcome back to %s'), Configure::read('Website.name')); | ||
echo $this->Html->link(__('Logout'), array('plugin' => 'users', 'controller' => 'users', 'action' => 'logout'), array('class' => 'niceLink')); | ||
?> | ||
</div> | ||
<div class="login-links"> | ||
<?php | ||
echo $this->Html->link( | ||
__('Manage Your profile'), | ||
array( | ||
'plugin' => 'users', | ||
'controller' => 'users', | ||
'action' => 'view', | ||
AuthComponent::user('id') | ||
) | ||
), '<br/>', | ||
$this->Html->link( | ||
__('See whats going on'), | ||
array( | ||
'plugin' => 'feed', | ||
'controller' => 'feeds', | ||
'action' => 'index' | ||
) | ||
); | ||
?> | ||
</div> | ||
</div> | ||
echo $this->Html->tag('div', implode('', array( | ||
__d('users', 'Welcome, %s', $this->Html->tag('em', AuthComponent::user('prefered_name'))), | ||
$this->Html->link($this->Html->tag('i', '', array('class' => 'icon-remove-circle')), array( | ||
'plugin' => 'users', | ||
'controller' => 'users', | ||
'action' => 'logout' | ||
), array('escape' => false)) | ||
)), array('class' => 'pull-right welcome')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters