Extends the ACF Flexible Content Field by transforming the layout list into a modal with image previews.
通过将布局列表转换为带有图像预览的模式来扩展ACF灵活内容字段。
Editing the fields layouts also happens in a modal for a better editing user experience.
编辑字段布局也可以以模态进行,以提供更好的编辑用户体验。 p>
Image Conventions
图像约定 h4>
- The size of the image should be 730 x 300.
- 图片大小应为730 x 300。 li>
- They should be named based on the layout’s name (
text_block
) with underscores converted to dashes (text-block.jpg
). - 应根据版面名称(
text_block code>)命名,并将下划线转换为短划线( text-block.jpg code>)。 li>
ul>
Image Location
图片位置 h4>
Images should be placed in your theme.
图像应放置在主题中。
By default, images are located here: THEME/lib/admin/images/acf-flexible-content-extended
.
默认情况下,图像位于以下位置: THEME / lib / admin / images / acf-flexible-content-extended code>。 p>Also note that you can filter this path, but it MUST be in your theme:
还请注意,您可以过滤此路径,但必须 strong>必须在您的主题中: p>`php `php
code> pre>
add_filter( ‘acf-flexible-content-extended.images_path’, $path );
add_filter('acf-flexible-content-extended.images_path',$ path);
`
` p>
NOTE: The path should not have a trailing beginning or trailing slash!
注意 strong>:路径中不应包含尾随的开始或结尾的斜杠! p>Additionally, you could filter all keys and/or images:
此外,您可以过滤所有键和/或图像: p>
`php `php
code> pre>
add_filter( ‘acf-flexible-content-extended.images’, $images );
add_filter('acf-flexible-content-extended.images',$ images);
`
` p>
Issues & Feature Requests
问题和功能请求 h4>
If you identify any errors or have an idea for improving the plugin, feel free to open an issue or create a pull request.
nofollow“>问题或创建提取请求。
Please provide as much info as needed in order to help resolving or approve your request.
请根据需要提供尽可能多的信息,以帮助解决或批准您的请求。 p>