|
@@ -4,7 +4,7 @@ discard block |
|
|
block discarded – undo |
|
4
|
4
|
use Flynt\ComponentManager; |
|
5
|
5
|
use Flynt\Utils\Asset; |
|
6
|
6
|
|
|
7
|
|
-add_action('admin_enqueue_scripts', function () { |
|
|
7
|
+add_action('admin_enqueue_scripts', function() { |
|
8
|
8
|
$data = [ |
|
9
|
9
|
'templateDirectoryUri' => get_template_directory_uri() . '/dist', |
|
10
|
10
|
]; |
|
@@ -14,7 +14,7 @@ discard block |
|
|
block discarded – undo |
|
14
|
14
|
if (class_exists('acf')) { |
|
15
|
15
|
if (is_admin()) { |
|
16
|
16
|
// add image to the flexible content component name |
|
17
|
|
- add_filter('acf/fields/flexible_content/layout_title', function ($title, $field, $layout, $i) { |
|
|
17
|
+ add_filter('acf/fields/flexible_content/layout_title', function($title, $field, $layout, $i) { |
|
18
|
18
|
$componentManager = ComponentManager::getInstance(); |
|
19
|
19
|
$componentName = ucfirst($layout['name']); |
|
20
|
20
|
$componentPathFull = $componentManager->getComponentDirPath($componentName); |
Please login to merge, or discard this patch.