@@ -5,14 +5,14 @@ discard block |
||
| 5 | 5 | |
| 6 | 6 | define(__NAMESPACE__ . '\NS', __NAMESPACE__ . '\\'); |
| 7 | 7 | |
| 8 | -add_action('wp_enqueue_scripts', function () { |
|
| 8 | +add_action('wp_enqueue_scripts', function() { |
|
| 9 | 9 | $data = [ |
| 10 | 10 | 'templateDirectoryUri' => get_template_directory_uri() . '/dist', |
| 11 | 11 | ]; |
| 12 | 12 | wp_localize_script('Flynt/assets/auth', 'wpData', $data); |
| 13 | 13 | }); |
| 14 | 14 | |
| 15 | -add_action('admin_enqueue_scripts', function () { |
|
| 15 | +add_action('admin_enqueue_scripts', function() { |
|
| 16 | 16 | $data = [ |
| 17 | 17 | 'templateDirectoryUri' => get_template_directory_uri() . '/dist', |
| 18 | 18 | ]; |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | if (is_user_logged_in() || is_admin()) { |
| 24 | 24 | if (is_admin()) { |
| 25 | 25 | // add image to the flexible content component name |
| 26 | - add_filter('acf/fields/flexible_content/layout_title', function ($title, $field, $layout, $i) { |
|
| 26 | + add_filter('acf/fields/flexible_content/layout_title', function($title, $field, $layout, $i) { |
|
| 27 | 27 | $componentName = ucfirst($layout['name']); |
| 28 | 28 | $componentPath = "Components/{$componentName}"; |
| 29 | 29 | $componentPreviewDesktopPath = Asset::requirePath("{$componentPath}/preview-desktop.jpg"); |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | }, 11, 4); |
| 40 | 40 | } else { |
| 41 | 41 | // adds Component Previews button to admin bar on front-end when logged in |
| 42 | - add_action('admin_bar_menu', function ($wpAdminBar) { |
|
| 42 | + add_action('admin_bar_menu', function($wpAdminBar) { |
|
| 43 | 43 | $title = __('Component Previews', 'flynt-starter-theme'); |
| 44 | 44 | $wpAdminBar->add_node([ |
| 45 | 45 | 'id' => 'toggleComponentPreviews', |