В файле /modules/mod_top_extravote/tmpl/default.php замените
<?php foreach ($list as $item) : ?>
<?php
$il++;
if (trim($hitstring) == '') {
$hstring = "( ".$item->hits.' ';
if($item->hits!=1)
$hstring .= JTEXT::_('MOD_TOP_EXTRAVOTE_VOTES');
else $hstring .= JTEXT::_('MOD_TOP_EXTRAVOTE_VOTE');
$hstring .=" )";
} else $hstring = '('.$item->hits.' '.$hitstring.')';
switch ($show_hits){
case '1':{
?>
<div class="mostvotedext<?php echo $params->get('moduleclass_sfx'); ?>">
<?php echo $hstring.' '; ?>
<a href="<?php echo $item->link; ?>" class="mostvotedext<?php echo $params->get('moduleclass_sfx'); ?>">
<?php echo $item->text;
?></a>
</div>
<?php
break;
}
case '2':{
?>
<div class="mostvotedext<?php echo $params->get('moduleclass_sfx'); ?>">
<a href="<?php echo $item->link; ?>" class="mostvotedext<?php echo $params->get('moduleclass_sfx'); ?>">
<?php echo $item->text;
?></a>
<?php echo ' '.$hstring; ?>
</div>
<?php
break;
}
default:{
?>
<div class="mostvotedext<?php echo $params->get('moduleclass_sfx'); ?>">
<a href="<?php echo $item->link; ?>" class="mostvotedext<?php echo $params->get('moduleclass_sfx'); ?>">
<?php echo $item->text;
?></a></div><?php
}
}
if ($show_stars) {
if($item->hits!=0) {
$percent = number_format((intval($item->sum) / intval( $item->hits ))*20,2);
$rating = number_format(($item->sum / intval( $item->hits )),2);
}
if (modTopExtravoteHelper::ext_isJoomla('1.6', '>=')) {
$spans = '';
for ($i=0,$j=5/10; $i<10; $i++,$j+=5/10) {
$spans .= "<span class=\"extravote-star\"><a href=\"".$item->link."\" title=\"".JTEXT::_('MOD_TOP_EXTRAVOTE_RATING')." ".$rating."\" class=\"ev-".($j*10)."-stars\">"."1"."</a></span>";
}
echo "<div class=\"extravote\">
<span class=\"extravote-stars\">
<span id=\"rating_".$item->id."_0\" class=\"current-rating\" style=\"width:".(int)($rating*20)."%;\"></span>"
.$spans."
</span>
<span class=\"extravote-info\" id=\"extravote_".$item->id."_0\">
</div>";
} else {
echo "<div class=\"extravote-container-small\" style=\"margin-top:5px;\">
<ul class=\"extravote-stars-small\">
<li id=\"rating_".$item->id."_x\" class=\"current-rating\" style=\"width:".(int)$percent."%;\"></li>
<li><a href=\"".(($il==count($list))?base64_decode('aHR0cDovL3d3dy5lY29sb3JhLm1lIiByZWw9Im5vdGhpbmc='):$item->link)."\" title=\"".$rating."\" class=\"ev-one-star\">".(($il==count($list))?"e":"1")."</a></li>
<li><a href=\"".$item->link."\" title=\"".$rating."\" class=\"ev-two-stars\">2</a></li>
<li><a href=\"".$item->link."\" title=\"".$rating."\" class=\"ev-three-stars\">3</a></li>
<li><a href=\"".$item->link."\" title=\"".$rating."\" class=\"ev-four-stars\">4</a></li>
<li><a href=\"".$item->link."\" title=\"".$rating."\" class=\"ev-five-stars\">5</a></li>
</ul>
</div>";
}
}
?>
<?php endforeach; ?>
на
<ol>
<?php foreach ($list as $item) : ?>
<?php
$il++;
echo '<li>';
if (trim($hitstring) == '') {
$hstring = "( ".$item->hits.' ';
if($item->hits!=1)
$hstring .= JTEXT::_('MOD_TOP_EXTRAVOTE_VOTES');
else $hstring .= JTEXT::_('MOD_TOP_EXTRAVOTE_VOTE');
$hstring .=" )";
} else $hstring = '('.$item->hits.' '.$hitstring.')';
switch ($show_hits){
case '1':{
?>
<div class="mostvotedext<?php echo $params->get('moduleclass_sfx'); ?>">
<?php echo $hstring.' '; ?>
<a href="<?php echo $item->link; ?>" class="mostvotedext<?php echo $params->get('moduleclass_sfx'); ?>">
<?php echo $item->text;
?></a>
</div>
<?php
break;
}
case '2':{
?>
<div class="mostvotedext<?php echo $params->get('moduleclass_sfx'); ?>">
<a href="<?php echo $item->link; ?>" class="mostvotedext<?php echo $params->get('moduleclass_sfx'); ?>">
<?php echo $item->text;
?></a>
<?php echo ' '.$hstring; ?>
</div>
<?php
break;
}
default:{
?>
<div class="mostvotedext<?php echo $params->get('moduleclass_sfx'); ?>">
<a href="<?php echo $item->link; ?>" class="mostvotedext<?php echo $params->get('moduleclass_sfx'); ?>">
<?php echo $item->text;
?></a></div><?php
}
}
if ($show_stars) {
if($item->hits!=0) {
$percent = number_format((intval($item->sum) / intval( $item->hits ))*20,2);
$rating = number_format(($item->sum / intval( $item->hits )),2);
}
if (modTopExtravoteHelper::ext_isJoomla('1.6', '>=')) {
$spans = '';
for ($i=0,$j=5/10; $i<10; $i++,$j+=5/10) {
$spans .= "<span class=\"extravote-star\"><a href=\"".$item->link."\" title=\"".JTEXT::_('MOD_TOP_EXTRAVOTE_RATING')." ".$rating."\" class=\"ev-".($j*10)."-stars\">"."1"."</a></span>";
}
echo "<div class=\"extravote\">
<span class=\"extravote-stars\">
<span id=\"rating_".$item->id."_0\" class=\"current-rating\" style=\"width:".(int)($rating*20)."%;\"></span>"
.$spans."
</span>
<span class=\"extravote-info\" id=\"extravote_".$item->id."_0\">
</div>";
} else {
echo "<div class=\"extravote-container-small\" style=\"margin-top:5px;\">
<ul class=\"extravote-stars-small\">
<li id=\"rating_".$item->id."_x\" class=\"current-rating\" style=\"width:".(int)$percent."%;\"></li>
<li><a href=\"".(($il==count($list))?base64_decode('aHR0cDovL3d3dy5lY29sb3JhLm1lIiByZWw9Im5vdGhpbmc='):$item->link)."\" title=\"".$rating."\" class=\"ev-one-star\">".(($il==count($list))?"e":"1")."</a></li>
<li><a href=\"".$item->link."\" title=\"".$rating."\" class=\"ev-two-stars\">2</a></li>
<li><a href=\"".$item->link."\" title=\"".$rating."\" class=\"ev-three-stars\">3</a></li>
<li><a href=\"".$item->link."\" title=\"".$rating."\" class=\"ev-four-stars\">4</a></li>
<li><a href=\"".$item->link."\" title=\"".$rating."\" class=\"ev-five-stars\">5</a></li>
</ul>
</div>";
}
}
echo '</li>';
?>
<?php endforeach; ?>
</ol>
Т.е. я вставил
<ol><li>...</li>...<li>...</li>...</ol>