whm / hypebundle
Symfony2 扩展包,用于为实体点赞。
0.0.1
2015-09-23 09:15 UTC
This package is auto-updated.
Last update: 2024-08-29 04:31:02 UTC
README
whmHypeBundle 实现了一个类似Facebook点赞的功能。您可以使用JavaScript函数和AJAX请求来对任何元素进行点赞。
示例
<div class="hype-count" data-hype-identifier="{{ item.id }}" data-hype-type="{{ item.type }}"> ★ </div> <div class="hype-button" data-hype-identifier="{{ item.id }}" data-hype-type="{{ item.type }}"> ★ </div> <div class="unhype-button" data-hype-identifier="{{ item.id }}" data-hype-type="{{ item.type }}"> x </div>