Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 1136 Rev 1137
Line 58... Line 58...
58
 
58
 
59
	public function getBloc() {
59
	public function getBloc() {
60
		$this->donnees = $this->images->getInfosMeilleureImageParPrioriteTags($nnr = $this->nomCourant->getNnr(), array(
60
		$this->donnees = $this->images->getInfosMeilleureImageParPrioriteTags($nnr = $this->nomCourant->getNnr(), array(
61
				'fleur', 'feuille', 'fruit', 'ecorce', 'port', 'rameau'));
61
				'fleur', 'feuille', 'fruit', 'ecorce', 'port', 'rameau'));
-
 
62
		if (empty($this->donnees)) {
-
 
63
			$this->donnees = $this->getPhoto('cel');
62
		if (empty($this->donnees)) {
64
			if (empty($this->donnees)) {
63
			$infos_image = $this->getDessin();
65
				$infos_image = $this->getDessin();
64
			if (empty($infos_image) == false ){
66
				if (empty($infos_image) == false ) {
-
 
67
					$this->donnees['imageUrl'] =  array_shift($infos_image['images']);
65
				$this->donnees['imageUrl'] =  array_shift($infos_image['images']);
68
				}
66
			}
69
			}
67
		} else {
70
		} else {
68
			// extraction de l'url
71
			// extraction de l'url
69
			$this->donnees = array('imageUrl' => $this->donnees['binaire.href']);
72
			$this->donnees = array('imageUrl' => $this->donnees['binaire.href']);