| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/prosvasi/wp-content/plugins/wp-statistics/views/components/headers/ |
Upload File : |
<?php
if (!defined('ABSPATH')) exit; // Exit if accessed directly
use WP_STATISTICS\Menus;
use WP_Statistics\Utils\Url;
use WP_Statistics\Utils\Request;
if (Menus::in_page('download_tracker')) {
$title = __('Download Report', 'wp-statistics');
} elseif (Menus::in_page('link_tracker')) {
$title = __('Link Report', 'wp-statistics');
}
?>
<div class="wps-tracker-header">
<div>
<div class="wps-tracker-header__title">
<h1 class="wps_title">
<?php echo esc_html($title) ?>
</h1>
</div>
<div class="wps-tracker-header__info">
<?php
$target = Request::get('target');
$filename = basename(Url::getPath($target));
$url = preg_replace('#(?<!:)/{2,}#', '/', str_replace($filename, '', $target));
?>
<a href="<?php echo esc_url($target) ?>" title="<?php echo esc_html($target) ?>" target="_blank">
<span><?php echo esc_html($url) ?></span><span><?php echo esc_html($filename) ?></span>
</a>
</div>
</div>
</div>