| Server IP : 207.135.97.11 / Your IP : 172.19.0.1 Web Server : LiteSpeed System : Linux 6d372a2d2e33 5.14.0-611.24.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jan 23 11:42:43 UTC 2026 x86_64 User : nobody ( 65534) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/html/ed.net.au/wp-content/plugins/post-views-counter/includes/ |
Upload File : |
<?php
// exit if accessed directly
if ( ! defined( 'ABSPATH' ) )
exit;
/**
* Post_Views_Counter_Settings_Reports class.
*
* @class Post_Views_Counter_Settings_Reports
*/
class Post_Views_Counter_Settings_Reports {
private $pvc;
/**
* Class constructor.
*
* @return void
*/
public function __construct() {
$this->pvc = Post_Views_Counter();
}
/**
* Get sections for reports tab.
*
* @return array
*/
public function get_sections() {
return [
'post_views_counter_reports_settings' => [
'tab' => 'reports',
'callback' => [ $this, 'section_reports_placeholder' ]
]
];
}
/**
* Get fields for reports tab.
*
* @return array
*/
public function get_fields() {
return [];
}
/**
* Reports page placeholder.
*/
public function section_reports_placeholder() {
echo '
<form action="#">
<div id="pvc-reports-placeholder">
<img id="pvc-reports-bg" src="' . esc_url( POST_VIEWS_COUNTER_URL ) . '/css/page-reports.png" alt="Post Views Counter - Reports" />
<div id="pvc-reports-upgrade">
<div id="pvc-reports-modal">
<h2>' . esc_html__( 'Display Reports and Export Views to CSV/XML', 'post-views-counter' ) . '</h2>
<p>' . esc_html__( 'View detailed stats about the popularity of your content.', 'post-views-counter' ) . '</p>
<p>' . esc_html__( 'Generate views reports in any date range you need.', 'post-views-counter' ) . '</p>
<p>' . esc_html__( 'Export, download and share your website views data.', 'post-views-counter' ) . '</p>
<p><a href="' . esc_url( $this->pvc->get_postviewscounter_url( '/upgrade/', 'button', 'upgrade-to-pro', 'reports-placeholder-upgrade-button', 'free' ) ) . '" class="button button-secondary button-hero pvc-button" target="_blank">' . esc_html__( 'Upgrade to Pro', 'post-views-counter' ) . '</a></p>
</div>
</div>
</div>
</form>';
}
}