| @@ -5,7 +5,7 @@ | ||
| 5 | 5 | use Flynt\Utils\Component; | 
| 6 | 6 | use Flynt; | 
| 7 | 7 | |
| 8 | -add_filter('Flynt/addComponentData?name=ListFacts', function ($data) { | |
| 8 | +add_filter('Flynt/addComponentData?name=ListFacts', function($data) { | |
| 9 | 9 |      Component::enqueueAssets('ListFacts', [ | 
| 10 | 10 | [ | 
| 11 | 11 | 'name' => 'countup', | 
| @@ -5,7 +5,7 @@ | ||
| 5 | 5 | use Flynt\Utils\Component; | 
| 6 | 6 | use Flynt; | 
| 7 | 7 | |
| 8 | -add_filter('Flynt/addComponentData?name=GridPostsSlider', function ($data) { | |
| 8 | +add_filter('Flynt/addComponentData?name=GridPostsSlider', function($data) { | |
| 9 | 9 |      Component::enqueueAssets('GridPostsSlider', [ | 
| 10 | 10 | [ | 
| 11 | 11 | 'name' => 'slick-carousel', | 
| @@ -38,7 +38,7 @@ 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 | $componentName = ucfirst($layout['name']); | 
| 43 | 43 |                  $componentPath = "Components/{$componentName}"; | 
| 44 | 44 |                  $componentPreviewDesktopPath = Asset::requirePath("{$componentPath}/preview-desktop.jpg"); | 
| @@ -55,7 +55,7 @@ discard block | ||
| 55 | 55 |          } else { | 
| 56 | 56 |              add_action('wp_enqueue_scripts', NS . 'enqueueComponentScripts'); | 
| 57 | 57 | // adds Component Previews button to admin bar on front-end when logged in | 
| 58 | -            add_action('admin_bar_menu', function ($wpAdminBar) { | |
| 58 | +            add_action('admin_bar_menu', function($wpAdminBar) { | |
| 59 | 59 |                  $title = __('Component Previews', 'flynt-starter-theme'); | 
| 60 | 60 | $wpAdminBar->add_node([ | 
| 61 | 61 | 'id' => 'toggleComponentPreviews', | 
| @@ -3,7 +3,6 @@ | ||
| 3 | 3 | namespace Flynt\Features\PasswordForm; | 
| 4 | 4 | |
| 5 | 5 | use Timber\Timber; | 
| 6 | -use Timber\Post; | |
| 7 | 6 | |
| 8 | 7 |  add_filter('the_password_form', function ($output) { | 
| 9 | 8 | $context = Timber::get_context(); | 
| @@ -8,7 +8,7 @@ | ||
| 8 | 8 |  add_filter('the_password_form', function ($output) { | 
| 9 | 9 | $context = Timber::get_context(); | 
| 10 | 10 | $context['form'] = [ | 
| 11 | -      'url' => site_url('/wp-login.php?action=postpass', 'login_post') | |
| 11 | +        'url' => site_url('/wp-login.php?action=postpass', 'login_post') | |
| 12 | 12 | ]; | 
| 13 | 13 | |
| 14 | 14 |      return Timber::fetch('index.twig', $context); | 
| @@ -5,7 +5,7 @@ | ||
| 5 | 5 | use Timber\Timber; | 
| 6 | 6 | use Timber\Post; | 
| 7 | 7 | |
| 8 | -add_filter('the_password_form', function ($output) { | |
| 8 | +add_filter('the_password_form', function($output) { | |
| 9 | 9 | $context = Timber::get_context(); | 
| 10 | 10 | $context['form'] = [ | 
| 11 | 11 |        'url' => site_url('/wp-login.php?action=postpass', 'login_post') | 
| @@ -6,7 +6,7 @@ | ||
| 6 | 6 | use Flynt\Utils\Options; | 
| 7 | 7 | use Flynt; | 
| 8 | 8 | |
| 9 | -add_filter('Flynt/addComponentData?name=ListPosts', function ($data) { | |
| 9 | +add_filter('Flynt/addComponentData?name=ListPosts', function($data) { | |
| 10 | 10 |      Component::enqueueAssets('ListPosts'); | 
| 11 | 11 | |
| 12 | 12 | return $data; |