Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 1428 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1428 Rev 1591
Line 38... Line 38...
38
		$this->getPhotos();
38
		$this->getPhotos();
39
		$dessin = $this->addDessin();
39
		$dessin = $this->addDessin();
40
		if (!empty($dessin)) {
40
		if (!empty($dessin)) {
41
			array_push($this->donnees, $dessin);
41
			array_push($this->donnees, $dessin);
42
		}
42
		}
-
 
43
		$images = $this->addSmartFloreImages();
-
 
44
		if (!empty($images)) {
-
 
45
			$this->donnees = array_merge(array_values($images), $this->donnees);
-
 
46
		}
Line 43... Line 47...
43
 
47
 
44
		return $this->donnees;
48
		return $this->donnees;
Line 45... Line 49...
45
	}
49
	}
Line 109... Line 113...
109
			}
113
			}
110
		}
114
		}
Line 111... Line 115...
111
 
115
 
112
		return $img;
116
		return $img;
-
 
117
	}
-
 
118
 
-
 
119
	public function addSmartFloreImages() {
-
 
120
		$img = [];
-
 
121
		$tagFiche = strtoupper($this->conteneur->getParametre('referentiel'))."nt"
-
 
122
			.$this->conteneur->getNomCourant()->getNomSelectionne()->get('num_taxonomique')
-
 
123
		;
-
 
124
		$sentier = urldecode($_GET['sentier']);
-
 
125
 
-
 
126
		if ($sentier && $tagFiche) {
-
 
127
			$images = $this->images->getInfosImagesParFicheEtSentier($tagFiche, $sentier);
-
 
128
 
-
 
129
			if ($images) {
-
 
130
				foreach ($images as $image) {
-
 
131
					$retour = $this->images->getInfosImageParId($image['id']);
-
 
132
					$auteur = $retour['pseudo_utilisateur'] ?? 'Auteur inconnu';
-
 
133
					$img[$image['id']]['src'] = $image['url'];
-
 
134
					$img[$image['id']]['legende']['titre'] = $auteur;
-
 
135
					$img[$image['id']]['legende']['texte'] = " ";
-
 
136
				}
-
 
137
			}
-
 
138
		}
-
 
139
 
-
 
140
		return $img;
113
	}
141
	}
114
}
-
 
115
?>
142
}
-
 
143
?>