| 1 |
<?php |
| 2 |
/** |
| 3 |
* Outputs the Upgrade section 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 |
?> |
| 16 |
<hr class="wpzinc-upgrade-hr" /> |
| 17 |
<div class="wpzinc-upgrade"> |
| 18 |
<h3> |
| 19 |
<?php esc_html_e( 'Upgrade to Pro', 'wp-to-buffer' ); ?> |
| 20 |
</h3> |
| 21 |
|
| 22 |
<ul> |
| 23 |
<?php |
| 24 |
foreach ( $this->base->plugin->upgrade_reasons as $reasons ) { |
| 25 |
?> |
| 26 |
<li> |
| 27 |
<strong><?php echo esc_html( $reasons[0] ); ?></strong> |
| 28 |
<?php echo esc_html( $reasons[1] ); ?> |
| 29 |
</li> |
| 30 |
<?php |
| 31 |
} |
| 32 |
?> |
| 33 |
<li> |
| 34 |
<strong><?php esc_html_e( 'Support, Documentation and Updates', 'wp-to-buffer' ); ?></strong> |
| 35 |
<?php esc_html_e( 'Access to one on one email support, plus detailed documentation on how to install and configure the plugin and one click update notifications, right within the WordPress Administration panel.', 'wp-to-buffer' ); ?> |
| 36 |
</li> |
| 37 |
</ul> |
| 38 |
|
| 39 |
<a href="<?php echo esc_url( $this->base->dashboard->get_upgrade_url( 'settings_footer_upgrade' ) ); ?>" class="button button-primary button-large" target="_blank"><?php esc_html_e( 'Upgrade Now', 'wp-to-buffer' ); ?></a> |
| 40 |
<a href="<?php echo esc_url( $this->base->dashboard->get_upgrade_url( 'settings_footer_upgrade' ) ); ?>" class="button button-large" target="_blank"><?php esc_html_e( 'See all Features', 'wp-to-buffer' ); ?></a> |
| 41 |
</div> |
| 42 |
<?php |
| 43 |
} |
| 44 |
|