@@ -149,10 +149,10 @@ |
||
| 149 | 149 | } |
| 150 | 150 | if ($type === 'style') { |
| 151 | 151 | global $wp_styles; |
| 152 | - $repo =& $wp_styles; |
|
| 152 | + $repo = & $wp_styles; |
|
| 153 | 153 | } else { |
| 154 | 154 | global $wp_scripts; |
| 155 | - $repo =& $wp_scripts; |
|
| 155 | + $repo = & $wp_scripts; |
|
| 156 | 156 | } |
| 157 | 157 | |
| 158 | 158 | $asset = $repo->query($handle, 'registered'); |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -add_action('after_setup_theme', function () { |
|
| 3 | +add_action('after_setup_theme', function() { |
|
| 4 | 4 | add_theme_support('title-tag'); |
| 5 | 5 | add_theme_support('post-thumbnails'); |
| 6 | 6 | }); |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | use Flynt; |
| 6 | 6 | use Flynt\Utils\Oembed; |
| 7 | 7 | |
| 8 | -add_filter('Flynt/addComponentData?name=BlockVideoOembed', function ($data) { |
|
| 8 | +add_filter('Flynt/addComponentData?name=BlockVideoOembed', function($data) { |
|
| 9 | 9 | $data['video'] = Oembed::setSrcAsDataAttribute( |
| 10 | 10 | $data['oembed'], |
| 11 | 11 | [ |
@@ -5,9 +5,9 @@ |
||
| 5 | 5 | use Flynt; |
| 6 | 6 | use Flynt\Utils\Asset; |
| 7 | 7 | |
| 8 | -add_filter('Flynt/addComponentData?name=ListSocial', function ($data) { |
|
| 8 | +add_filter('Flynt/addComponentData?name=ListSocial', function($data) { |
|
| 9 | 9 | if (!empty($data['social'])) { |
| 10 | - $data['social'] = array_map(function ($item) { |
|
| 10 | + $data['social'] = array_map(function($item) { |
|
| 11 | 11 | $item['icon'] = Asset::getContents("Components/ListSocial/Assets/{$item['platform']}.svg"); |
| 12 | 12 | return $item; |
| 13 | 13 | }, $data['social']); |
@@ -5,13 +5,13 @@ |
||
| 5 | 5 | use Timber\Menu; |
| 6 | 6 | use Flynt\Utils\Asset; |
| 7 | 7 | |
| 8 | -add_action('init', function () { |
|
| 8 | +add_action('init', function() { |
|
| 9 | 9 | register_nav_menus([ |
| 10 | 10 | 'navigation_main' => __('Navigation Main', 'flynt-starter-theme') |
| 11 | 11 | ]); |
| 12 | 12 | }); |
| 13 | 13 | |
| 14 | -add_filter('Flynt/addComponentData?name=NavigationMain', function ($data) { |
|
| 14 | +add_filter('Flynt/addComponentData?name=NavigationMain', function($data) { |
|
| 15 | 15 | $data['maxLevel'] = 0; |
| 16 | 16 | $data['menu'] = new Menu('navigation_main'); |
| 17 | 17 | |
@@ -4,13 +4,13 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Timber\Menu; |
| 6 | 6 | |
| 7 | -add_action('init', function () { |
|
| 7 | +add_action('init', function() { |
|
| 8 | 8 | register_nav_menus([ |
| 9 | 9 | 'navigation_footer' => __('Navigation Footer', 'flynt-starter-theme') |
| 10 | 10 | ]); |
| 11 | 11 | }); |
| 12 | 12 | |
| 13 | -add_filter('Flynt/addComponentData?name=NavigationFooter', function ($data) { |
|
| 13 | +add_filter('Flynt/addComponentData?name=NavigationFooter', function($data) { |
|
| 14 | 14 | $data['maxLevel'] = 0; |
| 15 | 15 | $data['menu'] = new Menu('navigation_footer'); |
| 16 | 16 | |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | use Flynt; |
| 5 | 5 | use Timber\Timber; |
| 6 | 6 | |
| 7 | -add_filter('Flynt/addComponentData?name=ListPostCards', function ($data) { |
|
| 7 | +add_filter('Flynt/addComponentData?name=ListPostCards', function($data) { |
|
| 8 | 8 | $posts = Timber::get_posts([ |
| 9 | 9 | 'post_type' => 'post', |
| 10 | 10 | 'posts_per_page' => 4, |
@@ -4,9 +4,9 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Flynt; |
| 6 | 6 | |
| 7 | -add_filter('Flynt/addComponentData?name=GridDownloadPortrait', function ($data) { |
|
| 7 | +add_filter('Flynt/addComponentData?name=GridDownloadPortrait', function($data) { |
|
| 8 | 8 | if (!empty($data['items'])) { |
| 9 | - $data['items'] = array_map(function ($item) { |
|
| 9 | + $data['items'] = array_map(function($item) { |
|
| 10 | 10 | if ($item['itemType'] === 'itemFile') { |
| 11 | 11 | $fileSize = filesize(get_attached_file($item['file']['id'])); |
| 12 | 12 | $item['file']['fileSize'] = size_format($fileSize); |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | use Flynt; |
| 6 | 6 | use Timber\Timber; |
| 7 | 7 | |
| 8 | -add_filter('Flynt/addComponentData?name=GridPostsSlider', function ($data) { |
|
| 8 | +add_filter('Flynt/addComponentData?name=GridPostsSlider', function($data) { |
|
| 9 | 9 | $posts = Timber::get_posts([ |
| 10 | 10 | 'post_type' => 'post', |
| 11 | 11 | 'posts_per_page' => -1, |