<block cond="$mid=='rank'">
   <div class="rankbox">
      {@
      $vote = $document->get('voted_count')?$document->get('voted_count'):0;
      $cmt = $document->getCommentCount()?$document->getCommentCount():0;
      //$star = (int)($vote/$cmt);
      //$star = round($voteDcmt?$voteDcmt:0,0);
      $star = $vote > 0 && $cmt > 0 ? $vote/$cmt : 0;
      }
      <div class="info_starpointCount{$star}">
         {$star}
      </div>
      
      <div class="ico_starpoint{(int)($star)}">
         {$star}
      </div>
      <div class="info_votecount">
         {$document->getCommentCount()?$document->getCommentCount():0}개의 평가
      </div>
   </div>
</block>

KakaoTalk_20181114_105714958.png

글쓴이 이온디

profile
이온디(Expert on-demand)는 전문가가 필요한 순간에 필요한 전문가를 즉시 제공하는 서비스입니다.

# XE/라이믹스 단톡방을 운영 중입니다. (비번: 2022)
https://open.kakao.com/o/giaKKnl

# XE/라이믹스 생활코딩 모듈 강좌입니다.
https://opentutorials.org/module/3774
  • profile
    혹시 아직도 작동하나요?
  • profile profile