<?php global $smof_data , $post , $current_user; ?>
    
    <div class="topmembersArea">
    <?php  if (!(current_user_can('edit_posts'))){ ?>
    <?php
	$user			= get_userdata( $current_user->ID );
	$first_name		= esc_attr( $user->first_name );
	?>
<div class="membersArea " id="wppb_login">
      <div class="container">
        <form action="<?php echo home_url(); ?>/wp-login.php" method="post" class="topAreaLoginform row" novalidate>
          <p class="loginFormInputs span6">
            <input type="text" name="log" id="log" class="required" placeholder="<?php _e( 'Username' , 'lioit' ) ?>" value="<?php echo esc_html(stripslashes($user_login), 1) ?>">
            <input type="password" name="pwd" id="pwd" placeholder="<?php _e( 'Password' , 'lioit' ) ?>" class="required">
          </p>
          <!-- .loginFormInputs -->
          
          
          <p class="login-form-submit span2"> <span class="login-form-remember">
            <input class="remember-me checkbox" name="rememberme" id="rememberme" type="checkbox" checked="checked" value="forever">
            <label for="remember-me">
              <?php _e("Remember Me","lioit"); ?>
            </label>
            
            </span>
            
            <input type="hidden" name="action" value="log-in">
            
          <input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>" />
          </p>
          <!-- .form-submit -->
          
          <div class="newAccount span4">
          	<button type="submit" class="btn btn-primary btn-large">
            <i class="icon-signin"></i><span><?php _e("Sign in","lioit"); ?></span>
            </button>
          	<a href="#" class="btn topForgotBtn"><i class="icon-question"></i>
				<span><?php _e("Forgot Password","lioit"); ?></span>
            </a>
            <a href="<?php $register_page = get_register_page_link($post->ID);   echo $register_page; ?>" class="btn topRigsterBtn"><i class="icon-user"></i>
              <span><?php _e("New Account","lioit"); ?></span>
            </a>
          </div><!--End newAccount-->
        </form>
        <!-- .sign-in --> 
     
        </div>
      <!--End container--> 
    </div>
    <!--End topAreaLogin-->
    <?php  } else { ?>
    <div class="membersArea membersArealogin">
      <div class="container">
        <div class="mainUserAreaDetails">
          <div class="topAreaTitle loginedTitle">
            <div class="topAreaTitleavatar"><?php echo get_avatar( $user_ID, $size = '45'); ?></div>
            <h6>
              <?php _e("Welcome ","lioit"); ?>
              <?php global $current_user;
                                  get_currentuserinfo();
                                  echo ' ' . $current_user->display_name . "\n";
                            ?>
              <?php
                            ?>
            </h6>
            <a href="<?php $profile_page = get_profile_page_link($post->ID);   echo $profile_page; ?>" title="<?php _e("Edit My Profile","lioit"); ?>" class="tooltip bottom">
            <span><?php _e("Edit My Profile","lioit"); ?></span>
            </a> </div>
          <ul>
            <li><a href="<?php $url = admin_url(); echo $url; ?>" title="<?php _e("Dashboard","lioit"); ?>" class="tooltip bottom"><i class="icon-reorder"></i>
              <span><?php _e("Dashboard","lioit"); ?></span>
              </a></li>
            <li><a href="<?php $posts_page = get_posts_page_link($post->ID);echo $posts_page; ?>" title="<?php _e("Posts","lioit"); ?>" class="tooltip bottom"><i class="icon-file-alt"></i>
              <span><?php _e("Posts","lioit"); ?> <span class="userAreaCount"><?php echo  count_user_posts($post->ID); ?></span></span>
              </a></li>
            <li><a href="<?php $submit_page = get_submit_page_link($post->ID);   echo $submit_page; ?>" title="<?php _e("Add Post","lioit"); ?>" class="tooltip bottom"><i class="icon-edit"></i>
              <span><?php _e("Add Post","lioit"); ?></span>
              </a></li>
            <li><a href="" title="<?php _e("Profile","lioit"); ?>" class="tooltip bottom"><i class="icon-user"></i>
              <span><?php _e("Profile","lioit"); ?></span>
              </a></li>
            <li><a href="<?php echo wp_logout_url( home_url() ); ?>" title="<?php _e("Log Out","lioit"); ?>" class="tooltip bottom"><i class="icon-signin"></i>
              <span><?php _e("Log Out","lioit"); ?></span>
              </a></li>
          </ul>
        </div>
        <!--End UserDetails--> 
      </div>
      <!--End membersArea--> 
    </div>
    <?php } ?>
    
    </div><!--End topmembersArea-->
