PluginProbe ʕ •ᴥ•ʔ
Matomo Analytics – Powerful, Privacy-First Insights for WordPress / 5.12.1
Matomo Analytics – Powerful, Privacy-First Insights for WordPress v5.12.1
5.12.1 5.12.0 5.11.1 5.11.0 5.10.2 5.10.1 trunk 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.1.0 1.1.1 1.1.2 1.1.3 1.2.0 1.3.0 1.3.1 1.3.2 4.0.0 4.0.1 4.0.2 4.0.3 4.0.4 4.1.0 4.1.1 4.1.2 4.1.3 4.10.0 4.11.0 4.12.0 4.13.0 4.13.2 4.13.3 4.13.4 4.13.5 4.14.0 4.14.1 4.14.2 4.15.0 4.15.1 4.15.2 4.15.3 4.2.0 4.3.0 4.3.1 4.4.1 4.4.2 4.5.0 4.6.0 5.0.1 5.0.2 5.0.3 5.0.4 5.0.5 5.0.6 5.0.7 5.0.8 5.1.0 5.1.1 5.1.2 5.1.3 5.1.4 5.1.5 5.1.6 5.1.7 5.10.0 5.2.0 5.2.1 5.2.2 5.3.0 5.3.1 5.3.2 5.3.3 5.6.0 5.6.1 5.7.0 5.7.1 5.8.0 5.8.1 5.8.2
matomo / classes / WpMatomo / Admin / views / marketplace.php
matomo / classes / WpMatomo / Admin / views Last commit date
access.php 1 week ago adblocker-notice.php 3 months ago advanced_settings.php 1 week ago exclusion_settings.php 1 week ago geolocation_settings.php 1 week ago get_started.php 1 week ago import_wp_statistics.php 3 months ago info.php 1 week ago info_bug_report.php 2 years ago info_help.php 1 week ago info_high_traffic.php 1 week ago info_matomo_desc.php 1 year ago info_multisite.php 3 months ago info_newsletter.php 3 months ago info_shared.php 1 year ago marketplace.php 1 week ago marketplace_setup_wizard.php 4 months ago marketplace_setup_wizard_body.php 2 months ago marketplace_setup_wizard_body_redesign.php 1 month ago measurable_settings.php 2 years ago privacy_gdpr.php 4 years ago scheduled_tasks_failures.php 3 months ago settings.php 1 week ago settings_errors.php 4 years ago summary.php 3 months ago systemreport.php 1 week ago tracking.php 5 months ago update_notice_clear_cache.php 3 months ago whats-new-notifications.php 3 months ago
marketplace.php
102 lines
1 <?php
2 /**
3 * Matomo - free/libre analytics platform
4 *
5 * @link https://matomo.org
6 * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
7 * @package matomo
8 */
9
10 use WpMatomo\Admin\Marketplace\PopularFeatures;
11
12 if ( ! defined( 'ABSPATH' ) ) {
13 exit;
14 }
15
16 /** @var \WpMatomo\Settings $settings */
17 $matomo_extra_url_params = '&' . http_build_query(
18 [
19 'php' => PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION . '.' . PHP_RELEASE_VERSION,
20 'matomo' => $settings->get_global_option( 'core_version' ),
21 'wp_version' => ! empty( $GLOBALS['wp_version'] ) ? $GLOBALS['wp_version'] : '',
22 ]
23 );
24
25 /** @var string $matomo_currency */
26 /** @var string $matomo_marketplace_url */
27 /** @var \WpMatomo\Admin\MarketplaceSetupWizardBody $matomo_marketplace_setup_wizard_body */
28 ?>
29 <?php if ( ! empty( $valid_tabs ) ) { ?>
30 <h2 class="nav-tab-wrapper" style="margin-bottom:1em;">
31 <?php if ( in_array( 'marketplace', $valid_tabs, true ) ) { ?>
32 <a href="?page=matomo-marketplace&tab=marketplace"
33 class="nav-tab <?php echo ( 'marketplace' === $active_tab ) ? 'nav-tab-active' : ''; ?>"
34 ><?php esc_html_e( 'Welcome', 'matomo' ); ?></a>
35 <?php } ?>
36 <?php if ( in_array( 'install', $valid_tabs, true ) ) { ?>
37 <a href="?page=matomo-marketplace&tab=install"
38 class="nav-tab <?php echo ( 'install' === $active_tab ) ? 'nav-tab-active' : ''; ?>"
39 ><?php esc_html_e( 'Marketplace', 'matomo' ); ?></a>
40 <?php } ?>
41 <?php if ( in_array( 'subscriptions', $valid_tabs, true ) ) { ?>
42 <a href="?page=matomo-marketplace&tab=subscriptions"
43 class="nav-tab <?php echo 'subscriptions' === $active_tab ? 'nav-tab-active' : ''; ?>"><?php esc_html_e( 'Subscriptions', 'matomo' ); ?></a>
44 <?php } ?>
45 </h2>
46 <?php } ?>
47
48 <?php if ( $settings->is_network_enabled() && ! is_network_admin() && is_super_admin() ) { ?>
49 <div class="matomo-notice updated notice">
50 <p><?php esc_html_e( 'Only WordPress network admins can see this page', 'matomo' ); ?></p>
51 </div>
52 <?php } ?>
53
54 <?php
55 if ( isset( $marketplace_setup_wizard ) && 'marketplace' !== $active_tab ) {
56 $marketplace_setup_wizard->show();
57 return;
58 }
59 ?>
60
61 <script>
62 window.jQuery(document).ready(function ($) {
63 $('body').on('click', '.download-plugin', function (e) {
64 if ($(e.target).is('.button-secondary')) {
65 return;
66 }
67
68 var step = $(e.target).closest('#matomo-step1');
69 step.find('.step-number').removeClass('current').removeClass('matomo-primary-color-bg');
70 step.find('.button-primary').removeClass('button-primary').addClass('button-secondary');
71
72 var step2 = step.siblings('#matomo-step2');
73 step2.find('.step-number').addClass('current').addClass('matomo-primary-color-bg');
74 step2.find('.button-secondary').removeClass('button-secondary').addClass('button-primary');
75 });
76 });
77 </script>
78 <div id="matomo-for-marketplace-welcome">
79 <h1><?php matomo_header_icon(); ?><?php esc_html_e( 'What is the Matomo for WordPress Marketplace', 'matomo' ); ?></h1>
80
81 <p>
82 <?php esc_html_e( 'Matomo for WordPress includes core analytics to understand your visitors, behaviour, acquisition and ecommerce performance.', 'matomo' ); ?>
83 </p>
84 <p>
85 <?php esc_html_e( 'As your needs grow, you can extend your analytics with additional Matomo features.', 'matomo' ); ?>
86 </p>
87 <p>
88 <?php esc_html_e( 'The Marketplace lets you discover and install these features directly in Matomo for WordPress, so you can unlock more advanced insights when you need them.', 'matomo' ); ?>
89 </p>
90
91 <?php
92 $matomo_marketplace_setup_wizard_body->show();
93 ?>
94
95 <h1 style="margin-top: 1em;"><?php esc_html_e( 'Most popular features', 'matomo' ); ?></h1>
96 <p style="margin-bottom: 20px;"><?php esc_html_e( 'Developed by Matomo and partners, install these on top of your Matomo plugin for more advanced analytics.', 'matomo' ); ?></p>
97
98 <?php
99 ( new PopularFeatures() )->show();
100 ?>
101 </div>
102