<div class="top_bar">
<div class="container">
<div class="col-md-8">
<i class="fa fa-user"></i>
<?php if($email==''){?>  <a href="<?php echo site_url('User/register') ;?>" class="to_lin">Register</a> <?php } 
else { ?> <a href="<?php echo base_url('Userpage/vieworders') ;?>"><?=$email?></a> <?php } ?>
<?php if($email==''){?><i class="fa fa-chevron-circle-right"></i> <a href="<?php echo site_url('User/login') ;?>"  class="to_lin" >Login</a> <?php }
 else {?><i class="fa fa-chevron-circle-left"></i><a href="<?php echo site_url('Basic_functions/user_logout/') ; ?>">Log Out</a> <?php }?>
<i class="fa fa-shopping-cart"></i><a href="<?php echo site_url('cart');?>"  class="to_lin" >Shopping Cart (<?=$cart_qty?>)</a></div>
<div class="col-md-4">
<img src="<?php echo base_url('assets/web_images/social.jpg');?>" alt="jeemootha-social">

</div>
</div>
</div>