403Webshell
Server IP : 172.67.75.225  /  Your IP : 216.73.216.185
Web Server : nginx/1.27.1
System : Linux us-1 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
User : vinodai ( 3134)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /storage/v1396/vinoddoshi2/public_html/wp-content/themes/oceanwp/inc/third/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /storage/v1396/vinoddoshi2/public_html/wp-content/themes/oceanwp/inc/third/class-social-login.php
<?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();

Youez - 2016 - github.com/yon3zu
LinuXploit