Origin commit
This commit is contained in:
21
templates/user/social-login/facebook-button.php
Executable file
21
templates/user/social-login/facebook-button.php
Executable file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit();
|
||||
}
|
||||
|
||||
if ( 'off' === opalestate_get_option( 'enable_facebook_login' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$facebook_app_id = opalestate_get_option( 'facebook_app_id', '' );
|
||||
$facebook_secret = opalestate_get_option( 'facebook_secret', '' );
|
||||
|
||||
if ( ! $facebook_app_id || ! $facebook_secret ) {
|
||||
return;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<a href="javascript:void(0);" rel="nofollow" title="<?php esc_attr_e( 'Facebook', 'opalestate-pro' ); ?>" class="js-opal-facebook-login opalestate-social-login-facebook-btn">
|
||||
<i class="fa fa-facebook"></i><?php esc_html_e( 'Connect with Facebook', 'opalestate-pro' ); ?>
|
||||
</a>
|
||||
Reference in New Issue
Block a user