cleanup allowed_blocks logic and add mechanism for disabling blade template for specific block

This commit is contained in:
2025-12-12 13:12:37 +00:00
parent 917150bbe6
commit da8097e7c3
10 changed files with 136 additions and 161 deletions

View File

@@ -41,7 +41,7 @@ class Editor
$themeURL = get_template_directory_uri();
if($is_preview && @$block['data']['inserter']):
echo '<img style="display: block; width: 100%" src="' . $themeURL . '/resources/views/blocks/' . $name . '/' . $name . '.jpg" />';
echo '<img style="display: block; width: 100%" src="' . $themeURL . '/resources/views/acf-blocks/' . $name . '/' . $name . '.jpg" />';
return;
endif;