function new_add_fb_connect_field()
{
    global $new_is_social_header;
    //if(new_fb_is_user_connected()) return;
    if ($new_is_social_header === NULL) {
        ?>
    <h3>Social connect</h3>
    <?php 
        $new_is_social_header = true;
    }
    ?>
  <table class="form-table">
    <tbody>
      <tr>	
        <th>
        </th>	
        <td>
          <?php 
    if (new_fb_is_user_connected()) {
        echo new_fb_unlink_button();
    } else {
        echo new_fb_link_button();
    }
    ?>
        </td>
      </tr>
    </tbody>
  </table>
  <?php 
}
Example #2
0
					<p><?php 
/*?><?php _e( 'Please complete the fields below to login to your account.', APP_TD ); ?><?php */
?>
</p>

					<div class="login_form_box">

						<form action="<?php 
echo appthemes_get_login_url('login_post');
?>
" method="post" class="loginform" id="login-form">
                  <div class="login_fb_conect" >
						  <?php 
if (new_fb_is_user_connected()) {
    echo new_fb_unlink_button();
} else {
    echo new_fb_link_button();
}
?>
				  </div>
                  <div class="clr or_icon"></div>
							<div class="login_input">
								<label for="login_username"><?php 
_e('', APP_TD);
?>
</label>
								<input type="text" class="text required" placeholder="Enter User Name" name="log" id="login_username" value="<?php 
if (isset($posted['login_username'])) {
    echo esc_attr($posted['login_username']);
}