[wordpress插件] Flexible Content Preview for Advanced Custom Fields灵活的内容预览,用于高级自定义字段

wordpress 插件 文章 2020-01-26 16:00 576 0 全屏看文

AI助手支持GPT4.0

评分

100

100

描述

Transforms ACF’s flexible content field’s layout list into a modal with image previews.

将ACF的灵活内容字段的布局列表转换为带有图像预览的模式。

Image Conventions

图像约定

    • The size of the image should be 732 x 300.
    • 图片大小应为732 x 300。

    • They should be named based on the layout’s name (text_block) with underscores converted to dashes (text-block.jpg).
    • 应根据版面名称( text_block )命名,并将下划线转换为短划线( text-block.jpg )。

    Image Location

    图片位置

    Images should be placed in your theme.

    图像应放置在主题中。

    Be fault, images are located here: THEME/lib/admin/images/acf-flexible-content-preview.

    没错,图片位于此处: THEME / lib / admin / images / acf-flexible-content-preview

    Also note that you can filter this path, but it MUST be in your theme:

    还请注意,您可以过滤此路径,但必须必须在您的主题中:

    add_filter( 'acf-flexible-content-preview.images_path', $path );

      add_filter('acf-flexible-content-preview.images_path',$ path);

    NOTE: The path should not have a trailing beginning or trailing slash!

    注意:路径中不应包含尾随的开始或结尾的斜杠!

    Additionally, you could filter all keys and/or images:

    此外,您可以过滤所有键和/或图像:

    add_filter( 'acf-flexible-content-preview.images', $images );

      add_filter('acf-flexible-content-preview.images',$ images);

    Credit

    信用

    Credit largely goes to @BeAPI for their bea-beautiful-flexible plugin.

    在很大程度上,@ BeAPI为其 bea-beautiful-flexible 插件提供了支持。

    This plugin began using their plugin as a starting point.

    这个插件开始以他们的插件为起点。

    Issues & Feature Requests

    问题和功能请求

    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.

    请根据需要提供尽可能多的信息,以帮助解决或批准您的请求。

安装步骤

This plugin works only if the ACF Pro >= 5.7.O plugin is installed and activated.

仅当安装并激活了 ACF Pro> = 5.7.O 插件时,此插件才起作用。

p>

>

Requirements

要求

    • ACF Pro >= 5.7.O plugin
    • ACF Pro> = 5.7.O 插件

    • WordPress 4.7+ because of [get_theme_file_uri()](https://developer.wordpress.orgeference/functions/get_theme_file_uri)
    • WordPress 4.7+,因为 [get_theme_file_uri()](https://developer.wordpress.orgeference/functions/get_theme_file_uri)

    • Tested up to WP 5.3
    • 经过WP 5.3测试

    • PHP 5.6+
    • PHP 5.6 +

    From your WordPress dashboard

    从您的WordPress仪表板中

      1. Visit Plugins > Add New
      2. 访问插件>添加新内容

      3. Search for “Flexible Content Preview for Advanced Custom Fields”
      4. 搜索以“高级自定义字段的灵活内容预览”

      5. Activate Flexible Content Preview for Advanced Custom Fields from your Plugins page
      6. 激活“插件”页面中“高级自定义字段”的灵活内容预览

      7. Add images to your theme in THEME/lib/admin/images/acf-flexible-content-preview or customize the path using add_filter( 'acf

      8. 添加图像 THEME / lib / admin / images / acf-flexible-content-preview 中的主题,或使用 add_filter('acf

        -flexible-content-preview.images_path', $path );

      9. -flexible-content-preview.images_path',$ path);

下载地址

https://downloads.wordpress.org/plugin/acf-flexible-content-preview.zip

https://downloads.wordpress.org/plugin/acf-flexible-content-preview.zip

-EOF-

AI助手支持GPT4.0