Sign in after Sign out

Permalink
Alright,

I created my own theme to test with last night. I was just messing around and clicked the sign out button. However, my theme does not have the sign in block at the bottom or anywhere. Is there some code I can put in place to handle logging in to get to the edit bar at the top of the page?

I tried going to sitename.com/login but there is not folder named this in my install.

 
chunksmurray replied on at Permalink Reply
chunksmurray
If you look in one of the default themes, there is some code in the footer to do this:

<?php 
         $u = new User();
         if ($u->isRegistered()) { ?>
            <?php  
            if (Config::get("ENABLE_USER_PROFILES")) {
               $userName = '<a href="' . $this->url('/profile') . '">' . $u->getUserName() . '</a>';
            } else {
               $userName = $u->getUserName();
            }
            ?>
            <span class="sign-in"><?php echo t('Currently logged in as <b>%s</b>.', $userName)?> <a href="<?php echo $this->url('/login', 'logout')?>"><?php echo t('Sign Out')?></a></span>
         <?php  } else { ?>
            <span class="sign-in"><a href="<?php echo $this->url('/login')?>"><?php echo t('Login')?></a></span>
         <?php  } ?>

Alternatively, you can use the login block from the marketplace.

Hopefully that helps!
Mnkras replied on at Permalink Reply
Mnkras
or you cann just go to

site.com/index.php/login
denisegsi replied on at Permalink Reply
Thank you! I removed the 'sign in' and was glad to find this!