<div class="side_bar">
  <ul>
    <li <?php if($this->uri->segment(1) == 'purchases_reviews'){ echo 'class="side_active"'; } ?>>
    	<a href="purchase-review">
      		<?php if($this->lang->line('purchases-review') != '') { echo stripslashes($this->lang->line('purchases-review')); } else echo "Purchases & Reviews"; ?>
      	</a>
    </li>
    <li <?php if($this->uri->segment(1) == 'public-profile'){ echo 'class="side_active"'; } ?>>
    	<a href="public-profile"><?php if($this->lang->line('user_pub_profile') != '') { echo stripslashes($this->lang->line('user_pub_profile')); } else echo "Public Profile"; ?></a>
        </li>
    <li <?php if($this->uri->segment(1) == 'settings' && $this->uri->segment(2) != 'giftcards'){ echo 'class="side_active"'; } ?>>
    	<a href="<?php echo 'settings/my-account/'.$this->session->userdata['shopsy_session_user_name'];?>">
			<?php if($this->lang->line('user_settings') != '') { echo stripslashes($this->lang->line('user_settings')); } else echo "Settings"; ?>
        </a>
     </li>
    <li <?php if($this->uri->segment(2) == 'giftcards'){ echo 'class="side_active"'; } ?>>
    	<a href="settings/giftcards">
        	<?php if($this->lang->line('giftcard_cards') != '') { echo stripslashes($this->lang->line('giftcard_cards')); } else echo "Gift Cards"; ?>
        </a>
    </li>
    <!--<li <?php if($this->uri->segment(1) == 'apps'){ echo 'class="side_active"'; } ?>><a href="javascript: void(0);"> Apps</a></li>--> 
    <!--<li <?php if($this->uri->segment(1) == 'prototypes'){ echo 'class="side_active"'; } ?>><a href="prototypes"> Prototypes</a></li>-->
    <li <?php if($this->uri->segment(1)=='manage-community'){ echo 'class="active"';} ?>>
    	<a href="manage-community" ><i class="ic-credit"></i>
        	<?php if($this->lang->line('user_community') != '') { echo stripslashes($this->lang->line('user_community')); } else echo "Community"; ?>
        </a>
    </li>
    <?php if($this->session->userdata['FBlogout']==''){ ?>
                        <li><a href="logout"><?php if($this->lang->line('sign_out') != '') { echo stripslashes($this->lang->line('sign_out')); } else echo 'Sign Out'; ?></a></li>
                        <?php }else{ ?>
                        <li><a href="<?php echo $this->session->userdata['FBlogout']; ?>"><?php if($this->lang->line('sign_out') != '') { echo stripslashes($this->lang->line('sign_out')); } else echo 'Sign Out'; ?></a></li>
                        <?php } ?>
    
    <!-- <li class="side_active"><a href="#">Teams</a></li>-->
  </ul>
</div>
