How to add custom login logout links in Bootstrap theme? I am new to drupal, but I had a requirement, my current site using bootstrap theme. Previously there was no login and logout buttons on header. Today I got html login and logout strip from desinger. For this I have created a new block and selected bootstrap region as Navigation. Now this custom header perfectly sits at the top of the page. with static Myaccout, Logout , contactus  which are sent by desinger.

&lt;div class="navbar navbar-inverse navbar-fixed-top" role="navigation"&gt;
  &lt;div class="container"&gt;
    &lt;div class="navbar-header"&gt;
      &lt;button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"&gt;
        &lt;span class="sr-only"&gt;Toggle navigation&lt;/span&gt;
        &lt;span class="icon-bar"&gt;&lt;/span&gt;
        &lt;span class="icon-bar"&gt;&lt;/span&gt;
        &lt;span class="icon-bar"&gt;&lt;/span&gt;
      &lt;/button&gt;
     &lt;/div&gt;
    &lt;div class="navbar-collapse collapse"&gt;
      &lt;ul class="nav navbar-nav"&gt;
        &lt;li class="active"&gt;&lt;a href="#"&gt;Navigator&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;Contact Us&lt;/a&gt;&lt;/li&gt;

          &lt;/ul&gt;
          &lt;ul class="nav navbar-nav navbar-right"&gt; 
&lt;li&gt; &lt;a href="#"&gt;My Account &lt;/a&gt;&lt;/li&gt;
 &lt;li&gt; &lt;a href="#"&gt;Log Out &lt;/a&gt;&lt;/li&gt;
 &lt;/ul&gt;    
        &lt;/li&gt;
      &lt;/ul&gt;
    &lt;/div&gt;&lt;!--/.nav-collapse --&gt;
  &lt;/div&gt;
&lt;/div&gt;


But my question how to make that header dynamic like when user with out login need to show Login , and after login need to show myaccount and logout. Above code is the static html bootstrap header sent by desinger. Please suggest me how to do this?
It can be done this way

&lt;ul class="nav navbar-nav navbar-right"&gt; 
&lt;?php
global $user; 
 if($user-&gt;uid):?&gt;
&lt;li&gt; &lt;a href="#"&gt;My Account &lt;/a&gt;&lt;/li&gt;
&lt;li&gt; &lt;a href="#"&gt;Log Out &lt;/a&gt;&lt;/li&gt;
&lt;?php else: ?&gt;
&lt;li&gt; &lt;a href="/user"&gt;Log in&lt;/a&gt;&lt;/li&gt;
&lt;?php endif; ?&gt;
&lt;/ul&gt;


Hope it will help