@@ -38,9 +38,9 @@ discard block |
||
38 | 38 | if (is_admin()) { |
39 | 39 | add_action('admin_enqueue_scripts', NS . 'enqueueComponentScripts'); |
40 | 40 | // add image to the flexible content component name |
41 | - add_filter('acf/fields/flexible_content/layout_title', function ($title, $field, $layout, $i) { |
|
41 | + add_filter('acf/fields/flexible_content/layout_title', function($title, $field, $layout, $i) { |
|
42 | 42 | $componentPath = "Components/" . ucfirst($layout['name']) . "/"; |
43 | - $componentPreviewDesktopPath = Asset::requirePath($componentPath . 'preview-desktop.jpg') ; |
|
43 | + $componentPreviewDesktopPath = Asset::requirePath($componentPath . 'preview-desktop.jpg'); |
|
44 | 44 | $componentPreviewDesktopUrl = Asset::requireUrl($componentPath . 'preview-desktop.jpg'); |
45 | 45 | if (is_file($componentPreviewDesktopPath)) { |
46 | 46 | $newTitle = '<span class="flyntComponentPreview">'; |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | } else { |
55 | 55 | add_action('wp_enqueue_scripts', NS . 'enqueueComponentScripts'); |
56 | 56 | // adds Component Previews button to admin bar on front-end when logged in |
57 | - add_action('admin_bar_menu', function ($wpAdminBar) { |
|
57 | + add_action('admin_bar_menu', function($wpAdminBar) { |
|
58 | 58 | $title = __('Component Previews', 'flynt-starter-theme'); |
59 | 59 | $wpAdminBar->add_menu([ |
60 | 60 | 'id' => 'toggleComponentPreviews', |