承接 doublesecretagency/craft-starratings 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

doublesecretagency/craft-starratings

最新稳定版本:3.0.0

Composer 安装命令:

composer require doublesecretagency/craft-starratings

包简介

An easy to use and highly flexible ratings system.

README 文档

README

An easy to use and highly flexible ratings system.

Rate Elements

Just specify the element ID of the item you want to rate. Any element type (Entry, Asset, User, etc) will work!

{{ craft.starRatings.stars(entry.id) }}

Customize Star Icons

It's easy to customize your star icons. You can either adjust the CSS, or replace the icons entirely.

{% do craft.starRatings.setIcons({
    full  : '<i class="fa fa-thumbs-up"></i>',
    half  : '<i class="fa fa-thumbs-o-up"></i>',
    empty : '<i class="fa fa-circle-thin"></i>',
}) %}

By default, Star Ratings uses the Font Awesome library. Which means you can easily swap to a different icon from the Font Awesome collection. And if you'd rather not use Font Awesome, you can disable the library from being included at all.

Sort by Highest Rated

Once your users have cast ratings, you'll want to know which items are the highest rated...

{% set mostPopular = craft.entries.orderBy('avgRating DESC').all() %}

Settings

Here's a screenshot of the plugin's settings page...

To see some other ways that Star Ratings is flexible, check out the full documentation...

Anything else?

We've got other plugins too!

Check out the full catalog at doublesecretagency.com/plugins

统计信息

  • 总下载量: 7.91k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2018-04-15