| @@ -1,12 +1,12 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * @package FireBox |
| 4 | - * @version 3.1.10 Free | |
| 4 | + * @version 2.1.14 Free | |
| 5 | 5 | * |
| 6 | 6 | * @author FirePlugins <info@fireplugins.com> |
| 7 | 7 | * @link https://www.fireplugins.com |
| 8 | - * @copyright Copyright © 2026 FirePlugins All Rights Reserved | |
| 8 | + * @copyright Copyright © 2024 FirePlugins All Rights Reserved | |
| 9 | 9 | * @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | 12 | namespace FireBox\Core; |
| @@ -66,9 +66,11 @@ | ||
| 66 | 66 | * @return boolean |
| 67 | 67 | */ |
| 68 | 68 | public function canRun() |
| 69 | 69 | { |
| 70 | - if (is_user_logged_in() && current_user_can('read_fireboxes') && !get_option('hide-admin-bar', false)) | |
| 70 | + if (is_user_logged_in() && | |
| 71 | + current_user_can('manage_options') && | |
| 72 | + !get_option('hide-admin-bar', false)) | |
| 71 | 73 | { |
| 72 | 74 | return true; |
| 73 | 75 | } |
| 74 | 76 | |
| @@ -115,9 +117,9 @@ | ||
| 115 | 117 | * @return void |
| 116 | 118 | */ |
| 117 | 119 | public function main_menu($wp_admin_bar) |
| 118 | 120 | { |
| 119 | - $logo = '<img src="' . FBOX_MEDIA_ADMIN_URL . 'images/logo_white.svg' . '" width="22" height="22" alt="firebox logo" />'; | |
| 121 | + $logo = '<img src="' . FBOX_MEDIA_ADMIN_URL . 'images/logo_white.svg' . '" alt="firebox logo" />'; | |
| 120 | 122 | |
| 121 | 123 | $wp_admin_bar->add_menu( |
| 122 | 124 | [ |
| 123 | 125 | 'id' => 'firebox-menu', |
| @@ -178,9 +180,9 @@ | ||
| 178 | 180 | [ |
| 179 | 181 | 'parent' => 'firebox-menu', |
| 180 | 182 | 'id' => 'firebox-menu-support', |
| 181 | 183 | 'title' => fpframework()->_('FPF_SUPPORT'), |
| 182 | - 'href' => \FPFramework\Base\Functions::getUTMURL(FPF_SUPPORT_URL . '?topic=Pre-sale Question', null, 'misc', 'contact') | |
| 184 | + 'href' => FPF_SUPPORT_URL | |
| 183 | 185 | ] |
| 184 | 186 | ); |
| 185 | 187 | } |
| 186 | 188 | |
| @@ -236,9 +238,9 @@ | ||
| 236 | 238 | [ |
| 237 | 239 | 'parent' => 'firebox-menu', |
| 238 | 240 | 'id' => 'firebox-menu-upgrade', |
| 239 | 241 | 'title' => fpframework()->_('FPF_UPGRADE_TO_PRO'), |
| 240 | - 'href' => sprintf(FBOX_GO_PRO_URL, 'pro'), | |
| 242 | + 'href' => FBOX_GO_PRO_URL, | |
| 241 | 243 | 'meta' => [ |
| 242 | 244 | 'class' => 'firebox-go-pro-yellow-link' |
| 243 | 245 | ] |
| 244 | 246 | ] |