clearfy-component-card.php
7 months ago
modal-bulk-optimization.php
7 months ago
modal-webp-conversion.php
7 months ago
part-bulk-convert-avif-button.php
7 months ago
part-bulk-convert-webp-button.php
7 months ago
part-bulk-optimization-button.php
7 months ago
part-bulk-optimization-log.php
7 months ago
part-bulk-optimization-select-site.php
7 months ago
part-bulk-optimization-servers.php
7 months ago
part-bulk-optimization-statistic.php
7 months ago
part-bulk-optimization-tabs.php
7 months ago
part-bulk-optimization-total.php
7 months ago
part-page-header.php
7 months ago
part-settings-page-error-log-options.php
7 months ago
clearfy-component-card.php
43 lines
| 1 | <?php |
| 2 | |
| 3 | defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' ); |
| 4 | |
| 5 | /** |
| 6 | * @var array $data |
| 7 | * @var WRIO_Page $page |
| 8 | */ |
| 9 | |
| 10 | if ( ! class_exists( 'WCL_Plugin' ) ) { |
| 11 | return; |
| 12 | } |
| 13 | |
| 14 | $install_button = WCL_Plugin::app()->getInstallComponentsButton( 'WordPress', 'robin-image-optimizer/robin-image-optimizer.php' ); |
| 15 | $delete_button = WCL_Plugin::app()->getDeleteComponentsButton( 'WordPress', 'robin-image-optimizer/robin-image-optimizer.php' ); |
| 16 | |
| 17 | $license_page_url = WRIO_Plugin::app()->getPluginPageUrl( 'rio_license' ); |
| 18 | ?> |
| 19 | <div class="plugin-card"> |
| 20 | <div class="plugin-card-top"> |
| 21 | <div class="name column-name"> |
| 22 | <h3> |
| 23 | <a href="https://wordpress.org/plugins/robin-image-optimizer/" class="thickbox open-plugin-details-modal"> |
| 24 | <?php _e( 'Robin image optimizer', 'robin-image-optimizer' ); ?> |
| 25 | <img src="<?php echo WCL_PLUGIN_URL; ?>/admin/assets/img/rio-icon-128x128.png" class="plugin-icon" alt=""> |
| 26 | </a> |
| 27 | </h3> |
| 28 | </div> |
| 29 | <div class="desc column-description"> |
| 30 | <p><?php _e( 'Automatic image optimization without any quality loss. No limitations, no paid plans. The best WordPress image optimization plugin allows optimizing any amount of images for free!', 'robin-image-optimizer' ); ?></p> |
| 31 | </div> |
| 32 | </div> |
| 33 | <div class="plugin-card-bottom" style="text-align: right"> |
| 34 | <?php if ( ! wrio_is_license_activate() ) : ?> |
| 35 | <a href="<?php echo $license_page_url; ?>" class="button"> |
| 36 | <span class="dashicons dashicons-lock" style="font-size: 15px;line-height: 1.7;color: #ff5722;"></span> |
| 37 | <?php _e( 'License', 'robin-image-optimizer' ); ?> |
| 38 | </a> |
| 39 | <?php endif; ?> |
| 40 | <?php $delete_button->renderButton(); ?><?php $install_button->renderButton(); ?> |
| 41 | </div> |
| 42 | </div> |
| 43 |