access.php
3 weeks ago
adblocker-notice.php
3 months ago
advanced_settings.php
3 weeks ago
exclusion_settings.php
3 weeks ago
geolocation_settings.php
3 weeks ago
get_started.php
3 weeks ago
import_wp_statistics.php
3 months ago
info.php
3 weeks ago
info_bug_report.php
2 years ago
info_help.php
3 weeks ago
info_high_traffic.php
3 weeks ago
info_matomo_desc.php
1 year ago
info_multisite.php
4 months ago
info_newsletter.php
3 months ago
info_shared.php
1 year ago
marketplace.php
3 weeks ago
marketplace_setup_wizard.php
5 months ago
marketplace_setup_wizard_body.php
3 months ago
marketplace_setup_wizard_body_redesign.php
2 months ago
measurable_settings.php
2 years ago
privacy_gdpr.php
4 years ago
scheduled_tasks_failures.php
3 months ago
settings.php
3 weeks ago
settings_errors.php
4 years ago
summary.php
3 months ago
systemreport.php
3 weeks ago
tracking.php
6 months ago
update_notice_clear_cache.php
3 months ago
whats-new-notifications.php
3 months ago
marketplace_setup_wizard_body.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 | if ( ! defined( 'ABSPATH' ) ) { |
| 11 | exit; |
| 12 | } |
| 13 | |
| 14 | /** |
| 15 | * @var bool $user_can_upload_plugins |
| 16 | * @var bool $user_can_activate_plugins |
| 17 | * @var bool $is_plugin_installed |
| 18 | * @var bool $matomo_show_title |
| 19 | * @var bool $matomo_is_plugin_active |
| 20 | * @var string $matomo_marketplace_url |
| 21 | */ |
| 22 | ?> |
| 23 | <div class="matomo-marketplace-wizard-body"> |
| 24 | <?php if ( $user_can_upload_plugins && ! $is_plugin_installed ) { ?> |
| 25 | <?php if ( $matomo_show_title ) { ?> |
| 26 | <h1><?php esc_html_e( 'Setup the Matomo Marketplace in two easy steps', 'matomo' ); ?></h1> |
| 27 | <?php } ?> |
| 28 | |
| 29 | <div class="wizard-steps-header"> |
| 30 | <p class="step-title">Step 1</p> |
| 31 | <div class="divider"></div> |
| 32 | <p class="step-title">Step 2</p> |
| 33 | </div> |
| 34 | <div class="wizard-steps"> |
| 35 | <div class="step"> |
| 36 | |
| 37 | <p><?php echo sprintf( esc_html__( 'Download the %1$sMatomo Marketplace for WordPress%2$s plugin.', 'matomo' ), '<em>', '</em>' ); ?></p> |
| 38 | |
| 39 | <a class="button-primary download-plugin" rel="noreferrer noopener" target="_blank" href="<?php echo esc_attr( $matomo_marketplace_url ); ?>"> |
| 40 | <?php esc_html_e( 'Download', 'matomo' ); ?> |
| 41 | </a> |
| 42 | </div> |
| 43 | |
| 44 | <div class="divider"></div> |
| 45 | |
| 46 | <div class="step"> |
| 47 | <p><?php esc_html_e( 'Upload and install the plugin.', 'matomo' ); ?></p> |
| 48 | |
| 49 | <a class="button-primary open-plugin-upload" target="_blank" href="plugin-install.php?tab=upload&mtm_marketplace_install=1"> |
| 50 | <?php esc_html_e( 'Go to plugins admin', 'matomo' ); ?> → |
| 51 | </a> |
| 52 | </div> |
| 53 | </div> |
| 54 | <div class="wizard-footer"> |
| 55 | <p><em> |
| 56 | <?php |
| 57 | echo sprintf( |
| 58 | esc_html__( 'Don\'t want to use the Matomo Marketplace? You can download Matomo plugins directly on %1$sour marketplace%2$s, but keep in mind, you won\'t receive automatic updates unless you use the Matomo Marketplace plugin.', 'matomo' ), |
| 59 | '<a target="_blank" rel="noreferrer noopener" href="https://plugins.matomo.org/?wp=1">', |
| 60 | '</a>' |
| 61 | ); |
| 62 | ?> |
| 63 | </em></p> |
| 64 | <p class="wizard-waiting-for" style="display:none;"> |
| 65 | <strong><?php esc_html_e( 'Waiting for plugin activation...', 'matomo' ); ?></strong> |
| 66 | </p> |
| 67 | <p class="wizard-reloading" style="display:none;"> |
| 68 | <strong><?php esc_html_e( 'Loading marketplace...', 'matomo' ); ?></strong> |
| 69 | </p> |
| 70 | </div> |
| 71 | <?php } elseif ( $user_can_activate_plugins && $is_plugin_installed && ! $matomo_is_plugin_active ) { ?> |
| 72 | <?php if ( $matomo_show_title ) { ?> |
| 73 | <h1><?php esc_html_e( 'Activate the Matomo Marketplace for WordPress plugin', 'matomo' ); ?></h1> |
| 74 | <?php } ?> |
| 75 | |
| 76 | <p><?php esc_html_e( 'The Matomo Marketplace plugin is installed but not active. Activate it by clicking the button below.', 'matomo' ); ?></p> |
| 77 | |
| 78 | <p> |
| 79 | <a class="button-primary activate-plugin" rel="noreferrer noopener" href=""> |
| 80 | <?php esc_html_e( 'Activate', 'matomo' ); ?> |
| 81 | </a> |
| 82 | </p> |
| 83 | <p class="wizard-waiting-for" style="display:none;"> |
| 84 | <?php esc_html_e( 'Waiting for plugin activation...', 'matomo' ); ?> |
| 85 | </p> |
| 86 | <p class="wizard-reloading" style="display:none;"> |
| 87 | <?php esc_html_e( 'Loading marketplace...', 'matomo' ); ?> |
| 88 | </p> |
| 89 | <?php } elseif ( ! $matomo_is_plugin_active ) { ?> |
| 90 | <p> |
| 91 | <?php |
| 92 | echo sprintf( |
| 93 | esc_html__( 'To manage Matomo plugins from the Matomo Marketplace, the %1$sMatomo Marketplace for WordPress%2$s must be installed.', 'matomo' ), |
| 94 | '<a href="https://matomo.org/faq/wordpress/how-do-i-install-a-matomo-marketplace-plugin-in-matomo-for-wordpress/" target="_blank" rel="noreferrer noopener">', |
| 95 | '</a>' |
| 96 | ); |
| 97 | ?> |
| 98 | </p> |
| 99 | <p><?php esc_html_e( 'Unfortunately, you do not appear to have the ability to upload plugin archives. Please ask your WordPress site administrator to complete this setup for you.', 'matomo' ); ?></p> |
| 100 | <?php } ?> |
| 101 | </div> |
| 102 |