Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 1380 → Rev 1381

/trunk/modules/fiche/formateurs/Illustrations.php
90,6 → 90,15
return $this->donnees;
}
public function obtenirPhotoCelTpl() {
$images = $this->initialiserPhotos('cel');
$this->formaterListePhotos('cel', $images);
$this->formaterMetaPhotos('cel');
$chemin_sous_squelette = Config::get('chemin_modules').AppControleur::getNomDossierDepuisClasse('Fiche').DS.Config::get('dossier_squelettes').DS;
$donnees = array('cel' => array('images' => $this->donnees['cel']['images'], 'meta' => $this->donnees['cel']['meta'] ));
$html_tpl = $this->getVue($chemin_sous_squelette.'fiche_illustrations_cel.tpl.html', $donnees);
return $html_tpl;
}
public function getPhoto($source) {
$donnees = array();
143,18 → 152,29
$projets[] = Config::get($this->referentiel.'.baseImagesSupp');
foreach ($projets as $projet) {
if ($projet != "") {
// Beaucoup trop d'images pour cel, on fait juste un lien qui permettra de les charger
if ($projet == "cel") {
$this->images->setApi(Eflore::API_EFLORE); // prêt à passer à API_DEL
$this->donnees['cel']['ajax_url'] = $this->formaterUrlAjaxPhotoCel();
} else {
$this->images->setApi(Eflore::API_EFLORE);
$images = $this->initialiserPhotos($projet);
$this->formaterListePhotos($projet, $images);
$this->formaterMetaPhotos($projet);
}
$images = $this->initialiserPhotos($projet);
$this->formaterListePhotos($projet, $images);
$this->formaterMetaPhotos($projet);
}
}
}
private function formaterUrlAjaxPhotoCel() {
$infos = array('referentiel' => $this->referentiel,
'module' => 'fiche',
'action' => 'templateAjax',
'sous_action' => 'photoCelTpl',
'num_nom' => $this->nomCourant->getNnr(),
'onglet' => 'illustrations');
return Config::get('base_url_application_onglets').'?'.http_build_query($infos);
}
public function getPhotosSixOrganes() {
$organes = $this->getOrganes();
$nnr = $this->nomCourant->getNnr();