<!-- wrapper -->
<div id="wrapper">
<?php /* 
<!-- Top Bar -->
<div id="topBar">
	<div class="container">

		<!-- right -->
		<ul class="top-links list-inline pull-right">
			<li class="text-welcome hidden-xs">Welcome to Smarty, <strong>John Doe</strong></li>
			<li>
				<a class="dropdown-toggle no-text-underline" data-toggle="dropdown" href="#"><i class="fa fa-user hidden-xs"></i> MY ACCOUNT</a>
				<ul class="dropdown-menu pull-right">
					<li><a tabindex="-1" href="#"><i class="fa fa-history"></i> ORDER HISTORY</a></li>
					<li class="divider"></li>
					<li><a tabindex="-1" href="#"><i class="fa fa-bookmark"></i> MY WISHLIST</a></li>
					<li><a tabindex="-1" href="#"><i class="fa fa-edit"></i> MY REVIEWS</a></li>
					<li><a tabindex="-1" href="#"><i class="fa fa-cog"></i> MY SETTINGS</a></li>
					<li class="divider"></li>
					<li><a tabindex="-1" href="#"><i class="glyphicon glyphicon-off"></i> LOGOUT</a></li>
				</ul>
			</li>
		</ul>

		<!-- left -->
		<ul class="top-links list-inline">
			<li class="hidden-xs"><a href="page-contact-1.html">CONTACT</a></li>
			<li>
				<a class="dropdown-toggle no-text-underline" data-toggle="dropdown" href="#"><img class="flag-lang" src="<?php echo site_url(); ?>assets/public/images/flags/us.png" width="16" height="11" alt="lang" /> ENGLISH</a>
				<ul class="dropdown-langs dropdown-menu">
					<li><a tabindex="-1" href="#"><img class="flag-lang" src="<?php echo site_url(); ?>assets/public/images/flags/us.png" width="16" height="11" alt="lang" /> ENGLISH</a></li>
					<li class="divider"></li>
					<li><a tabindex="-1" href="#"><img class="flag-lang" src="<?php echo site_url(); ?>assets/public/images/flags/de.png" width="16" height="11" alt="lang" /> GERMAN</a></li>
					<li><a tabindex="-1" href="#"><img class="flag-lang" src="<?php echo site_url(); ?>assets/public/images/flags/ru.png" width="16" height="11" alt="lang" /> RUSSIAN</a></li>
					<li><a tabindex="-1" href="#"><img class="flag-lang" src="<?php echo site_url(); ?>assets/public/images/flags/it.png" width="16" height="11" alt="lang" /> ITALIAN</a></li>
				</ul>
			</li>
			<li>
				<a class="dropdown-toggle no-text-underline" data-toggle="dropdown" href="#">USD</a>
				<ul class="dropdown-langs dropdown-menu">
					<li><a tabindex="-1" href="#">USD</a></li>
					<li class="divider"></li>
					<li><a tabindex="-1" href="#">EUR</a></li>
					<li><a tabindex="-1" href="#">GBP</a></li>
				</ul>
			</li>
		</ul>

	</div>
</div>
<!-- /Top Bar -->
*/ ?>

<!-- 
	AVAILABLE HEADER CLASSES

	Default nav height: 96px
	.header-md 		= 70px nav height
	.header-sm 		= 60px nav height

	.noborder 		= remove bottom border (only with transparent use)
	.transparent	= transparent header
	.translucent	= translucent header
	.sticky			= sticky header
	.static			= static header
	.dark			= dark header
	.bottom			= header on bottom
	
	shadow-before-1 = shadow 1 header top
	shadow-after-1 	= shadow 1 header bottom
	shadow-before-2 = shadow 2 header top
	shadow-after-2 	= shadow 2 header bottom
	shadow-before-3 = shadow 3 header top
	shadow-after-3 	= shadow 3 header bottom

	.clearfix		= required for mobile menu, do not remove!

	Example Usage:  class="clearfix sticky header-sm transparent noborder"
