Opal-Estate-Pro/templates/user/social-login/facebook-button.php
2019-09-10 11:27:33 +07:00

22 lines
614 B
PHP
Executable File

<?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>