popular-features.php
38 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 | /** @var array $matomo_popular_features */ |
| 11 | ?> |
| 12 | |
| 13 | <?php foreach ( $matomo_popular_features as $matomo_feature_slug => $matomo_feature_info ) { ?> |
| 14 | <div class="matomo-popular-feature"> |
| 15 | <div class="description"> |
| 16 | <h3 class="matomo-feature-header matomo-primary-color-fg"> |
| 17 | <span><?php echo esc_html( $matomo_feature_info['name'] ); ?></span> |
| 18 | <?php if ( ! empty( $matomo_feature_info['price'] ) ) { ?> |
| 19 | <span class="matomo-price"><?php echo esc_html( $matomo_feature_info['price'] ); ?></span> |
| 20 | <?php } ?> |
| 21 | </h3> |
| 22 | <p><?php echo esc_html( $matomo_feature_info['desc'] ); ?></p> |
| 23 | </div> |
| 24 | |
| 25 | <?php if ( isset( $matomo_feature_info['img'] ) ) { ?> |
| 26 | <div |
| 27 | class="cover-image" |
| 28 | style="background-image: url(<?php echo esc_attr( plugins_url( 'assets/img/suggestions/' . $matomo_feature_info['img'], MATOMO_ANALYTICS_FILE ) ); ?>)" |
| 29 | > |
| 30 | </div> |
| 31 | <?php } ?> |
| 32 | |
| 33 | <a class="learn-more" href="<?php echo esc_attr( 'https://plugins.matomo.org/' . $matomo_feature_slug . '?wp=1' ); ?>" target="_blank"> |
| 34 | <button class="button-primary"><?php esc_html_e( 'Learn more', 'matomo' ); ?></button> |
| 35 | </a> |
| 36 | </div> |
| 37 | <?php } ?> |
| 38 |