Skip to content

Commit 41144aa

Browse files
authored
Merge pull request #626 from topcoder-platform/issues-622
Issues-622:Added a sign up link in the left nav
2 parents 449acd4 + a337bdc commit 41144aa

File tree

1 file changed

+13
-6
lines changed
  • vanilla/applications/dashboard/views/modules

1 file changed

+13
-6
lines changed

vanilla/applications/dashboard/views/modules/guest.php

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,22 @@
1111

1212
if ($signInUrl) {
1313
echo '<div class="P">';
14-
1514
echo anchor(t('Login'), signInUrl($this->_Sender->SelfUrl), 'Button Primary SignIn BigButton'.(signInPopup() ? ' SignInPopup' : ''), ['rel' => 'nofollow']);
16-
// $Url = registerUrl($this->_Sender->SelfUrl);
17-
// if (!empty($Url)) {
18-
// echo ' '.anchor(t('Register', t('Apply for Membership', 'Register')), $Url, 'Button ApplyButton', ['rel' => 'nofollow']);
19-
// }
20-
2115
echo '</div>';
2216
}
17+
18+
$Url = registerUrl($this->_Sender->SelfUrl);
19+
if (!empty($Url)) {
20+
?>
21+
<p class="SignUpBlock">
22+
<span>Don't have an account?</span>
23+
<?php
24+
echo anchor(t('SIGN UP').sprite('SpArrowRight'), $Url, 'Button SignUp', ['rel' => 'nofollow']);
25+
?>
26+
</p>
27+
<?php
28+
}
29+
2330
?>
2431
<?php $this->fireEvent('AfterSignInButton'); ?>
2532
</div>

0 commit comments

Comments
 (0)