Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 3970 → Rev 3969

/trunk/widget/modules/photo/Photo.php
226,9 → 226,8
$champ_recherche = $champ_recherche ? $this->obtenirBooleen($champ_recherche) : ($this->config['photo']['champRecherche'] ? $this->obtenirBooleen($this->config['photo']['champRecherche']) : false) ;
// Affichage mode e-flore avec le paramètre mode_eflore
if ($_GET['mode_eflore']) {
$champ_recherche = false;
// Si la config champ_recherche est désactivé -> affichage mode e-flore
if (!$champ_recherche) {
$vignette ='5,2';
$tags = [
276,8 → 275,7
'num_taxon',
'num_nom',
'start',
'limit',
'mode_eflore'
'limit'
];
 
foreach($this->parametres as $nom_critere => $valeur_critere) {
405,7 → 403,7
$item['lien'] = sprintf($this->eflore_url_tpl, $image['obs']['nom_referentiel'], $image['obs']['nom_sel_nn']);
$image['url_photo'] = preg_replace('/,/', "", $image['url_photo']);
$item['url_tpl'] = preg_replace('/(O|XS|[SML]|X(?:[23]|)L|CR(?:|X2)S|C(?:|X)S)$/', '%s.jpg',$image['url_photo']);
// print_r($item['date_photo']);
return $item;
}
493,7 → 491,7
$auteur = trim($image['utilisateur']['nom_utilisateur']) ? $image['utilisateur']['nom_utilisateur'] : $auteurTruncatedEmail;
$item = $image;
 
$item = $this->formaterDate($item, $image);
$item = $this->formaterTitre($item, $image, $auteur);