From e583e6bb5e57a36107cf278830dc4cefdd29c357 Mon Sep 17 00:00:00 2001 From: x2000lajoie Date: Thu, 15 Jun 2006 16:39:29 +0000 Subject: [PATCH] encoding et petite modif git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@316 839d8a87-29fc-0310-9880-83ba4fa771e5 --- include/exalead/exalead.smarty.inc.php | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/include/exalead/exalead.smarty.inc.php b/include/exalead/exalead.smarty.inc.php index bf8d21d..bc76cc8 100644 --- a/include/exalead/exalead.smarty.inc.php +++ b/include/exalead/exalead.smarty.inc.php @@ -273,12 +273,12 @@ function _little_nav_barre($params, &$smarty){ function _display_3_columns($title, $count, $refine, $exclude, $categorie,$hide=-1){ if ($title!='Inconnu'){ global $exa_max_length; - if($categorie) $title_exclude = 'Ne pas afficher cette catégorie'; - else $title_exclude = 'Ne pas afficher ce mot-clé'; + if($categorie) $title_exclude = 'Ne pas afficher cette catégorie'; + else $title_exclude = 'Ne pas afficher ce mot-clé'; $extract = ((strlen($title) > $exa_max_length + 3)?substr($title,0,$exa_max_length).'...':$title); $result="0) { - $result .= " id=\"cache_$hide\" onclick=\"cacheId('cache_$hide')\"";//Pour pouvoir cacher des catégories + $result .= " id=\"cache_$hide\" onclick=\"cacheId('cache_$hide')\"";//Pour pouvoir cacher des catégories } $result.="> @@ -299,13 +299,13 @@ if ($title!='Inconnu'){ function _display_2_columns($title, $reset, $excluded, $categorie){ global $exa_max_length; if($excluded){ - if($categorie) $title_link = 'Afficher de nouveau cette catégorie'; - else $title_link = 'Afficher de nouveau ce mot-clé'; + if($categorie) $title_link = 'Afficher de nouveau cette catégorie'; + else $title_link = 'Afficher de nouveau ce mot-clé'; $link = '[+]'; $style = 'text-decoration: line-through;'; } else{ - if($categorie) $title_link = 'Voir les autres catégories'; - else $title_link = 'Voir les autres mots-clés'; + if($categorie) $title_link = 'Voir les autres catégories'; + else $title_link = 'Voir les autres mots-clés'; $link = '[-]'; $style = 'text-decoration: none; font-weight: bold;'; } @@ -344,8 +344,8 @@ function _display_resume_groupe_category(&$group, $context, $padding = '',$limit $result .= _display_2_columns($padding.$title, $reset, $categorie->is_excluded(),'', $cnt-$limit); } } - if(count($categorie->categories) > 0){ - $result .= _display_resume_groupe_category($categorie, $context, $padding.'-',$limit-$cnt); + if(count($categorie->categories) > 0 && ($_SESSION['show_all']||$title=="france"||!$categorie->is_normal()) ){ + $result .= _display_resume_groupe_category($categorie, $context, $pagging.'-',$limit-$cnt); } } return $result; @@ -382,7 +382,14 @@ function _display_resume_groupe($params, &$smarty){ } else{ $result = ""; - $result .= _display_resume_groupe_category($group, $exalead_data->query->context); + if (isset($params['limit']) && $params['limit']>0) + { + $result .= _display_resume_groupe_category($group, $exalead_data->query->context,'',$params['limit']); + + }else + { + $result .= _display_resume_groupe_category($group, $exalead_data->query->context); + } } $result .= "
".gettext($name)."
"; return $result; -- 2.1.4