?> <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']);
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 }
</p> <?php do_action('woocommerce_before_my_account'); ?> <?php woocommerce_get_template('myaccount/my-downloads.php'); ?> <?php woocommerce_get_template('myaccount/my-orders.php', array('order_count' => $order_count)); ?> <?php woocommerce_get_template('myaccount/my-address.php'); ?> <?php if (defined('NEW_FB_LOGIN') && NEW_FB_LOGIN == 1 && function_exists('new_fb_is_user_connected') && new_fb_is_user_connected() && function_exists('new_fb_unlink_button')) { ?> <div class="facebook-unlink"> <?php echo '<a href="' . new_fb_login_url() . '&action=unlink&redirect=' . new_fb_curPageURL() . '">' . __('Unlink Account', 'yit') . '</a>'; ?> </div> <?php } ?> <?php do_action('woocommerce_after_my_account');