Subversion Repositories Applications.papyrus

Rev

Rev 1034 | Rev 1052 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1034 Rev 1049
Line 106... Line 106...
106
		            } else if (trim($Article->soustitre) != '') {
106
		            } else if (trim($Article->soustitre) != '') {
107
		                $aso_resultat['titre'] = htmlentities($Article->soustitre);
107
		                $aso_resultat['titre'] = htmlentities($Article->soustitre);
108
		            }
108
		            }
109
		            $aso_resultat['hreflang'] = htmlentities($Article->lang);
109
		            $aso_resultat['hreflang'] = htmlentities($Article->lang);
Line 110... Line 110...
110
		            
110
		            
Line 111... Line 111...
111
		            $aso_resultat['description'] = $this->couper($Article->texte, 450);
111
		            $aso_resultat['description'] = $this->couper($Article->texte, MORE_RESULTAT_TAILLE_DESCRIPTION);
112
		            
112
		            
113
		            if (($jour = date('d', strtotime($Article->date)) ) != 0 ) {
113
		            if (($jour = date('d', strtotime($Article->date)) ) != 0 ) {
114
		                $aso_resultat['date_creation'] .= '<span class="page_modification_jour"> '.$jour.'</span>'."\n";
114
		                $aso_resultat['date_creation'] .= '<span class="page_modification_jour"> '.$jour.'</span>'."\n";
Line 193... Line 193...
193
		$texte = ereg_replace("(^|\r)\|.*\|\r", "\r", $texte);
193
		$texte = ereg_replace("(^|\r)\|.*\|\r", "\r", $texte);
Line 194... Line 194...
194
	
194
	
195
		// couper au mot precedent
195
		// couper au mot precedent
196
		$long = $this->spip_substr($texte, 0, max($taille-4,1));
196
		$long = $this->spip_substr($texte, 0, max($taille-4,1));
197
		$court = ereg_replace("([^[:space:]][[:space:]]+)[^[:space:]]*\n?$", "\\1", $long);
197
		$court = ereg_replace("([^[:space:]][[:space:]]+)[^[:space:]]*\n?$", "\\1", $long);
Line 198... Line 198...
198
		$points = '&nbsp;(...)';
198
		$points = MORE_LG_RESULTAT_ETC;
199
	
199
	
200
		// trop court ? ne pas faire de (...)
200
		// trop court ? ne pas faire de (...)
201
		if (strlen($court) < max(0.75 * $taille,2)) {
201
		if (strlen($court) < max(0.75 * $taille,2)) {
Line 245... Line 245...
245
}
245
}
Line 246... Line 246...
246
 
246
 
247
/* +--Fin du code ----------------------------------------------------------------------------------------+
247
/* +--Fin du code ----------------------------------------------------------------------------------------+
248
*
248
*
-
 
249
* $Log$
-
 
250
* Revision 1.3  2006/10/17 09:21:40  jp_milcent
-
 
251
* Mise en commun des spécifications de la recherche.
249
* $Log$
252
*
250
* Revision 1.2  2006/10/16 14:11:30  jp_milcent
253
* Revision 1.2  2006/10/16 14:11:30  jp_milcent
251
* Amélioration du moteur de recherche.
254
* Amélioration du moteur de recherche.
252
* Utilisation de l'opérateur "et" entre les mots recherchés.
255
* Utilisation de l'opérateur "et" entre les mots recherchés.
253
*
256
*