-->
<div id="header" class="sticky shadow-after-3 clearfix">

	<!-- TOP NAV -->
	<header id="topNav">
		<div class="container">

			<!-- Mobile Menu Button -->
			<button class="btn btn-mobile" data-toggle="collapse" data-target=".nav-main-collapse">
				<i class="fa fa-bars"></i>
			</button>

			<!-- BUTTONS -->
			<ul class="pull-right nav nav-pills nav-second-main">

				<!-- QUICK SHOP CART -->
				<li class="">
					<?php if(getUserId()): ?>
                    <a href="<?php print site_url(); ?>login/logout">
						<i class="fa fa-sign-out"></i> התנתק
					</a>
                    <?php else: ?>
                    <a href="<?php print site_url(); ?>login">
						<i class="fa fa-sign-in"></i> התחבר
					</a>
                    <?php endif; ?>
				</li>
				<!-- /QUICK SHOP CART -->

			</ul>
			<!-- /BUTTONS -->

            <!-- BUTTONS -->
			<ul class="pull-right nav nav-pills nav-second-main text-center hidden-xs">

                <?php if(getUserId()): ?>
                <li class=""><!-- HOME -->
					<a class="" href="<?php print site_url();?>login">
						&nbsp;&nbsp;ניהול לידים
					</a>
				</li>
                <?php endif; ?>

			</ul>
			<!-- /BUTTONS -->
            
            <!-- BUTTONS -->
			<ul class="pull-right nav nav-pills nav-second-main hidden-xs" style="border-right: none;">

				<!-- QUICK SHOP CART -->
				<li class="">
					<?php if(getUserId()): ?>
                    <?php print 'שלום '.getUserName(getUserId()); ?>
                    <?php else: ?>
                    ברוך הבא
                    <?php endif; ?>
				</li>
				<!-- /QUICK SHOP CART -->

			</ul>
			<!-- /BUTTONS -->            
                        
			<!-- Logo -->
			<a class="logo pull-left" href="<?php print site_url(); ?>">
                            <img src="<?php echo site_url(); ?>assets/public/images/LeadMeCMS_logo_small.png" alt="" style="height: 50px;" />
			</a>
            
						<!-- 
							Top Nav 
							
							AVAILABLE CLASSES:
							submenu-dark = dark sub menu
						-->
						<div class="navbar-collapse nav-main-collapse collapse margin-right-30">
							<nav class="nav-main">

								<!--
									NOTE
									
									For a regular link, remove "dropdown" class from LI tag and "dropdown-toggle" class from the href.
									Direct Link Example: 

									<li>
										<a href="#">HOME</a>
									</li>
								-->
								<ul id="topMain" class="nav nav-pills nav-main">									
                                    <?php if(!getUserId()): ?>
                                    <li id="li_register" class="active">
										<a class="" href="<?php print site_url();?>register">
                                            מערכת לניהול לידים חינם!
										</a>
									</li>                                        
                                    <?php endif; ?>                                    
                                    <!--
                                    <li id="li_newCampaign" class="">
										<a class="" href="<?php print site_url();?>main/newCampaign">
											פרסם קמפיין
										</a>
									</li>
                                    -->
									<li id="li_about" class="">
										<a class="" href="<?php print site_url();?>main/aboutUs">
											אודותנו
										</a>
									</li>
                                    <li class="li_contact">
										<a class="" href="<?php print site_url();?>main/contact">
											צור קשר
										</a>
									</li>
								</ul>

							</nav>
						</div>
                                                

		</div>
	</header>
	<!-- /Top Nav -->

</div>
<script>

$(document).ready(function() {
    
    var url = document.URL;
    if(url.search('register') != -1) {
        $('#topMain > li').removeClass('active');
        $('#li_register').addClass('active');
    } else if(url.search('newCampaign') != -1) {
        $('#topMain > li').removeClass('active');
        $('#li_newCampaign').addClass('active');
    } else if(url.search('aboutUs') != -1) {
        $('#topMain > li').removeClass('active');
        $('#li_about').addClass('active');
    } else if(url.search('contact') != -1) {
        $('#topMain > li').removeClass('active');
        $('#li_contact').addClass('active');        
    } else {
        $('#topMain > li').removeClass('active');
    }
    
});




</script>
<style>
#topMain.nav-pills>li.active>a { font-weight: 600; }
</style>