| 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
if (!defined('ABSPATH')) exit; // Exit if accessed directly
use WP_STATISTICS\Admin_Template;
use WP_Statistics\Decorators\VisitorDecorator;
use WP_STATISTICS\Menus;
use WP_Statistics\Components\View;
?>
<?php /** @var VisitorDecorator $visitor */ ?>
<div class="wps-visitor__visitors-details">
<div class="wps-visitor__visitors-detail--row">
<?php if ($visitor->isHashedIP()) : ?>
<span>
<?php esc_html_e('Visitor Hash', 'wp-statistics'); ?>
</span>
<?php else : ?>
<span>
<?php esc_html_e('IP Address', 'wp-statistics'); ?>
</span>
<?php endif; ?>
<div>
<span title="<?php echo esc_attr($visitor->getIP()); ?>"><?php echo esc_html($visitor->getIP()); ?></span>
</div>
</div>
<div class="wps-visitor__visitors-detail--row">
<span><?php esc_html_e('Referrer', 'wp-statistics'); ?></span>
<div class="wps-visitor__visitors-detail--link wps-ellipsis-parent">
<?php if (!empty($visitor->getReferral()->getReferrer())) :
View::load("components/objects/external-link", ['url' => $visitor->getReferral()->getReferrer(), 'title' => $visitor->getReferral()->getRawReferrer()]);
else : ?>
<?php echo Admin_Template::UnknownColumn() ?>
<?php endif; ?>
</div>
</div>
<div class="wps-visitor__visitors-detail--row">
<span><?php esc_html_e('Source Category', 'wp-statistics'); ?></span>
<div class="wps-visitor__visitors-detail--link wps-ellipsis-parent">
<?php if (!empty($visitor->getReferral()->getSourceChannel())) : ?>
<span><?php echo esc_html($visitor->getReferral()->getSourceChannel()) ?></span>
<?php else : ?>
<?php echo Admin_Template::UnknownColumn() ?>
<?php endif; ?>
</div>
</div>
<div class="wps-visitor__visitors-detail--row">
<span><?php esc_html_e('Browser', 'wp-statistics'); ?></span>
<div class="wps-browsers__flag">
<a href="<?php echo Menus::admin_url('visitors', ['tab' => 'visitors','agent' => $visitor->getBrowser()->getRaw()]) ?>"><img src="<?php echo esc_url($visitor->getBrowser()->getLogo()); ?>" alt="<?php echo esc_attr($visitor->getBrowser()->getName()) ?>" width="15" height="15"></a>
<?php if ($visitor->getBrowser()->getName() !== 'Unknown') : ?>
<span title="<?php echo esc_attr("{$visitor->getBrowser()->getName()} v{$visitor->getBrowser()->getVersion()}") ?>"><?php echo esc_html("{$visitor->getBrowser()->getName()} v{$visitor->getBrowser()->getVersion()}") ?></span>
<?php else : ?>
<span title="<?php echo esc_attr($visitor->getBrowser()->getName()) ?>"><?php echo esc_html($visitor->getBrowser()->getName()) ?></span>
<?php endif; ?>
</div>
</div>
<div class="wps-visitor__visitors-detail--row">
<span><?php esc_html_e('Operating System', 'wp-statistics'); ?></span>
<div class="wps-os__flag">
<a href="<?php echo Menus::admin_url('visitors', ['tab' => 'visitors','platform' => $visitor->getOs()->getName()]) ?>"><img src="<?php echo esc_url($visitor->getOs()->getLogo()) ?>" alt="<?php echo esc_attr($visitor->getOs()->getName()) ?>" width="15" height="15"></a>
<span title="<?php echo esc_attr($visitor->getOs()->getName()) ?>"><?php echo esc_html($visitor->getOs()->getName()) ?></span>
</div>
</div>
<div class="wps-visitor__visitors-detail--row">
<span><?php esc_html_e('Country', 'wp-statistics'); ?></span>
<div class="wps-country__flag">
<a href="<?php echo esc_url(Menus::admin_url('geographic', ['type' => 'single-country', 'country' => $visitor->getLocation()->getCountryCode()])) ?>" class="wps-country__flag">
<img src="<?php echo esc_url($visitor->getLocation()->getCountryFlag()) ?>" alt="<?php echo esc_attr($visitor->getLocation()->getCountryName()) ?>" width="19" height="15">
</a>
<span title="<?php echo esc_attr($visitor->getLocation()->getCountryName()) ?>"><?php echo esc_html($visitor->getLocation()->getCountryName()) ?></span>
</div>
</div>
<div class="wps-visitor__visitors-detail--row">
<span><?php esc_html_e('City', 'wp-statistics'); ?></span>
<div class="wps-ellipsis-parent">
<span title="<?php echo Admin_Template::unknownToNotSet($visitor->getLocation()->getCity()) ?>"><?php echo Admin_Template::unknownToNotSet($visitor->getLocation()->getCity()) ?></span>
</div>
</div>
<div class="wps-visitor__visitors-detail--row">
<span><?php esc_html_e('Region', 'wp-statistics'); ?></span>
<div class="wps-ellipsis-parent">
<span title="<?php echo Admin_Template::unknownToNotSet($visitor->getLocation()->getRegion()) ?>"><?php echo Admin_Template::unknownToNotSet($visitor->getLocation()->getRegion()) ?></span>
</div>
</div>
<div class="wps-visitor__visitors-detail--row">
<span><?php esc_html_e('First View', 'wp-statistics'); ?> </span>
<div class="wps-ellipsis-parent">
<span><?php echo esc_html($visitor->getFirstView() ?? $visitor->getLastCounter()) ?></span>
</div>
</div>
<div class="wps-visitor__visitors-detail--row">
<span><?php esc_html_e('Entry Page', 'wp-statistics'); ?></span>
<div>
<?php
$page = $visitor->getFirstPage();
if (!empty($page)) :
View::load("components/objects/internal-link", [
'url' => $page['report'],
'title' => $page['title'],
'tooltip' => $page['query'] ? "?{$page['query']}" : ''
]) ;
else :
echo Admin_Template::UnknownColumn();
endif;
?>
</div>
</div>
<div class="wps-visitor__visitors-detail--row">
<span><?php esc_html_e('Exit Page', 'wp-statistics'); ?> </span>
<div>
<?php
$page = $visitor->getLastPage();
if (!empty($page)) :
View::load("components/objects/internal-link", [
'url' => $page['report'],
'title' => $page['title']
]);
else :
echo Admin_Template::UnknownColumn();
endif;
?>
</div>
</div>
<div class="wps-visitor__visitors-detail--row">
<span><?php esc_html_e('Total Views', 'wp-statistics'); ?> <span class="wps-tooltip" title="<?php esc_html_e('Total views for a single day. Privacy rules assign users a new ID daily, so visits on different days are counted separately.', 'wp-statistics'); ?>"><i class="wps-tooltip-icon"></i></span></span>
<div>
<span><?php echo esc_html($visitor->getHits()) ?></span>
</div>
</div>
</div>