[wordpress插件] Advanced Custom Fields: Font Awesome Field高级自定义字段:真棒字体字段

wordpress 插件 文章 2020-02-07 04:00 630 0 全屏看文

AI助手支持GPT4.0

评分

98

98

描述

Add a Font Awesome icon field type to Advanced Custom Fields.

字体真棒图标字段类型添加到“高级自定义字段”。

    • Optionally set a default icon
    • (可选)设置默认图标

    • Specify which FontAwesome icon sets to use (Solid, Regular, Light, Brands) (Applies to FontAwesome v5)
    • 指定要使用的FontAwesome图标集(实心,常规,浅色,品牌)(适用于FontAwesome v5)

    • Create your own custom filtered list of FontAwesome icons to use with your fields.

    • 创建您自己的自定义FontAwesome图标过滤列表,以与您的字段一起使用。

      Use different custom icon sets with different fields

    • 在不同的字段中使用不同的自定义图标集

    • Returns Icon Element, Icon Class, Icon Unicode, or an Object including the element, class, and unicode value
    • 返回图标元素,图标类,图标Unicode或包含对象,类和unicode值的对象

    • Optionally enqueues Font Awesome in footer where needed (when a FontAwesome field is being used on the page)
    • (在页面上使用FontAwesome字段时)可以选择在需要的页脚中排队Font Awesome

    • Integrates with jsDelivr to automatically load the latest version of jsDelivr 集成以自动加载

      io/" rel="nofollow">Font Awesome

    • io /“ rel =” nofollow“>字体很棒

    Note: It is recommended to let this plugin enqueue the latest version of Font Awesome on your front-end;

    注意:建议让此插件在您的前端加入最新版本的Font Awesome;

    or include the latest version by some other means;

    或通过其他方式包括最新版本;

    so that available icons in the admin area will be displayed properly on your sites front-end.

    以便管理区域中的可用图标将正确显示在您的网站前端。

    Compatibility

    兼容性

    This ACF field type is compatible with:

    此ACF字段类型兼容:

    * ACF 5.7+

    * ACF 5.7+

    * FontAwesome 4.x and 5.x fonts

    * FontAwesome 4.x和5.x字体

    Optional Configuration

    可选配置

    Filters

    过滤器

      • ACFFA_always_enqueue_fa: Return true to always enqueue FontAwesome on the frontend, even if no ACF FontAwesome fields are in use on the page.

      • ACFFA_always_enqueue_fa :即使页面上未使用ACF FontAwesome字段,也返回true始终将FontAwesome放入队列。

        This will enqueue FontAwesome in the header instead of the footer.

      • 这会将FontAwesome排入页眉而不是页脚。

      • ACFFA_admin_enqueue_fa: Return false to stop enqueueing FontAwesome in the admin area.

      • ACFFA_admin_enqueue_fa :返回false以停止在管理区域中加入FontAwesome。

        Useful if you already have FontAwesome enqueued by some other means.

      • 如果您已经通过其他方式使FontAwesome入队,则很有用。

      • ACFFA_get_icons: Filter the array of icons and icon details loaded from the database
      • ACFFA_get_icons :过滤从数据库加载的图标和图标详细信息数组

      • ACFFA_get_fa_url: Filter the URL used for enqueuing FontAwesome in the frontend and admin areas of the site.
      • ACFFA_get_fa_url :在网站的前端和管理区域中过滤用于将FontAwesome排队的URL。

      • ACFFA_override_major_version: Filter to manually set the ‘major’ version of FontAwesome to load (accepts either 4, or 5).

      • ACFFA_override_major_version :过滤器以手动设置要加载的FontAwesome的“主要”版本(接受4或5)。

        NOTE: This filter must be registered before any calls to ACF get_field() function are made.

      • 注意:在对ACF get_field()函数进行任何调用之前,必须先注册此过滤器。

安装步骤

    1. Copy the advanced-custom-fields-font-awesome folder into your wp-content/plugins folder
    2. advanced-custom-fields-font-awesome 文件夹复制到 wp-content / plugins 文件夹中

    3. Activate the Font Awesome plugin via the plugins admin page
    4. 通过插件管理页面激活Font Awesome插件

    5. Create a new field via ACF and select the Font Awesome type
    6. 通过ACF创建一个新字段,然后选择Font Awesome类型

下载地址

https://downloads.wordpress.org/plugin/advanced-custom-fields-font-awesome.zip

https://downloads.wordpress.org/plugin/advanced-custom-fields-font-awesome.zip

-EOF-

AI助手支持GPT4.0