本文整理汇总了PHP中new_fb_login_url函数的典型用法代码示例。如果您正苦于以下问题:PHP new_fb_login_url函数的具体用法?PHP new_fb_login_url怎么用?PHP new_fb_login_url使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了new_fb_login_url函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: NextendFB_Options_Page
//.........这里部分代码省略.........
_e('<li>Go to the <b>Settings</b> of the application.</li>', 'nextend-facebook-connect');
?>
<?php
_e('<li>Click on <b>+ Add Platform</b>, and choose <b>Website</b>.</li>', 'nextend-facebook-connect');
?>
<?php
_e('<li>Give your website\'s address at the <b>Site URL</b> field with: <b>' . get_option('siteurl') . '</b></li>', 'nextend-facebook-connect');
?>
<?php
_e('<li>Give a <b>Contact Email</b> and click on <b>Save Changes</b>.</li>', 'nextend-facebook-connect');
?>
<?php
_e('<li>Go to <b>Status & Review</b>, and change the availability for the general public to <b>YES</b>.</li>', 'nextend-facebook-connect');
?>
<?php
_e('<li>Go back to the <b>Settings</b>, and copy the <b>App ID</b>, and <b>APP Secret</b>, which you have to copy and paste below.</li>', 'nextend-facebook-connect');
?>
<?php
_e('<li><b>Save changes!</b></li></ol>', 'nextend-facebook-connect');
?>
</p>
<h3><?php
_e('Usage', 'nextend-facebook-connect');
?>
</h3>
<h4><?php
_e('Simple link', 'nextend-facebook-connect');
?>
</h4>
<p><?php
_e('<a href="' . new_fb_login_url() . '&redirect=' . get_option('siteurl') . '" onclick="window.location = \'' . new_fb_login_url() . '&redirect=\'+window.location.href; return false;">Click here to login or register with Facebook</a>', 'nextend-facebook-connect');
?>
</p>
<h4><?php
_e('Image button', 'nextend-facebook-connect');
?>
</h4>
<p><?php
_e('<a href="' . new_fb_login_url() . '&redirect=' . get_option('siteurl') . '" onclick="window.location = \'' . new_fb_login_url() . '&redirect=\'+window.location.href; return false;"> <img src="HereComeTheImage" /> </a>', 'nextend-facebook-connect');
?>
</p>
<h3><?php
_e('Note', 'nextend-facebook-connect');
?>
</h3>
<p><?php
_e('If the Facebook user\'s email address already used by another member of your site, the facebook profile will be automatically linked to the existing profile!', 'nextend-facebook-connect');
?>
</p>
</div>
<!--right-->
<div class="postbox-container" style="float:right;width:30%;">
<div class="metabox-holder">
<div class="meta-box-sortables">
<!--about-->
<div id="newfb-about" class="postbox">
<h3 class="hndle"><?php
_e('About this plugin', 'nextend-facebook-connect');
示例2: esc_url
echo esc_url(wc_lostpassword_url());
?>
"><?php
_e('Lost your password?', 'yit');
?>
</a>
</p>
<?php
if (defined('NEW_FB_LOGIN') && NEW_FB_LOGIN == 1 && function_exists('new_fb_sign_button')) {
?>
<div class="fb-connect login-page">
<div class="btn-fb-login">
<a class="btn-flat" href="<?php
echo new_fb_login_url();
?>
&redirect=<?php
echo site_url();
?>
/" onclick="window.location = '<?php
echo home_url();
?>
/wp-login.php?loginFacebook=1&redirect=<?php
echo site_url();
?>
/'; return false;"><?php
echo do_shortcode('[icon icon_size="16" color="inherit" icon_type="theme-icon" icon_theme="facebook"]');
?>
Login with Facebook</a>
</div>
示例3: new_fb_redirect
function new_fb_redirect()
{
$redirect = get_site_transient(nextend_uniqid() . '_fb_r');
if (!$redirect || $redirect == '' || $redirect == new_fb_login_url()) {
if (isset($_GET['redirect'])) {
$redirect = $_GET['redirect'];
} else {
$redirect = site_url();
}
}
$redirect = wp_sanitize_redirect($redirect);
$redirect = wp_validate_redirect($redirect, site_url());
header('LOCATION: ' . $redirect);
delete_site_transient(nextend_uniqid() . '_fb_r');
exit;
}
示例4: do_action
<div style="left:-999em; position:absolute;"><label for="trap">Anti-spam</label><input type="text" name="email_2" id="trap" tabindex="-1" /></div>
<?php do_action( 'woocommerce_register_form' ); ?>
<?php do_action( 'register_form' ); ?>
<p class="form-row">
<?php wp_nonce_field( 'woocommerce-register', 'register') ?>
<input type="submit" class="button" name="register" value="<?php _e( 'Register', 'yit' ); ?>" />
</p>
<?php do_action( 'woocommerce_register_form_end' ); ?>
</form>
</div>
</div>
<?php if( defined('NEW_FB_LOGIN') && NEW_FB_LOGIN == 1 && function_exists('new_fb_sign_button') ): ?>
<div class="fb-connect">
<h3> <?php _e('or login with facebook', 'yit') ?></h3>
<div class="btn-fb-login">
<a href="<?php echo new_fb_login_url() ?>&redirect=<?php echo site_url() ?>/" onclick="window.location = '<?php bloginfo('url') ?>/wp-login.php?loginFacebook=1&redirect=<?php echo site_url() ?>/'; return false;">Connect with Facebook</a>
</div>
</div>
<?php endif; ?>
<?php endif; ?>
<?php do_action('woocommerce_after_customer_login_form'); ?>
示例5: new_fb_link_button
function new_fb_link_button()
{
global $new_fb_settings;
return '<a href="' . new_fb_login_url() . '&redirect=' . site_url() . $GLOBALS['HTTP_SERVER_VARS']['REQUEST_URI'] . '">' . $new_fb_settings['fb_link_button'] . '</a><br />';
}
示例6: new_fb_unlink_button
function new_fb_unlink_button()
{
global $new_fb_settings;
return '<a href="' . new_fb_login_url() . '&action=unlink&redirect=' . new_fb_curPageURL() . '">' . $new_fb_settings['fb_unlink_button'] . '</a><br />';
}
示例7: do_action
</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');
示例8: if
<?php if( rcp_is_active() ) :
echo "<legend>Mes packs VOD</legend>";
if (can_access($post_id = 7293)) :
echo "<a href = 'http://www.davidcosta.fr/categorie/vod/pack-premium/' class='not-btn more-link' > Pack premium </a ><br />";
elseif (can_access($post_id = 7292)) :
echo "<a href = 'http://www.davidcosta.fr/categorie/vod/pack-poids-de-corps/' class='not-btn more-link' > Pack poids du corps </a ><br />";
elseif (can_access($post_id = 6762)) :
echo "<a href = 'http://www.davidcosta.fr/categorie/vod/pack-haut-du-corps/' class='not-btn more-link' > Pack haut du corps </a ><br />";
elseif (can_access($post_id = 6760)) :
echo "<a href = 'http://www.davidcosta.fr/categorie/vod/pack-bas-du-corps/' class='not-btn more-link' > Pack bas du corps </a ><br />";
elseif (can_access($post_id = 5701)) :
echo "<a href = 'http://www.davidcosta.fr/categorie/vod/pack-abdos-et-gainage/' class='not-btn more-link' > Pack abdos et gainage </a ><br />";
elseif (can_access($post_id = 7225)) :
echo "<a href = 'http://www.davidcosta.fr/categorie/vod/pack-special-bras/' class='not-btn more-link' > Pack spécial bras </a ><br />";
elseif (can_access($post_id = 7294)) :
echo "<a href = 'http://www.davidcosta.fr/categorie/vod/pack-strong-is-the-new-sexy/' class='not-btn more-link' > Pack strong is the new sexy </a ><br />";
else :
endif;
endif;
;?>
<?php wc_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 endif; ?>
<?php do_action( 'woocommerce_after_my_account' ); ?>
示例9: widget
//.........这里部分代码省略.........
do_action('woocommerce_login_form');
?>
<div class="form-group">
<?php
wp_nonce_field('woocommerce-login');
?>
<input type="submit" class="button button-login" name="login" value="<?php
_e('Login', 'yit');
?>
" />
<p class="lost_password">
<a href="<?php
echo esc_url(wp_lostpassword_url());
?>
"><?php
_e('Lost password?', 'yit');
?>
</a>
</p>
<!-- <label for="rememberme" class="inline">
<input name="rememberme" type="checkbox" id="rememberme" value="forever" /> <?php
_e('Remember me', 'yit');
?>
</label> -->
</div>
<div class="form-group">
<?php
if (defined('NEW_FB_LOGIN') && NEW_FB_LOGIN == 1 && function_exists('new_fb_sign_button')) {
?>
<div class="fb-connect">
<div class="btn-fb-login">
<a href="<?php
echo new_fb_login_url();
?>
&redirect=<?php
echo site_url();
?>
/" onclick="window.location = '<?php
echo home_url();
?>
/wp-login.php?loginFacebook=1&redirect=<?php
echo site_url();
?>
/'; return false;"><?php
echo do_shortcode('[icon icon_size="16" color="inherit" icon_type="theme-icon" icon_theme="facebook"]');
?>
Login with Facebook</a>
</div>
</div>
<?php
}
?>
</div>
<?php
do_action('woocommerce_login_form_end');
?>
</form>
</div>
<?php
if ($enabled_registration === 'yes') {
?>
示例10: NextendFB_Options_Page
function NextendFB_Options_Page()
{
$domain = get_option('siteurl');
$domain = str_replace(array('http://', 'https://'), array('', ''), $domain);
$domain = str_replace('www.', '', $domain);
$a = explode("/", $domain);
$domain = $a[0];
?>
<div class="wrap">
<div id="newfb-options">
<div id="newfb-title"><h2>Nextend Facebook Connect Settings</h2></div>
<?php
global $newfb_status;
if ($newfb_status == 'update_success') {
$message = __('Configuration updated', 'nextend-facebook-connect') . "<br />";
} else {
if ($newfb_status == 'update_failed') {
$message = __('Error while saving options', 'nextend-facebook-connect') . "<br />";
} else {
$message = '';
}
}
if ($message != "") {
?>
<div class="updated"><strong><p><?php
echo $message;
?>
</p></strong></div><?php
}
?>
<div id="newfb-desc">
<p><?php
_e('This plugins helps you create Facebook login and register buttons. The login and register process only takes one click and you can fully customize the buttons with images and other assets.', 'nextend-facebook-connect');
?>
</p>
<h3><?php
_e('Setup', 'nextend-facebook-connect');
?>
</h3>
<p>
<?php
_e('<ol><li><a href="https://developers.facebook.com/apps/?action=create" target="_blank">Create a facebook app!</a></li>', 'nextend-facebook-connect');
?>
<?php
_e('<li>Choose an App Name, it can be anything you like</li>', 'nextend-facebook-connect');
?>
<?php
_e('<li>Click on <b>Continue</b></li>', 'nextend-facebook-connect');
?>
<?php
_e('<li>Go to the newly created <b>App settings page</b> and click <b>Edit Settings</b></li>', 'nextend-facebook-connect');
?>
<?php
_e('<li>Fill out <b>App Domains</b> field with: <b>' . $domain . '</b></li>', 'nextend-facebook-connect');
?>
<?php
_e('<li>Click on <b>Website with Facebook Login</b> tab abd fill out <b>Site URL</b> field with: <b>' . get_option('siteurl') . '</b></li>', 'nextend-facebook-connect');
?>
<?php
_e('<li>Click on <b>Save changes</b> and the top of the page contains the <b>App Id</b> and <b>App secret</b> which you have to copy and past below.</li>', 'nextend-facebook-connect');
?>
<?php
_e('<li><b>Save changes!</b></li></ol>', 'nextend-facebook-connect');
?>
</p>
<h3><?php
_e('Usage', 'nextend-facebook-connect');
?>
</h3>
<h4><?php
_e('Simple link', 'nextend-facebook-connect');
?>
</h4>
<p><?php
_e('<a href="' . new_fb_login_url() . '&redirect=' . get_option('siteurl') . '" onclick="window.location = \'' . new_fb_login_url() . '&redirect=\'+window.location.href; return false;">Click here to login or register with Facebook</a>', 'nextend-facebook-connect');
?>
</p>
<h4><?php
_e('Image button', 'nextend-facebook-connect');
?>
</h4>
<p><?php
_e('<a href="' . new_fb_login_url() . '&redirect=' . get_option('siteurl') . '" onclick="window.location = \'' . new_fb_login_url() . '&redirect=\'+window.location.href; return false;"> <img src="HereComeTheImage" /> </a>', 'nextend-facebook-connect');
?>
</p>
<h3><?php
_e('Note', 'nextend-facebook-connect');
?>
</h3>
<p><?php
_e('If the Facebook user\'s email address already used by another member of your site, the facebook profile will be automatically linked to the existing profile!', 'nextend-facebook-connect');
?>
</p>
</div>
//.........这里部分代码省略.........