<div id="overlay" class="hide-for-small">
  <div class="overlay-container" style="display: none;">
    <?php global $smof_data; ?>
    <?php  if (!(current_user_can('edit_posts'))){ ?>
    <?php
	$user			= get_userdata( $current_user->ID );
	$first_name		= esc_attr( $user->first_name );
	?>
    <div class="membersArea" id="wppb_login">
      <div class="container">
        <form action="<?php echo home_url(); ?>/wp-login.php" method="post" class="topAreaLoginform row" novalidate>
          <p class="loginFormInputs span6">
            <input type="text" name="log" id="log" class="required" placeholder="<?php _e( 'Username' , 'lioit' ) ?>" value="<?php echo esc_html(stripslashes($user_login), 1) ?>">
            <input type="password" name="pwd" id="pwd" placeholder="<?php _e( 'Password' , 'lioit' ) ?>" class="required">
          </p>
          <!-- .loginFormInputs -->
          
          
          <p class="login-form-submit span2"> <span class="login-form-remember">
            <input class="remember-me checkbox" name="rememberme" id="rememberme" type="checkbox" checked="checked" value="forever">
            <label for="remember-me">
              <?php _e("Remember Me","lioit"); ?>
            </label>
            
            </span>
            
            <input type="hidden" name="action" value="log-in">
            
          <input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>" />
          </p>
          <!-- .form-submit -->
          
          <div class="newAccount span4">
          	<button type="submit" class="btn btn-primary btn-large">
            <i class="icon-login"></i><?php _e("Sign in","lioit"); ?>
            </button>
          	<a href="#" class="btn topForgotBtn"><i class="icon-lock-1"></i>
			<?php _e("Forgot Password","lioit"); ?>
            </a>
            <a href="<?php $register_page = get_register_page_link($post->ID);   echo $register_page; ?>" class="btn topRigsterBtn"><i class="icon-user-add-1"></i>
              <?php _e("New Account","lioit"); ?>
            </a>
          </div><!--End newAccount-->
        </form>
        <!-- .sign-in --> 
     
        </div>
      <!--End container--> 
    </div>
    <!--End topAreaLogin-->
    <?php  } else { ?>
    <div class="membersArea">
      <div class="container">
        <div class="mainUserAreaDetails">
          <div class="topAreaTitle loginedTitle">
            <div class="topAreaTitleavatar"><?php echo get_avatar( $user_ID, $size = '45'); ?></div>
            <h6>
              <?php _e("Welcome ","lioit"); ?>
              <?php global $current_user;
                                  get_currentuserinfo();
                                  echo ' ' . $current_user->display_name . "\n";
                            ?>
              <?php
                            ?>
            </h6>
            <a href="<?php $profile_page = get_profile_page_link($post->ID);   echo $profile_page; ?>" title="<?php _e("Edit My Profile","lioit"); ?>" class="tooltip bottom">
            <span><?php _e("Edit My Profile","lioit"); ?></span>
            </a> </div>
          <ul>
            <li><a href="<?php $url = admin_url(); echo $url; ?>" title="<?php _e("Dashboard","lioit"); ?>" class="tooltip bottom"><i class="icon-reorder"></i>
              <span><?php _e("Dashboard","lioit"); ?></span>
              </a></li>
            <li><a href="<?php $posts_page = get_posts_page_link($post->ID);echo $posts_page; ?>" title="<?php _e("Posts","lioit"); ?>" class="tooltip bottom"><i class="icon-file-alt"></i>
              <span><?php _e("Posts","lioit"); ?> <span class="userAreaCount"><?php global $current_user; echo count_user_posts($current_user->ID); ?></span></span>
              </a></li>
            <li><a href="<?php $submit_page = get_submit_page_link($post->ID);   echo $submit_page; ?>" title="<?php _e("Add Post","lioit"); ?>" class="tooltip bottom"><i class="icon-edit"></i>
              <span><?php _e("Add Post","lioit"); ?></span>
              </a></li>
            <li><a href="" title="<?php _e("Profile","lioit"); ?>" class="tooltip bottom"><i class="icon-user"></i>
              <span><?php _e("Profile","lioit"); ?></span>
              </a></li>
            <li><a href="<?php echo wp_logout_url( home_url() ); ?>" title="<?php _e("Log Out","lioit"); ?>" class="tooltip bottom"><i class="icon-signin"></i>
              <span><?php _e("Log Out","lioit"); ?></span>
              </a></li>
          </ul>
        </div>
        <!--End UserDetails--> 
      </div>
      <!--End membersArea--> 
    </div>
    <?php } ?>
    <?php global $smof_data; $topwidgets_config = $smof_data['topwidgets_layout'];  ?>
    <div class="overlay-inner container">
    	<div class="topWidgetContainer">
        <div class="row">
                	<?php if ($topwidgets_config == "topwidgets-1") { ?>
		
                    <div class="span3">
                    <?php if ( function_exists('dynamic_sidebar') ) { ?>
                        <?php dynamic_sidebar('Top Widgets Column 1'); ?>
                    <?php } ?>
                    </div>
                    <div class="span3">
                    <?php if ( function_exists('dynamic_sidebar') ) { ?>
                        <?php dynamic_sidebar('Top Widgets Column 2'); ?>
                    <?php } ?>
                    </div>
                    <div class="span3">
                    <?php if ( function_exists('dynamic_sidebar') ) { ?>
                        <?php dynamic_sidebar('Top Widgets Column 3'); ?>
                    <?php } ?>
                    </div>
                    <div class="span3">
                    <?php if ( function_exists('dynamic_sidebar') ) { ?>
                        <?php dynamic_sidebar('Top Widgets Column 4'); ?>
                    <?php } ?>
                    </div>
                    
                    <?php } else if ($topwidgets_config == "topwidgets-2") { ?>
                    
                    <div class="span6">
                    <?php if ( function_exists('dynamic_sidebar') ) { ?>
                        <?php dynamic_sidebar('Top Widgets Column 1'); ?>
                    <?php } ?>
                    </div>
                    <div class="span3">
                    <?php if ( function_exists('dynamic_sidebar') ) { ?>
                        <?php dynamic_sidebar('Top Widgets Column 2'); ?>
                    <?php } ?>
                    </div>
                    <div class="span3">
                    <?php if ( function_exists('dynamic_sidebar') ) { ?>
                        <?php dynamic_sidebar('Top Widgets Column 3'); ?>
                    <?php } ?>
                    </div>
                    
                    <?php } else if ($topwidgets_config == "topwidgets-3") { ?>
                    
                    <div class="span3">
                    <?php if ( function_exists('dynamic_sidebar') ) { ?>
                        <?php dynamic_sidebar('Top Widgets Column 1'); ?>
                    <?php } ?>
                    </div>
                    <div class="span3">
                    <?php if ( function_exists('dynamic_sidebar') ) { ?>
                        <?php dynamic_sidebar('Top Widgets Column 2'); ?>
                    <?php } ?>
                    </div>
                    <div class="span6">
                    <?php if ( function_exists('dynamic_sidebar') ) { ?>
                        <?php dynamic_sidebar('Top Widgets Column 3'); ?>
                    <?php } ?>
                    </div>
                    
                    <?php } else if ($topwidgets_config == "topwidgets-4") { ?>
                    
                    <div class="span6">
                    <?php if ( function_exists('dynamic_sidebar') ) { ?>
                        <?php dynamic_sidebar('Top Widgets Column 1'); ?>
                    <?php } ?>
                    </div>
                    <div class="span6">
                    <?php if ( function_exists('dynamic_sidebar') ) { ?>
                        <?php dynamic_sidebar('Top Widgets Column 2'); ?>
                    <?php } ?>
                    </div>
                    
                    <?php } else if ($topwidgets_config == "topwidgets-5") { ?>
                    
                    <div class="span4">
                    <?php if ( function_exists('dynamic_sidebar') ) { ?>
                        <?php dynamic_sidebar('Top Widgets Column 1'); ?>
                    <?php } ?>
                    </div>
                    <div class="span4">
                    <?php if ( function_exists('dynamic_sidebar') ) { ?>
                        <?php dynamic_sidebar('Top Widgets Column 2'); ?>
                    <?php } ?>
                    </div>
                    <div class="span4">
                    <?php if ( function_exists('dynamic_sidebar') ) { ?>
                        <?php dynamic_sidebar('Top Widgets Column 3'); ?>
                    <?php } ?>
                    </div>
                    
                    <?php } else if ($topwidgets_config == "topwidgets-6") { ?>
                    
                    <div class="span8">
                    <?php if ( function_exists('dynamic_sidebar') ) { ?>
                        <?php dynamic_sidebar('Top Widgets Column 1'); ?>
                    <?php } ?>
                    </div>
                    <div class="span4">
                    <?php if ( function_exists('dynamic_sidebar') ) { ?>
                        <?php dynamic_sidebar('Top Widgets Column 2'); ?>
                    <?php } ?>
                    </div>
                    
                    <?php } else if ($topwidgets_config == "topwidgets-7") { ?>
                    
                    <div class="span4">
                    <?php if ( function_exists('dynamic_sidebar') ) { ?>
                        <?php dynamic_sidebar('Top Widgets Column 1'); ?>
                    <?php } ?>
                    </div>
                    <div class="span8">
                    <?php if ( function_exists('dynamic_sidebar') ) { ?>
                        <?php dynamic_sidebar('Top Widgets Column 2'); ?>
                    <?php } ?>
                    </div>
                    
                    <?php } else { ?>
                    
                    <div class="span3">
                    <?php if ( function_exists('dynamic_sidebar') ) { ?>
                        <?php dynamic_sidebar('Top Widgets Column 1'); ?>
                    <?php } ?>
                    </div>
                    <div class="span6">
                    <?php if ( function_exists('dynamic_sidebar') ) { ?>
                        <?php dynamic_sidebar('Top Widgets Column 2'); ?>
                    <?php } ?>
                    </div>
                    <div class="span3">
                    <?php if ( function_exists('dynamic_sidebar') ) { ?>
                        <?php dynamic_sidebar('Top Widgets Column 3'); ?>
                    <?php } ?>
                    </div>
                    
                    <?php } ?>
                </div>
        <!--End Row-->
        </div>
        <!--End topWidgetContainer--> 
    </div>
    
    <!-- END .overlay-content --> 
  </div>
  <!-- END .overlay-container --> 
</div>
<!-- END TopArea --> 
