[wordpress插件] BEA – Beautiful FlexibleBEA –美丽灵活

wordpress 插件 文章 2020-03-02 08:10 504 0 全屏看文

AI助手支持GPT4.0

评分
94
描述

Transform ACF’s flexible layouts list into a nice and UX popup.

将ACF的灵活布局列表转换为漂亮的UX弹出窗口。

How ?

如何?

By default there is a “default” image for layouts.

默认情况下,布局有一个“默认”图像。

But the idea is to customize them by adding your own.

但想法是通过添加您自己的来自定义它们。

Image convention

图像约定

    • The size of image should be 366 x 150 or bigger 732 x 300.
    • 图片大小应为366 x 150或更大的732 x 300。

    • They should be named based on the flexible key (push_2_light) with no underscores but dashes (push-2-light.[extension]).
    • 它们应基于灵活键( push_2_light )命名,且不能带有下划线,但应带有破折号( push-2-light。[extension] )。

    • The following extensions will be resolved in that order: .jpg, .jpeg, .png and .gif

    • 将按以下顺序解析以下扩展名: .jpg .jpeg .png .gif

      code>.

    • 代码>。

    Where images should be situated

    图像应放置的位置

    They should more likely be situated into your theme wp-content\themes\my-theme\assets\bea-beautiful-flexible\.

    它们应该更可能位于您的主题 wp-content \ themes \ my-theme \ assets \ bea-beautiful-flexible \ 中。

    But if you have a child-theme and added images into it, these will overwrite those from parent-theme.

    但是,如果您有一个儿童主题并向其中添加了图像,则这些图像将覆盖父主题中的图像。

    The following directories will be solved according to order: plugin’s folder, child theme’s folder, theme’s folder.

    以下目录将根据顺序解决:插件的文件夹,子主题的文件夹,主题的文件夹。

    Also note that you can filter this path to gather all your images into a same folder :

    还请注意,您可以过滤此路径以将所有图像收集到同一文件夹中:

    add_filter( 'bea.beautiful_flexible.images_path', $path );

      add_filter('bea.beautiful_flexible.images_path',$ path);

    Finally, you could filter all images like this :

    最后,您可以像这样过滤所有图像:

    add_filter( 'bea.beautiful_flexible.images', $images );

    Who ?

      add_filter('bea.beautiful_flexible.images',$ images); 

    谁?

    Credits

    积分

    Special thanks to HWK, from his blogpost, we created a WordPress plugin with custom tuning (js+css).

    特别感谢HWK在他的博客文章中创建了一个具有自定义调整(js + css)的WordPress插件。

    Creator

    创作者

    Created by Be API, the French WordPress leader agency since 2009. Based in Paris, we are more than 30 people and

    Be API 创建,该API自2009年以来一直是法国WordPress的领导机构。总部位于巴黎,我们有30多人,

    always hiring some fun and talented guys.

    总是雇用一些有趣且有才华的人。

    So we will be pleased to work with you.

    因此,我们很高兴与您合作。

    This plugin is only maintained, which means we do not guarantee some free support.

    仅维护此插件,这意味着我们不保证某些免费支持。

    Consider reporting an issue and be patient.

    考虑报告问题,请耐心等待。

    To facilitate the process of submitting an issue and quicker answer, we only use Github, so don’t use WP.Org support, it will not be considered.

    为方便提交问题和更快地回答问题,我们仅使用Github,因此不使用WP.Org支持,将不予考虑。

安装步骤

This plugin works only if the ACF Pro plugin is installed and activated.

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

Requirements

要求

    • ACF Pro plugin
    • ACF Pro 插件

    • 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 4.9.3.
    • 经过测试,最高可达4.9.3。

    • PHP 5.6+
    • PHP 5.6 +

    WordPress

    WordPress

      • Download and install using the built-in WordPress plugin installer.
      • 使用内置的WordPress插件安装程序下载并安装。

      • Site activate in the “Plugins” area of the admin.
      • 在管理员的“插件”区域中激活网站。

      • Then add your awesome layouts images.
      • 然后添加您很棒的布局图像。

下载地址
https://downloads.wordpress.org/plugin/bea-beautiful-flexible.1.0.5.zip
-EOF-

AI助手支持GPT4.0