How to add custom login logout links in Bootstrap theme?
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