| Server IP : 144.76.79.100 / Your IP : 216.73.216.103 [ Web Server : Apache System : Linux ch05.wehostwebserver.com 5.14.0-611.5.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 08:09:09 EST 2025 x86_64 User : razzlestore ( 1092) PHP Version : 8.2.29 Disable Function : NONE Domains : 343 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/saharasurgical/public_html/wp-content/themes/oceanwp/inc/third/ |
Upload File : |
<?php
/**
* WordPress Social Login class
*
* @package OceanWP WordPress theme
*/
// Return if the plugins doesn't exist or if logged in.
if ( ! function_exists( 'wsl_install' )
|| is_user_logged_in() ) {
return;
}
if ( ! class_exists( 'OceanWP_Social_Login' ) ) :
class OceanWP_Social_Login {
/**
* Setup class.
*
* @since 1.4.0
*/
public function __construct() {
add_filter( 'wsl_render_auth_widget_alter_provider_icon_markup', array( $this, 'social_login_markup' ), 10, 3 );
add_action( 'wp_enqueue_scripts', array( $this, 'add_custom_css' ) );
add_action( 'login_enqueue_scripts', array( $this, 'add_custom_css' ) );
}
/**
* Social login markup.
*
* @since 1.0.0
*/
public function social_login_markup( $provider_id, $provider_name, $authenticate_url ) {
// Icons
$provider_icon = strtolower( $provider_id );
// Custom icons
if ( 'facebook' == strtolower( $provider_id ) ) {
$provider_icon = 'facebook';
} else if ( 'vkontakte' == strtolower( $provider_id ) ) {
$provider_icon = 'vk';
} else if ( 'stackoverflow' == strtolower( $provider_id ) ) {
$provider_icon = 'stackoverflow';
} else if ( 'twitchTV' == strtolower( $provider_id ) ) {
$provider_icon = 'twitch';
} else if ( 'mailru' == strtolower( $provider_id ) ) {
$provider_icon = 'envelope';
} ?>
<a href="<?php echo esc_url( $authenticate_url ); ?>" data-provider="<?php echo esc_attr( $provider_id ); ?>" class="opl-<?php echo esc_attr( strtolower( $provider_id ) ); ?>" rel="nofollow">
<?php oceanwp_icon( $provider_icon ); ?>
<span><?php echo esc_html( $provider_name ); ?></span>
</a>
<?php
}
/**
* Load custom CSS file
*
* @since 1.4.0
*/
public static function add_custom_css() {
wp_enqueue_style( 'oceanwp-wsl', OCEANWP_CSS_DIR_URI .'third/social-login.min.css' );
}
}
endif;
return new OceanWP_Social_Login();