| Server IP : 38.190.208.107 / Your IP : 216.73.217.46 Web Server : nginx/1.28.1 System : Linux ht2026040333114 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.37-1 (2023-07-03) x86_64 User : root ( 0) PHP Version : 8.2.28 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv,eval,assert,passthru,system,exec,shell_exec,popen,proc_open MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/wp.3/wp-content/plugins/wp-statistics/views/components/ |
Upload File : |
<?php
namespace WP_STATISTICS;
if (!defined('ABSPATH')) exit; // Exit if accessed directly
use WP_Statistics\Decorators\VisitorDecorator;
?>
<?php /** @var VisitorDecorator $visitor */ ?>
<?php if (!empty($visitor)) : ?>
<ul class="wps-visitor__information--container">
<li class="wps-visitor__information">
<?php
$countryName = $visitor->getLocation()->getCountryName();
$location = Admin_Template::locationColumn($visitor->getLocation()->getCountryCode(), $visitor->getLocation()->getRegion(), $visitor->getLocation()->getCity());
$locationWithCountry = $countryName !== __('(not set)', 'wp-statistics') ? $countryName . ', ' . $location : $location;
?>
<a href="<?php echo esc_url(Menus::admin_url('geographic', ['type' => 'single-country', 'country' => $visitor->getLocation()->getCountryCode()])) ?>">
<img src="<?php echo esc_url($visitor->getLocation()->getCountryFlag()) ?>"
class="wps-tooltip flag" title="<?php echo esc_attr($locationWithCountry) ?>"
alt="<?php echo esc_attr($visitor->getLocation()->getCountryName()) ?>" width="16" height="14">
</a>
</li>
<li class="wps-visitor__information">
<a href="<?php echo esc_url(Menus::admin_url('visitors', ['tab' => 'visitors','platform' => $visitor->getOs()->getName()])) ?>">
<img src="<?php echo esc_url($visitor->getOs()->getLogo()) ?>"
class="wps-tooltip" title="<?php echo esc_attr($visitor->getOs()->getName()) ?>"
alt="<?php echo esc_attr($visitor->getOs()->getName()) ?>" width="15" height="15">
</a>
</li>
<li class="wps-visitor__information">
<img src="<?php echo esc_url($visitor->getDevice()->getLogo()) ?>"
class="wps-tooltip" title="<?php echo esc_attr($visitor->getDevice()->getType()) ?>"
alt="<?php echo esc_attr($visitor->getDevice()->getType()) ?>" width="15" height="15">
</li>
<li class="wps-visitor__information">
<a href="<?php echo esc_url(Menus::admin_url('visitors', ['tab' => 'visitors','agent' => $visitor->getBrowser()->getRaw()])) ?>">
<img src="<?php echo esc_url($visitor->getBrowser()->getLogo()) ?>"
class="wps-tooltip" title="<?php echo $visitor->getBrowser()->getName() !== __('(not set)', 'wp-statistics') ? esc_attr("{$visitor->getBrowser()->getName()} v{$visitor->getBrowser()->getVersion()}") : $visitor->getBrowser()->getName(); ?>"
alt="<?php echo esc_attr($visitor->getBrowser()->getName()) ?>" width="15" height="15">
</a>
</li>
<li class="wps-visitor__information">
<div>
<?php if ($visitor->isLoggedInUser() && Option::get('visitors_log')) : ?>
<a aria-label="Visitor Information" href="<?php echo esc_url(Menus::admin_url('visitors', ['type' => 'single-visitor', 'visitor_id' => $visitor->getId()])); ?>">
<span class="wps-visitor__information__user-img"></span>
</a>
<?php else : ?>
<a aria-label="visitor information" href="<?php echo esc_url(Menus::admin_url('visitors', ['type' => 'single-visitor', 'visitor_id' => $visitor->getId()])) ?>">
<span class="wps-visitor__information__incognito-img"></span>
</a>
<?php endif; ?>
<?php if (!Option::get('hash_ips') || Option::get('visitors_log')) : ?>
<?php if ($visitor->isLoggedInUser() && Option::get('visitors_log')) : ?>
<a class="wps-visitor__information__user-text wps-tooltip" title="<?php echo esc_html($visitor->getUser()->getEmail()) ?> (<?php echo esc_html($visitor->getUser()->getRole()) ?>)" href="<?php echo esc_url(Menus::admin_url('visitors', ['type' => 'single-visitor', 'visitor_id' => $visitor->getId()])); ?>">
<span title="<?php echo esc_html($visitor->getUser()->getDisplayName()) ?>"><?php echo esc_html($visitor->getUser()->getDisplayName()) ?></span>
<span>#<?php echo esc_html($visitor->getUser()->getId()) ?></span>
</a>
<?php else : ?>
<a class="wps-visitor__information__incognito-text" href="<?php echo esc_url(Menus::admin_url('visitors', ['type' => 'single-visitor', 'visitor_id' => $visitor->getId()])) ?>">
<?php echo esc_html($visitor->getIP()); ?>
</a>
<?php endif; ?>
<?php endif; ?>
</div>
</li>
</ul>
<?php endif; ?>