PluginProbe ʕ •ᴥ•ʔ
Post Views Counter / 1.7.6
Post Views Counter v1.7.6
1.7.13 1.7.12 1.7.11 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.2.0 1.2.1 1.2.10 1.2.11 1.2.12 1.2.13 1.2.14 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3 1.3.1 1.3.10 1.3.11 1.3.12 1.3.13 1.3.2 1.3.2.1 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 1.6.0 1.6.1 1.7.0 1.7.1 1.7.10 1.7.2 1.7.3 1.7.4 1.7.5 1.7.6 1.7.7 1.7.8 1.7.9
post-views-counter / includes / class-settings-reports.php
post-views-counter / includes Last commit date
class-admin.php 4 months ago class-columns-modal.php 4 months ago class-columns.php 4 months ago class-counter.php 4 months ago class-crawler-detect.php 4 months ago class-cron.php 4 months ago class-dashboard.php 4 months ago class-frontend.php 4 months ago class-functions.php 4 months ago class-import.php 4 months ago class-integration-gutenberg.php 4 months ago class-integrations.php 4 months ago class-query.php 4 months ago class-settings-api.php 4 months ago class-settings-display.php 4 months ago class-settings-general.php 4 months ago class-settings-integrations.php 4 months ago class-settings-other.php 4 months ago class-settings-reports.php 4 months ago class-settings.php 4 months ago class-toolbar.php 4 months ago class-traffic-signals.php 4 months ago class-update.php 4 months ago class-widgets.php 4 months ago functions.php 4 months ago
class-settings-reports.php
67 lines
1 <?php
2 // exit if accessed directly
3 if ( ! defined( 'ABSPATH' ) )
4 exit;
5
6 /**
7 * Post_Views_Counter_Settings_Reports class.
8 *
9 * @class Post_Views_Counter_Settings_Reports
10 */
11 class Post_Views_Counter_Settings_Reports {
12
13 private $pvc;
14
15 /**
16 * Class constructor.
17 *
18 * @return void
19 */
20 public function __construct() {
21 $this->pvc = Post_Views_Counter();
22 }
23
24 /**
25 * Get sections for reports tab.
26 *
27 * @return array
28 */
29 public function get_sections() {
30 return [
31 'post_views_counter_reports_settings' => [
32 'tab' => 'reports',
33 'callback' => [ $this, 'section_reports_placeholder' ]
34 ]
35 ];
36 }
37
38 /**
39 * Get fields for reports tab.
40 *
41 * @return array
42 */
43 public function get_fields() {
44 return [];
45 }
46
47 /**
48 * Reports page placeholder.
49 */
50 public function section_reports_placeholder() {
51 echo '
52 <form action="#">
53 <div id="pvc-reports-placeholder">
54 <img id="pvc-reports-bg" src="' . esc_url( POST_VIEWS_COUNTER_URL ) . '/css/page-reports.png" alt="Post Views Counter - Reports" />
55 <div id="pvc-reports-upgrade">
56 <div id="pvc-reports-modal">
57 <h2>' . esc_html__( 'Display Reports and Export Views to CSV/XML', 'post-views-counter' ) . '</h2>
58 <p>' . esc_html__( 'View detailed stats about the popularity of your content.', 'post-views-counter' ) . '</p>
59 <p>' . esc_html__( 'Generate views reports in any date range you need.', 'post-views-counter' ) . '</p>
60 <p>' . esc_html__( 'Export, download and share your website views data.', 'post-views-counter' ) . '</p>
61 <p><a href="https://postviewscounter.com/upgrade/?utm_source=post-views-counter-lite&utm_medium=button&utm_campaign=upgrade-to-pro" class="button button-secondary button-hero pvc-button" target="_blank">' . esc_html__( 'Upgrade to Pro', 'post-views-counter' ) . '</a></p>
62 </div>
63 </div>
64 </div>
65 </form>';
66 }
67 }