Php K2_内容模块额定值
我一直在重建category_item.php中的标准K2评级,以查看从以星星显示到以数字显示的评级 我所做的是,我替换了以下代码:Php K2_内容模块额定值,php,joomla,module,rating,joomla-k2,Php,Joomla,Module,Rating,Joomla K2,我一直在重建category_item.php中的标准K2评级,以查看从以星星显示到以数字显示的评级 我所做的是,我替换了以下代码: <?php if($this->item->params->get('catItemRating')): ?> <div id="catItemRatingBlock"> <div class="itemRatingForm"> <ul class="itemRatingList">
<?php if($this->item->params->get('catItemRating')): ?>
<div id="catItemRatingBlock">
<div class="itemRatingForm">
<ul class="itemRatingList">
<li class="itemCurrentRating" id="itemCurrentRating<?php echo $this->item->id; ?>" style="width:<?php echo $this->item->votingPercentage; ?>%;"></li>
<li><a href="#" rel="<?php echo $this->item->id; ?>" class="one-star">1</a></li>
<li><a href="#" rel="<?php echo $this->item->id; ?>" class="two-stars">2</a></li>
<li><a href="#" rel="<?php echo $this->item->id; ?>" class="three-stars">3</a></li>
<li><a href="#" rel="<?php echo $this->item->id; ?>" class="four-stars">4</a></li>
<li><a href="#" rel="<?php echo $this->item->id; ?>" class="five-stars">5</a></li>
</ul>
</div>
</div>
<?php endif; ?>
替换
<?php if($this->item->params->get('catItemRating')): ?>
与:
<?php if($this->item->params->get('catItemRating')): ?>
<?php if($params->get('catItemRating')): ?>