Line 272... |
Line 272... |
272 |
// Formatage date
|
272 |
// Formatage date
|
273 |
$item['date_photo'] = $image['date_photo'] ?? $image['obs']['date_obs'];
|
273 |
$item['date_photo'] = $image['date_photo'] ?? $image['obs']['date_obs'];
|
274 |
$item['date_redige'] = strftime('%A %d %B %Y', $item['date_photo']);
|
274 |
$item['date_redige'] = strftime('%A %d %B %Y', $item['date_photo']);
|
275 |
$item['date'] = date_format(date_create($item['date_photo']),"d/m/Y");
|
275 |
$item['date'] = date_format(date_create($item['date_photo']),"d/m/Y");
|
276 |
$item['lien'] = sprintf($this->eflore_url_tpl, $image['obs']['nom_referentiel'], $image['obs']['nom_sel_nn']);
|
276 |
$item['lien'] = sprintf($this->eflore_url_tpl, $image['obs']['nom_referentiel'], $image['obs']['nom_sel_nn']);
|
- |
|
277 |
$image['url_photo'] = preg_replace('/,/', "", $image['url_photo']);
|
277 |
$item['url_tpl'] = preg_replace('/(O|XS|[SML]|X(?:[23]|)L|CR(?:|X2)S|C(?:|X)S)$/', '%s.jpg', $image['url_photo']);
|
278 |
$item['url_tpl'] = preg_replace('/(O|XS|[SML]|X(?:[23]|)L|CR(?:|X2)S|C(?:|X)S)$/', '%s.jpg',$image['url_photo']);
|
278 |
// Formatage titre
|
279 |
// Formatage titre
|
279 |
$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'];
|
280 |
$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'];
|
280 |
$item['id_photo_formate'] = sprintf('%09d', $image['id_photo']);
|
281 |
$item['id_photo_formate'] = sprintf('%09d', $image['id_photo']);
|
281 |
$item['urlProfil'] = sprintf($this->config['photo']['tbProfilUrlTpl'], $image['utilisateur']['id_utilisateur'] );
|
282 |
$item['urlProfil'] = sprintf($this->config['photo']['tbProfilUrlTpl'], $image['utilisateur']['id_utilisateur'] );
|
282 |
// Ajout aux items et si première photo à extra
|
283 |
// Ajout aux items et si première photo à extra
|
283 |
if ($key == 0) {
|
284 |
if ($key == 0) {
|