get('config.sef'); }else{ $sef = $config->getValue('config.sef'); } if(!empty($set)){ if($sef){ $current_url = preg_replace('/\/sort_comment-'.$set.'/','',$current_url); }else{ $current_url = preg_replace('/&sort_comment='.$set.'/','',$current_url); } } $row = & $this->rows; $elt = & $this->elts; $pagination = & $this->pagination; $no_comment = 1; $hikashop_vote_con_req_list = $row->hikashop_vote_con_req_list; $useful_rating = $row->useful_rating; $comment_enabled = $row->comment_enabled; $useful_style = $row->useful_style; $show_comment_date = $row->show_comment_date; if ($comment_enabled == 1) { $hikashop_vote_product_id = hikashop_getCID('product_id'); $hikashop_vote_user_id = hikashop_loadUser(); if (($hikashop_vote_con_req_list == 1 && $hikashop_vote_user_id != "") || $hikashop_vote_con_req_list == 0) { ?>
vote_pseudo == '0') { ?> username; ?> vote_pseudo; ?> | vote_rating; JRequest::setVar("nb_star",$nb_star_vote); $nb_star_config = $row->vote_star_number; JRequest::setVar("nb_max_star",$nb_star_config); if($nb_star_vote != 0){ for($k=0; $k < $nb_star_vote; $k++ ){ ?> |
total_vote_useful != 0){
if($elt[$i]->vote_useful == 0){
$hika_useful[$i] = $elt[$i]->total_vote_useful / 2;
}
else if($elt[$i]->total_vote_useful == $elt[$i]->vote_useful){
$hika_useful[$i] = $elt[$i]->vote_useful;
}
else if($elt[$i]->total_vote_useful == -$elt[$i]->vote_useful){
$hika_useful[$i] = 0;
}
else{
$hika_useful[$i] = ($elt[$i]->total_vote_useful + $elt[$i]->vote_useful)/2;
}
$hika_useless[$i] = $elt[$i]->total_vote_useful - $hika_useful[$i];
if($useful_style == "helpful"){
echo JText::sprintf('HIKA_FIND_IT_HELPFUL',$hika_useful[$i],$elt[$i]->total_vote_useful);
}
}
else{
$hika_useless[$i] = 0;
$hika_useful[$i] = 0;
if($useful_style == "helpful"){
if ($useful_rating == 1) {
echo JText::_('HIKASHOP_NO_USEFUL');
}
}
}
?>
|
hide == 0 && $elt[$i]->already_vote == 0 && $elt[$i]->vote_user_id != $hikashop_vote_user_id && $elt[$i]->vote_user_id != hikashop_getIP()){
?>
||||||||
get($elt[$i]->vote_id); echo hikashop_getDate($vote->vote_date); echo date('d M Y',$vote->vote_date); ?> | ||||||||||
vote_comment; ?>
|
||||||||||
purchased)) { ?> "; ?> |