Subversion Repositories eFlore/Applications.cel

Rev

Rev 3970 | Rev 3981 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3970 Rev 3979
Line 342... Line 342...
342
				$votes[] = $vote;
342
				$votes[] = $vote;
343
			}
343
			}
344
		}
344
		}
Line 345... Line 345...
345
		
345
		
346
		return $votes;
346
		return $votes;
Line 347... Line 347...
347
}
347
	}
348
 
348
 
Line 349... Line 349...
349
	public function sendVote(){
349
	public function sendVote(){
Line 403... Line 403...
403
		$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']));
404
		$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");
405
		$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']);
406
		$image['url_photo'] = preg_replace('/,/', "", $image['url_photo']);
406
		$image['url_photo'] = preg_replace('/,/', "", $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']);
407
		$item['url_tpl'] = preg_replace('/(O|XS|[SML]|X(?:[23]|)L|CR(?:|X2)S|C(?:|X)S)$/', '%s.jpg',$image['url_photo']);
408
//		print_r($item['date_photo']);
-
 
409
		return $item;
408
		return $item;
410
	}
409
	}
Line 411... Line 410...
411
	
410
	
412
	public function formaterTitre($item, $image, $auteur){
411
	public function formaterTitre($item, $image, $auteur){