示例#1
0
/**
 * 
 * Override some FBOAuth functions here:
 */
function clash_zen_fboauth_user_form_connect($variables)
{
    $uid = $variables['uid'];
    $fbid = $variables['fbid'];
    $link = fboauth_action_link_properties('deauth');
    if ($fbid) {
        $output = t('<span class="fb-info-text">Your account is connected with Facebook.' . l(t('(You can disconnect it here)'), $link['href'], array('query' => $link['query'], 'attributes' => array('class' => array('facebook-action-deauth')))) . '</div>');
    } else {
        $output = fboauth_action_display('connect');
    }
    return $output;
}
示例#2
0
<?php

$link = fboauth_action_link_properties('connect');
print l(t('Sign in with facebook'), $link['href'], array('query' => $link['query'], 'attributes' => array('class' => array('facebook-action-connect'))));
?>
<h4 class="non-facebook">non facebook user?</h4>
<div id="user-login-form"><?php 
print $rendered;
?>
</form>
<div class="send-password">
	<a href="/clash_ajax_register/password/nojs" class="ctools-use-modal ctools-modal-ctools-ajax-register-style" title="Request a new password">forgotten password?</a>
</div>