  	<div class="toggle-bar"><a class="tb-toggle" href="#"></a></div>
    <div class="wrapper{php} if(function_exists( 'ot_get_option' ) && ot_get_option('whmcs')=="on"){
			echo ' barvisible';
		}{/php}" id="topbar">
    	<div class="container">
        	<ul>
            	{php} if(function_exists( 'ot_get_option' ) && ot_get_option('show_support_dropdown')=="on"){ {/php}
            	<li><a href="#" class="dropdown-toggle dropdown-bottom" data-toggle="supportbox"><span class="glyphicon glyphicon-headphones"></span> Support</a>
                	<div class="hiddenbox" id="supportbox">
                    	{php} if(function_exists( 'ot_get_option' ) && ot_get_option('show_live_support_link')=="on"){ {/php}	
						<div class="livesupport"><a href="{php}echo ot_get_option('live_support_link_url');{/php}"><img alt="alt" src="{php} echo get_template_directory_uri(); {/php}/images/icons/livesupport.png">{php} echo ot_get_option('live_support_link');{/php}</a></div>
                        {php} }{/php}
                        <div class="row-fluid">
                       		 {php} wp_nav_menu( array('container' => '','menu' => 'support-links')); {/php}
                        </div>
                    </div>
                </li>
                {php} }{/php}
                {php} if(!isset($_SESSION['uid'])){{/php}
                {php} if(function_exists( 'ot_get_option' ) && ot_get_option('show_log_in')=="on"){ {/php}
                <li><a href="#" class="dropdown-toggle dropdown-bottom" data-toggle="signinbox"><span class="glyphicon glyphicon-lock"></span> {php}echo ot_get_option('log_in_text');{/php}</a>
                	<div class="hiddenbox" id="signinbox">
                  {php}echo ot_get_option('log_in_html');{/php}
                    </div>
                </li>
                {php} } {/php}
                {php} if(function_exists( 'ot_get_option' ) && ot_get_option('show_register_link')=="on"){ {/php}
                <li><a href="{php} echo ot_get_option('register_url') {/php}"><span class="glyphicon glyphicon-user"></span> {php}echo ot_get_option('register_text');{/php}</a></li>
                {php} } {/php}
                {php} }else{{/php}
                {php} if(function_exists( 'ot_get_option' ) && ot_get_option('client_area_link')=="on"){ {/php}
                <li><a href="{php} echo ot_get_option('client_area_url'); {/php}"><span class="glyphicon glyphicon-lock"></span> {php}echo ot_get_option('client_area_text');{/php}</a></li>
                {php} } {/php}
                {php} if(function_exists( 'ot_get_option' ) && ot_get_option('show_log_out')=="on"){ {/php}
                <li><a href="{php} echo ot_get_option('log_out_url'); {/php}"><span class="glyphicon glyphicon-lock"></span> {php}echo ot_get_option('log_out_text');{/php}</a></li>
                {php} } {/php}
                {php} } {/php}
                
            </ul>
            <ul class="toright">
            	{php} if(function_exists( 'ot_get_option' ) && ot_get_option('show_cart_link')=="on"){ {/php}
            	<li><a href="{php} echo ot_get_option('cart_text_url'); {/php}"><span class="fa fa-shopping-cart"></span> {php}echo ot_get_option('cart_text');{/php}</a></li>
                {php} } {/php}
                {php} 
				 $actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
				 if (strpos($actual_link,ot_get_option( 'whmcs_url' )) !== false) {
					 $actual_link = explode("?", $actual_link);
						$linkstart =  $actual_link[0];
				 }else{
					 $linkstart =  ot_get_option( 'whmcs_url' )."/clientarea.php";
				 }
				 {/php}
                 {php} if(function_exists( 'ot_get_option' ) && ot_get_option('show_language_select')=="on"){ {/php}
                <li>
                	{if $langchange}{$setlanguage}{/if}
                </li>
                {php} } {/php}
            </ul>
        </div>
    </div>