Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 3969 → Rev 3970

/trunk/widget/modules/photo/Photo.php
226,8 → 226,9
$champ_recherche = $champ_recherche ? $this->obtenirBooleen($champ_recherche) : ($this->config['photo']['champRecherche'] ? $this->obtenirBooleen($this->config['photo']['champRecherche']) : false) ;
// Si la config champ_recherche est désactivé -> affichage mode e-flore
if (!$champ_recherche) {
// Affichage mode e-flore avec le paramètre mode_eflore
if ($_GET['mode_eflore']) {
$champ_recherche = false;
$vignette ='5,2';
$tags = [
275,7 → 276,8
'num_taxon',
'num_nom',
'start',
'limit'
'limit',
'mode_eflore'
];
 
foreach($this->parametres as $nom_critere => $valeur_critere) {
403,7 → 405,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;
}
491,7 → 493,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);