| 1 |
<?php |
| 2 |
/** |
| 3 |
* Outputs the upgrade reasons to upgrade to a Pro product. |
| 4 |
* |
| 5 |
* @package WPZinc\Shared |
| 6 |
* @author WP Zinc |
| 7 |
*/ |
| 8 |
|
| 9 |
// Exit if accessed directly. |
| 10 |
if ( ! defined( 'ABSPATH' ) ) { |
| 11 |
exit; |
| 12 |
} |
| 13 |
|
| 14 |
if ( isset( $this->base->plugin->upgrade_reasons ) && is_array( $this->base->plugin->upgrade_reasons ) && count( $this->base->plugin->upgrade_reasons ) > 0 ) { |
| 15 |
foreach ( $this->base->plugin->upgrade_reasons as $reasons ) { |
| 16 |
?> |
| 17 |
<div class="wpzinc-option ignore-nth-child"> |
| 18 |
<strong><?php echo esc_html( $reasons[0] ); ?>:</strong> <?php echo esc_html( $reasons[1] ); ?> |
| 19 |
</div> |
| 20 |
<?php |
| 21 |
} |
| 22 |
?> |
| 23 |
|
| 24 |
<div class="wpzinc-option ignore-nth-child"> |
| 25 |
<strong><?php esc_html_e( 'Support', 'wp-to-buffer' ); ?>:</strong> <?php esc_html_e( 'Access to one on one email support', 'wp-to-buffer' ); ?> |
| 26 |
</div> |
| 27 |
|
| 28 |
<div class="wpzinc-option ignore-nth-child"> |
| 29 |
<strong><?php esc_html_e( 'Documentation', 'wp-to-buffer' ); ?>:</strong> <?php esc_html_e( 'Detailed documentation on how to install and configure the plugin', 'wp-to-buffer' ); ?> |
| 30 |
</div> |
| 31 |
|
| 32 |
<div class="wpzinc-option ignore-nth-child"> |
| 33 |
<strong><?php esc_html_e( 'Updates', 'wp-to-buffer' ); ?>:</strong> <?php esc_html_e( 'Receive one click update notifications, right within your WordPress Adminstration panel', 'wp-to-buffer' ); ?> |
| 34 |
</div> |
| 35 |
|
| 36 |
<div class="wpzinc-option ignore-nth-child"> |
| 37 |
<strong><?php esc_html_e( 'Seamless Upgrade', 'wp-to-buffer' ); ?>:</strong> <?php esc_html_e( 'Retain all current settings when upgrading to Pro', 'wp-to-buffer' ); ?> |
| 38 |
</div> |
| 39 |
|
| 40 |
<div class="wpzinc-option"> |
| 41 |
<a href="<?php echo esc_url( $this->base->dashboard->get_upgrade_url( 'settings_footer_upgrade' ) ); ?>" class="button button-primary" rel="noopener" target="_blank"> |
| 42 |
<?php esc_html_e( 'Upgrade Now', 'wp-to-buffer' ); ?> |
| 43 |
</a> |
| 44 |
</div> |
| 45 |
<?php |
| 46 |
} |
| 47 |
|