Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/joomla/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php K2_内容模块额定值_Php_Joomla_Module_Rating_Joomla K2 - Fatal编程技术网

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">

我一直在重建category_item.php中的标准K2评级,以查看从以星星显示到以数字显示的评级

我所做的是,我替换了以下代码:

<?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')): ?>