Skip to content

Issues-622:Added a sign up link in the left nav #626

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 28, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions vanilla/applications/dashboard/views/modules/guest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,22 @@

if ($signInUrl) {
echo '<div class="P">';

echo anchor(t('Login'), signInUrl($this->_Sender->SelfUrl), 'Button Primary SignIn BigButton'.(signInPopup() ? ' SignInPopup' : ''), ['rel' => 'nofollow']);
// $Url = registerUrl($this->_Sender->SelfUrl);
// if (!empty($Url)) {
// echo ' '.anchor(t('Register', t('Apply for Membership', 'Register')), $Url, 'Button ApplyButton', ['rel' => 'nofollow']);
// }

echo '</div>';
}

$Url = registerUrl($this->_Sender->SelfUrl);
if (!empty($Url)) {
?>
<p class="SignUpBlock">
<span>Don't have an account?</span>
<?php
echo anchor(t('SIGN UP').sprite('SpArrowRight'), $Url, 'Button SignUp', ['rel' => 'nofollow']);
?>
</p>
<?php
}

?>
<?php $this->fireEvent('AfterSignInButton'); ?>
</div>