| @@ -1,12 +1,12 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * @package FireBox |
| 4 | - * @version 3.1.13 Free | |
| 4 | + * @version 2.0.12 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 © 2023 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', |
| @@ -139,10 +141,10 @@ | ||
| 139 | 141 | $wp_admin_bar->add_menu( |
| 140 | 142 | [ |
| 141 | 143 | 'parent' => 'firebox-menu', |
| 142 | 144 | 'id' => 'firebox-menu-all-boxes', |
| 143 | - 'title' => firebox()->_('FB_CAMPAIGNS'), | |
| 144 | - 'href' => admin_url('admin.php?page=firebox-campaigns') | |
| 145 | + 'title' => firebox()->_('FB_POPUPS'), | |
| 146 | + 'href' => admin_url('edit.php?post_type=firebox') | |
| 145 | 147 | ] |
| 146 | 148 | ); |
| 147 | 149 | } |
| 148 | 150 | |
| @@ -158,9 +160,9 @@ | ||
| 158 | 160 | $wp_admin_bar->add_menu( |
| 159 | 161 | [ |
| 160 | 162 | 'parent' => 'firebox-menu', |
| 161 | 163 | 'id' => 'firebox-menu-new-box', |
| 162 | - 'title' => firebox()->_('FB_NEW_CAMPAIGN'), | |
| 164 | + 'title' => firebox()->_('FB_NEW_POPUP'), | |
| 163 | 165 | 'href' => admin_url('post-new.php?post_type=firebox') |
| 164 | 166 | ] |
| 165 | 167 | ); |
| 166 | 168 | } |
| @@ -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 | |
| @@ -235,12 +237,12 @@ | ||
| 235 | 237 | $wp_admin_bar->add_menu( |
| 236 | 238 | [ |
| 237 | 239 | 'parent' => 'firebox-menu', |
| 238 | 240 | 'id' => 'firebox-menu-upgrade', |
| 239 | - 'title' => fpframework()->_('FPF_UPGRADE_TO_PRO'), | |
| 240 | - 'href' => sprintf(FBOX_GO_PRO_URL, 'pro'), | |
| 241 | + 'title' => fpframework()->_('FPF_UPGRADE'), | |
| 242 | + 'href' => FBOX_GO_PRO_URL, | |
| 241 | 243 | 'meta' => [ |
| 242 | - 'class' => 'firebox-go-pro-yellow-link' | |
| 244 | + 'class' => 'fb-yellow-link' | |
| 243 | 245 | ] |
| 244 | 246 | ] |
| 245 | 247 | ); |
| 246 | 248 | } |