| @@ -4,8 +4,9 @@ | ||
| 4 | 4 | |
| 5 | 5 | use Tableberg; |
| 6 | 6 | |
| 7 | 7 | class Tableberg_Admin { |
| 8 | + private $plugin_name; | |
| 8 | 9 | private $plugin_url; |
| 9 | 10 | |
| 10 | 11 | public function __construct() { |
| 11 | 12 | |
| @@ -97,17 +98,19 @@ | ||
| 97 | 98 | ], |
| 98 | 99 | ], |
| 99 | 100 | ]; |
| 100 | 101 | |
| 102 | + $has_pro_addon = defined('TABLEBERG_PRO_VERSION'); | |
| 101 | 103 | global $tp_fs; |
| 102 | 104 | if (isset($tp_fs)) { |
| 103 | 105 | $data['misc'] = [ |
| 104 | - 'pro_status' => $tp_fs->is__premium_only() | |
| 105 | - && $tp_fs->can_use_premium_code(), | |
| 106 | + 'pro_status' => $has_pro_addon | |
| 107 | + || ($tp_fs->is__premium_only() | |
| 108 | + && $tp_fs->can_use_premium_code()), | |
| 106 | 109 | ]; |
| 107 | 110 | } else { |
| 108 | 111 | $data['misc'] = [ |
| 109 | - 'pro_status' => false, | |
| 112 | + 'pro_status' => $has_pro_addon, | |
| 110 | 113 | ]; |
| 111 | 114 | } |
| 112 | 115 | |
| 113 | 116 | $data = array_merge($data, $this->welcome_page()); |
| @@ -173,9 +176,9 @@ | ||
| 173 | 176 | $diff_interval = round(($datetime2->format('U') - $datetime1->format('U')) / (60 * 60 * 24)); |
| 174 | 177 | |
| 175 | 178 | if ($diff_interval >= 21 && get_option('tableberg_review_notify') == 'no') { |
| 176 | 179 | ?> |
| 177 | - <div class="tableberg-review-notice notice notice-info" style="display: inline-block; position: relative; padding:0.5rem 1.5rem"> | |
| 180 | + <div class="tableberg-review-notice notice notice-info" style="position: relative; padding:0.5rem 1.5rem"> | |
| 178 | 181 | <button type="button" class="notice-dismiss Tableberg_HideReview_Notice" style="position: absolute; top: 2px; right: 2px;"> |
| 179 | 182 | <span class="screen-reader-text"><?php esc_html_e('Dismiss this notice.', 'tableberg'); ?></span> |
| 180 | 183 | </button> |
| 181 | 184 | <p style="font-size: 14px; line-height: 2;padding-right:2rem"> |