Line 97... |
Line 97... |
97 |
if ( isset( $retour['donnees'] ) ) {
|
97 |
if ( isset( $retour['donnees'] ) ) {
|
98 |
$retour['donnees']['params'] = '&projet=' . $_POST['projet'] . '&langue=' . $_POST['langue'];
|
98 |
$retour['donnees']['params'] = '&projet=' . $_POST['projet'] . '&langue=' . $_POST['langue'];
|
99 |
$retour['donnees']['prod'] = ( $this->config['parametres']['modeServeur'] === 'prod' );
|
99 |
$retour['donnees']['prod'] = ( $this->config['parametres']['modeServeur'] === 'prod' );
|
100 |
$retour['donnees']['bar'] = $this->bar;
|
100 |
$retour['donnees']['bar'] = $this->bar;
|
101 |
$retour['donnees']['url_base'] = sprintf( $this->config['chemins']['baseURLAbsoluDyn'], '' );
|
101 |
$retour['donnees']['url_base'] = sprintf( $this->config['chemins']['baseURLAbsoluDyn'], '' );
|
102 |
|
- |
|
- |
|
102 |
$retour['donnees']['chemin_images'] = sprintf( $this->config['chemins']['baseURLAbsoluDyn'], $this->config['manager']['dossierTmp'] );
|
103 |
$retour['donnees']['mode'] = $mode; //print_r($retour);
|
103 |
$retour['donnees']['mode'] = $mode; //print_r($retour);
|
104 |
$squelette = dirname( __FILE__ ) . self::DS . 'squelettes' . self::DS . $retour['squelette'] . '.tpl.html';
|
104 |
$squelette = dirname( __FILE__ ) . self::DS . 'squelettes' . self::DS . $retour['squelette'] . '.tpl.html';
|
105 |
$contenu = $this->traiterSquelettePhp( $squelette, $retour['donnees'] );
|
105 |
$contenu = $this->traiterSquelettePhp( $squelette, $retour['donnees'] );
|
106 |
} else {
|
106 |
} else {
|
Line 129... |
Line 129... |
129 |
}
|
129 |
}
|
Line 130... |
Line 130... |
130 |
|
130 |
|
131 |
$json = $this->getDao()->consulter( $url );
|
131 |
$json = $this->getDao()->consulter( $url );
|
132 |
$retour['donnees']['widget'] = (array) json_decode( $json, true );
|
132 |
$retour['donnees']['widget'] = (array) json_decode( $json, true );
|
133 |
$retour['donnees']['widgetUrlTpl'] = $this->config['manager']['widgetUrlTpl'];
|
- |
|
Line 134... |
Line 133... |
134 |
$retour['donnees']['chemin_images'] = sprintf( $this->config['chemins']['baseURLAbsoluDyn'], $this->config['manager']['dossierTmp'] );
|
133 |
$retour['donnees']['widgetUrlTpl'] = $this->config['manager']['widgetUrlTpl'];
|
135 |
|
134 |
|
Line 136... |
Line 135... |
136 |
return $retour;
|
135 |
return $retour;
|