[wordpress插件] ACF: Star Rating FieldACF:星级评分字段

wordpress 插件 文章 2020-01-27 13:00 0 360 全屏看文
评分

86

86

描述

Add the possibility to use rating field in ACF.

在ACF中添加使用评分字段的可能性。

Plug-in provide three calculation method for voting:

插件提供三种计算投票的方法:

    1. calculate by cookies (any visitor);
    2. 按Cookie(任何访客)计算;

    3. by IP (any visitor);
    4. 通过IP(任何访客);

    5. by user id (registered users only).
    6. 通过用户ID(仅限注册用户)。

    If “calculated by cookies” is selected, the only users which use browser with

    如果选择了“由cookie计算”,则只有将浏览器与
    一起使用的用户

    cookies enabled will be able to vote

    启用Cookie的人将能够投票

    In field settings you can also:

    在字段设置中,您还可以:

      1. open|close vote;
      2. 打开|关闭投票;

      3. tune the number of stars (1 to 20);
      4. 调整星数(1到20);

      5. specify the method of re-voting – possible(period)|never
      6. 指定重新投票的方法-可能(句点)|从不

      Use the_field($field_key, $post_id) or get_field($field_key, $post_id) function

      使用the_field($ field_key,$ post_id)或get_field($ field_key,$ post_id)函数

      in page template for field output (see ACF documentation).

      在页面模板中用于字段输出(请参阅ACF文档)。

      In admin panel the rating is inactive.

      在管理面板中,该评级无效。

      Attention! Before removing the plugin files read uninstall.php

      注意!!在删除插件文件之前,请阅读uninstall.php

      Languages: English, Français, Русский

      语言:英语,法语,法语,英语

      I apologize for possible mistakes in plugin translation.

      对于插件翻译中可能出现的错误,我深表歉意。

      I will be glad to accept the help with the correct translation of a plugin into

      我很高兴接受有关将插件正确翻译为
      的帮助。

      English and to correction of my mistakes.

      英语并纠正我的错误。

      Gratitudes:

      感谢:

      Thanks to Ivan Shamshur for JS.

      感谢Ivan Shamshur的JS。

      French Translation – thanks to Nicolas Kern.

      法语翻译-感谢Nicolas Kern。

      Compatibility

      兼容性

      This ACF field type is compatible with: ACF 4

      此ACF字段类型兼容:ACF 4

      For developers: https://github.com/lienann/acf-starrating

      对于开发人员:https://github.com/lienann/acf-starrating

安装步骤

    1. Copy the acf-starrating folder into your wp-content/plugins folder
    2. acf-starrating 文件夹复制到您的 wp-content / plugins 文件夹

    3. Activate the Star Rating Field plugin via the plugins admin page
    4. 通过插件管理页面激活“星级评分字段”插件

    5. Create a new field via ACF and select the Star Rating type
    6. 通过ACF创建新字段,然后选择星级评分类型

    7. Add the_field ($field_key, $post->ID) function in the template of your theme.

    8. 在主题模板中添加the_field($ field_key,$ post-> ID)功能。

      Please refer to the description and FAQ for more info regarding the field type

      有关字段类型的更多信息,请参考说明和常见问题解答

      settings.

    9. 设置。

下载地址

https://downloads.wordpress.org/plugin/acf-starrating.zip

https://downloads.wordpress.org/plugin/acf-starrating.zip

-EOF-