織夢內建 GetRankStar($rank) 函數(include/channelunit.func.php 第 23 行左右),以 Unicode 星號 ★/☆ 組合輸出 5 級評分,樣式單一且無法適配設計風格。
include/channelunit.func.php
GetRankStar 函數// 用星表示軟件或 Flash 的等級
function GetRankStar($rank) {
return $RankStar = "<img src=/images/".$rank."star.gif>";
}
1star.gif、2star.gif … 5star.gif/images/ 文件夾後台 → 系統 → 更新緩存 → 生成 → 更新全站,前台軟件/Flash 模型列表與內容頁即刻呈現自定義星標圖片。
<span class="star-rating" data-score="3.5"> 配合 CSS/JS 實現。