Line 245... |
Line 245... |
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['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']);
|
247 |
// Formatage titre
|
247 |
// Formatage titre
|
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'];
|
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'];
|
249 |
$item['id_photo_formate'] = sprintf('%09d', $image['id_photo']);
|
249 |
$item['id_photo_formate'] = sprintf('%09d', $image['id_photo']);
|
- |
|
250 |
$item['urlProfil'] = sprintf($this->config['photo']['tbProfilUrlTpl'], $image['utilisateur']['id_utilisateur'] );
|
250 |
// Ajout aux items et si première photo à extra
|
251 |
// Ajout aux items et si première photo à extra
|
251 |
if ($num == 0) {
|
252 |
if ($num == 0) {
|
252 |
$widget['donnees']['extra'] = $item;
|
253 |
$widget['donnees']['extra'] = $item;
|
Line 253... |
Line 254... |
253 |
|
254 |
|