| Line 224... |
Line 224... |
| 224 |
$icone_rss = (isset($_GET['rss']) && $_GET['rss'] != 1) ? false : true;
|
224 |
$icone_rss = (isset($_GET['rss']) && $_GET['rss'] != 1) ? false : true;
|
| 225 |
$utilise_fancybox = (isset($_GET['mode_zoom']) && $_GET['mode_zoom'] != 'fancybox') ? false : true;
|
225 |
$utilise_fancybox = (isset($_GET['mode_zoom']) && $_GET['mode_zoom'] != 'fancybox') ? false : true;
|
| Line 226... |
Line 226... |
| 226 |
|
226 |
|
| Line 227... |
Line 227... |
| 227 |
$champ_recherche = $champ_recherche ? $this->obtenirBooleen($champ_recherche) : ($this->config['photo']['champRecherche'] ? $this->obtenirBooleen($this->config['photo']['champRecherche']) : false) ;
|
227 |
$champ_recherche = $champ_recherche ? $this->obtenirBooleen($champ_recherche) : ($this->config['photo']['champRecherche'] ? $this->obtenirBooleen($this->config['photo']['champRecherche']) : false) ;
|
| - |
|
228 |
|
| 228 |
|
229 |
// Affichage mode e-flore avec le paramètre mode_eflore
|
| 229 |
// Si la config champ_recherche est désactivé -> affichage mode e-flore
|
230 |
if ($_GET['mode_eflore']) {
|
| Line 230... |
Line 231... |
| 230 |
if (!$champ_recherche) {
|
231 |
$champ_recherche = false;
|
| 231 |
$vignette ='5,2';
|
232 |
$vignette ='5,2';
|
| 232 |
|
233 |
|
| Line 273... |
Line 274... |
| 273 |
'motcle',
|
274 |
'motcle',
|
| 274 |
'projet',
|
275 |
'projet',
|
| 275 |
'num_taxon',
|
276 |
'num_taxon',
|
| 276 |
'num_nom',
|
277 |
'num_nom',
|
| 277 |
'start',
|
278 |
'start',
|
| 278 |
'limit'
|
279 |
'limit',
|
| - |
|
280 |
'mode_eflore'
|
| 279 |
];
|
281 |
];
|
| Line 280... |
Line 282... |
| 280 |
|
282 |
|
| 281 |
foreach($this->parametres as $nom_critere => $valeur_critere) {
|
283 |
foreach($this->parametres as $nom_critere => $valeur_critere) {
|
| 282 |
if (in_array($nom_critere, $criteres)) {
|
284 |
if (in_array($nom_critere, $criteres)) {
|
| Line 401... |
Line 403... |
| 401 |
$item['date_redige'] = strftime('%A %d %B %Y', strtotime($item['date_photo']));
|
403 |
$item['date_redige'] = strftime('%A %d %B %Y', strtotime($item['date_photo']));
|
| 402 |
$item['date'] = date_format(date_create($item['date_photo']),"d/m/Y");
|
404 |
$item['date'] = date_format(date_create($item['date_photo']),"d/m/Y");
|
| 403 |
$item['lien'] = sprintf($this->eflore_url_tpl, $image['obs']['nom_referentiel'], $image['obs']['nom_sel_nn']);
|
405 |
$item['lien'] = sprintf($this->eflore_url_tpl, $image['obs']['nom_referentiel'], $image['obs']['nom_sel_nn']);
|
| 404 |
$image['url_photo'] = preg_replace('/,/', "", $image['url_photo']);
|
406 |
$image['url_photo'] = preg_replace('/,/', "", $image['url_photo']);
|
| 405 |
$item['url_tpl'] = preg_replace('/(O|XS|[SML]|X(?:[23]|)L|CR(?:|X2)S|C(?:|X)S)$/', '%s.jpg',$image['url_photo']);
|
407 |
$item['url_tpl'] = preg_replace('/(O|XS|[SML]|X(?:[23]|)L|CR(?:|X2)S|C(?:|X)S)$/', '%s.jpg',$image['url_photo']);
|
| 406 |
|
- |
|
| - |
|
408 |
// print_r($item['date_photo']);
|
| 407 |
return $item;
|
409 |
return $item;
|
| 408 |
}
|
410 |
}
|
| Line 409... |
Line 411... |
| 409 |
|
411 |
|
| 410 |
public function formaterTitre($item, $image, $auteur){
|
412 |
public function formaterTitre($item, $image, $auteur){
|
| Line 489... |
Line 491... |
| 489 |
}
|
491 |
}
|
| 490 |
$auteurTruncatedEmail = $this->tronquerCourriel($image['utilisateur']['mail_utilisateur']);
|
492 |
$auteurTruncatedEmail = $this->tronquerCourriel($image['utilisateur']['mail_utilisateur']);
|
| 491 |
$auteur = trim($image['utilisateur']['nom_utilisateur']) ? $image['utilisateur']['nom_utilisateur'] : $auteurTruncatedEmail;
|
493 |
$auteur = trim($image['utilisateur']['nom_utilisateur']) ? $image['utilisateur']['nom_utilisateur'] : $auteurTruncatedEmail;
|
| Line 492... |
Line 494... |
| 492 |
|
494 |
|
| 493 |
$item = $image;
|
495 |
$item = $image;
|
| 494 |
|
496 |
|
| Line 495... |
Line 497... |
| 495 |
$item = $this->formaterDate($item, $image);
|
497 |
$item = $this->formaterDate($item, $image);
|
| Line 496... |
Line 498... |
| 496 |
|
498 |
|