1. <div class="star" data-score="5"></div>
2. <script type="text/javascript" src="{pigcms{$static_path}/community/js/jquery.raty.min.js"></script>
3. $('.star').raty({
readOnly: true,
score: function() {
return $(this).attr('data-score');
}
});