Skip to content
This repository was archived by the owner on Oct 29, 2020. It is now read-only.

Commit e49da20

Browse files
author
Joe Kent
committed
Merge pull request #4013 from deadlybutter/removeconditional
Removes profile link conditional
2 parents 3c50184 + afb539c commit e49da20

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

lib/themes/dosomething/paraneue_dosomething/templates/system/partials/navigation.tpl.php

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,12 @@
3131
<?php print $search_box; ?>
3232
</li>
3333
<?php if($logged_in): ?>
34-
<?php if( theme_get_setting('show_profile_link') ): ?>
35-
<li class="navigation__dropdown"><div class="navigation__dropdown-toggle"><i></i><p><?php print $user_identifier ?></p></div>
36-
<ul>
37-
<li><?php print l("My Account", 'user/'. $user->uid); ?></li>
38-
<li><a id="link--logout" href="<?php print $front_page; ?>user/logout"><?php print t('Log Out'); ?></a></li>
39-
</ul>
40-
</li>
41-
<?php else: ?>
42-
<li><a id="link--logout" href="<?php print $front_page; ?>user/logout"><?php print t('Log Out'); ?></a></li>
43-
<?php endif; ?>
34+
<li class="navigation__dropdown"><div class="navigation__dropdown-toggle"><i></i><p><?php print $user_identifier ?></p></div>
35+
<ul>
36+
<li><?php print l("My Account", 'user/'. $user->uid); ?></li>
37+
<li><a id="link--logout" href="<?php print $front_page; ?>user/logout"><?php print t('Log Out'); ?></a></li>
38+
</ul>
39+
</li>
4440
<?php else: ?>
4541
<li class="login"><a id="link--login" class="secondary-nav-item" href="<?php print $front_page; ?>user/login" data-modal-href="#modal--login"><?php print t('Log In'); ?></a></li>
4642
<?php endif; ?>

lib/themes/dosomething/paraneue_dosomething/theme-settings.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ function paraneue_dosomething_form_system_theme_settings_alter(&$form, &$form_st
4343
'#title' => t('Campaign Finder'),
4444
'#description' => t('Toggles campaign finder on homepage/expore campaigns page.')
4545
),
46-
'show_profile_link' => array(
47-
'#title' => t('User Profile Link'),
48-
'#description' => t('Toggles the user profile/create an account link in the main navigation.')
49-
),
5046
'show_sponsors' => array(
5147
'#title' => t('Show sponsors'),
5248
'#description' => t('Toggles the sponsors block on the home page when finder is enabled.')

0 commit comments

Comments
 (0)