MOON
Server: Apache
System: Linux e2e-78-16.ssdcloudindia.net 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
User: imensosw (1005)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/imensosw/.trash/rj-google-signin/templates/google-login-button.php
<?php
/**
 * Template for google signin button.
 *
 * @package RjoshiWebdev\GithubLogin
 * @since 1.0.0
 */

if ( isset( $custom_btn_text ) && $custom_btn_text ) {
	$button_text = esc_html( $custom_btn_text );
} else {
	$button_text = ( ! empty( $button_text ) ) ? $button_text : __( 'Log in with Google', 'rj-google-signin' );
}

if ( empty( $login_url ) ) {
	return;
}

$button_url = $login_url;

if ( is_user_logged_in() ) {
	$button_text = __( 'Log out', 'rj-google-signin' );
	$button_url   = wp_logout_url( get_permalink() );
}
?>
<div class="wp_google_signin">
	<div class="wp_google_signin__button-container">
		<a class="wp_google_signin__button"
			<?php
			printf( ' href="%s"', esc_url( $button_url ) );
			?>
		>
			<span class="wp_google_signin__google-icon"></span>
			<?php echo esc_html( $button_text ); ?>
		</a>
	</div>
</div>