| @@ -1,12 +1,12 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * @package FireBox |
| 4 | - * @version 1.1.1 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 © 2022 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\Blocks\Generic; |
| @@ -48,12 +48,9 @@ | ||
| 48 | 48 | * @return string |
| 49 | 49 | */ |
| 50 | 50 | public function render_callback($attributes, $content) |
| 51 | 51 | { |
| 52 | - if (has_block('firebox/button')) | |
| 53 | - { | |
| 54 | - wp_enqueue_style('fb-block-button'); | |
| 55 | - } | |
| 52 | + wp_enqueue_style('fb-block-button'); | |
| 56 | 53 | |
| 57 | 54 | if (isset($attributes['blockFontType']) && isset($attributes['blockFontFamily']) && $attributes['blockFontType'] === 'google') |
| 58 | 55 | { |
| 59 | 56 | $fontWeight = isset($attributes['blockFontWeight']) ? $attributes['blockFontWeight'] : 400; |