| 1 |
<?php |
| 2 |
/** |
| 3 |
* Render compatibility notices on the settings page. |
| 4 |
* |
| 5 |
* @var array $notices Compatibility notices. |
| 6 |
*/ |
| 7 |
|
| 8 |
?> |
| 9 |
<p class="description"> |
| 10 |
<span class="dashicons dashicons-warning" style="color: red;"></span> |
| 11 |
<?php esc_html_e( 'The following items might need an upgrade or manual setup for compatibility.', 'image-source-control-isc' ); ?> |
| 12 |
</p> |
| 13 |
<ul> |
| 14 |
<?php foreach ( $notices as $notice ) : ?> |
| 15 |
<li> |
| 16 |
<strong><?php echo esc_html( $notice['name'] ); ?></strong> |
| 17 |
<?php if ( ! empty( $notice['description'] ) ) : ?> |
| 18 |
: <?php echo esc_html( $notice['description'] ); ?> |
| 19 |
<?php endif; ?> |
| 20 |
<?php if ( ! empty( $notice['manual_url'] ) ) : ?> |
| 21 |
<a href="<?php echo esc_url( $notice['manual_url'] ); ?>"><?php esc_html_e( 'Manual', 'image-source-control-isc' ); ?></a> |
| 22 |
<?php endif; ?> |
| 23 |
<?php if ( ! empty( $notice['show_pro_link'] ) && ! \ISC\Plugin::is_pro() ) : ?> |
| 24 |
<?php echo ISC\Admin_Utils::get_pro_link( 'compatibility-' . sanitize_title( $notice['name'] ) ); ?> |
| 25 |
<?php endif; ?> |
| 26 |
</li> |
| 27 |
<?php endforeach; ?> |
| 28 |
</ul> |
| 29 |
|