doublesecretagency/craft-starratings 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

doublesecretagency/craft-starratings

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

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固