| 1 |
<?php |
| 2 |
namespace MBSocial; |
| 3 |
defined('ABSPATH') or die('No direct access permitted'); |
| 4 |
|
| 5 |
$header = array( |
| 6 |
'title' => __('MaxButtons Social Share Addon','mbsocial') |
| 7 |
); |
| 8 |
|
| 9 |
$admin = mbSocial()->admin(); |
| 10 |
$admin->header($header); |
| 11 |
|
| 12 |
$action = 'install-plugin'; |
| 13 |
$slug = 'maxbuttons'; |
| 14 |
$url = wp_nonce_url( |
| 15 |
add_query_arg( |
| 16 |
array( |
| 17 |
'action' => $action, |
| 18 |
'plugin' => $slug |
| 19 |
), |
| 20 |
admin_url( 'update.php' ) |
| 21 |
), |
| 22 |
$action.'_'.$slug |
| 23 |
); |
| 24 |
|
| 25 |
?> |
| 26 |
<div class='mb-message warning'> |
| 27 |
<h3><?php _e('Update MaxButtons', 'mb-social'); ?></h3> |
| 28 |
<p> |
| 29 |
<?php printf(__('MaxButtons Social Share requires at least %s version %s of MaxButtons or MaxButtons PRO</a> . You are running version %s. A newer version is required to function properly. Sorry for the inconvience.', 'mbsocial'), "<a href='$url'>", MBSOCIAL_REQUIRED_MB, MAXBUTTONS_VERSION_NUM, '</a>'); ?> |
| 30 |
</p> |
| 31 |
</div> |
| 32 |
|