@@ 144-152 (lines=9) @@ | ||
141 | * @param integer $indice L'indice de l'image recherchée |
|
142 | * @return string L'URL |
|
143 | */ |
|
144 | public function getPictureUrl($indice) |
|
145 | { |
|
146 | $fieldName = 'article_picture' . $indice; |
|
147 | if (xoops_trim($this->getVar($fieldName)) != '' && $this->pictureExists($indice)) { |
|
148 | return references_utils::getModuleOption('images_url') . '/' . $this->getVar($fieldName); |
|
149 | } else { |
|
150 | return REFERENCES_IMAGES_URL . 'blank.gif'; |
|
151 | } |
|
152 | } |
|
153 | ||
154 | /** |
|
155 | * Retourne le chemin de l'image de l'article courante |
|
@@ 193-201 (lines=9) @@ | ||
190 | * @param integer $indice L'indice de l'image recherchée |
|
191 | * @return string L'URL |
|
192 | */ |
|
193 | public function getThumbUrl($indice) |
|
194 | { |
|
195 | $fieldName = 'article_picture' . $indice; |
|
196 | if (xoops_trim($this->getVar($fieldName)) != '') { |
|
197 | return references_utils::getModuleOption('images_url') . '/' . REFERENCES_THUMBS_PREFIX . $this->getVar($fieldName); |
|
198 | } else { |
|
199 | return REFERENCES_IMAGES_URL . 'blank.gif'; |
|
200 | } |
|
201 | } |
|
202 | ||
203 | /** |
|
204 | * Retourne le chemin de la vignette de l'annonce |