Line 241... |
Line 241... |
241 |
// Formatage date
|
241 |
// Formatage date
|
242 |
$item['date_photo'] = $image['date_photo'] ?? $image['obs']['date_obs'];
|
242 |
$item['date_photo'] = $image['date_photo'] ?? $image['obs']['date_obs'];
|
243 |
$item['date_redige'] = strftime('%A %d %B %Y', $item['date_photo']);
|
243 |
$item['date_redige'] = strftime('%A %d %B %Y', $item['date_photo']);
|
244 |
$item['date'] = date_format(date_create($item['date_photo']),"d/m/Y");
|
244 |
$item['date'] = date_format(date_create($item['date_photo']),"d/m/Y");
|
245 |
$item['lien'] = sprintf($this->eflore_url_tpl, $image['obs']['nom_referentiel'], $image['obs']['nom_sel_nn']);
|
245 |
$item['lien'] = sprintf($this->eflore_url_tpl, $image['obs']['nom_referentiel'], $image['obs']['nom_sel_nn']);
|
246 |
$item['eflore_url'] = isset($item['nn']) ? $item['lien'] : '#';
|
- |
|
247 |
$item['url_tpl'] = preg_replace('/(O|XS|[SML]|X(?:[23]|)L|CR(?:|X2)S|C(?:|X)S)$/', '%s.jpg', $image['url_photo']);
|
246 |
$item['url_tpl'] = preg_replace('/(O|XS|[SML]|X(?:[23]|)L|CR(?:|X2)S|C(?:|X)S)$/', '%s.jpg', $image['url_photo']);
|
248 |
// Formatage titre
|
247 |
// Formatage titre
|
249 |
$item['titre'] = $image['obs']['nom_sel'].' [nn'.$image['obs']['nom_sel_nn'].'] par '.$image['utilisateur']['nom_utilisateur'].' le '.date_format(date_create($image['obs']['date_obs']),"d/m/Y").' - '.$image['obs']['localisation'];
|
248 |
$item['titre'] = $image['obs']['nom_sel'].' [nn'.$image['obs']['nom_sel_nn'].'] par '.$image['utilisateur']['nom_utilisateur'].' le '.date_format(date_create($image['obs']['date_obs']),"d/m/Y").' - '.$image['obs']['localisation'];
|
250 |
$item['id_photo_formate'] = sprintf('%09d', $image['id_photo']);
|
249 |
$item['id_photo_formate'] = sprintf('%09d', $image['id_photo']);
|
251 |
// Ajout aux items et si première photo à extra
|
250 |
// Ajout aux items et si première photo à extra
|