| 7 |
* Fast Gallery allows you to build galleries based on your file |
* Fast Gallery allows you to build galleries based on your file |
| 8 |
* system with folders and subfolders. |
* system with folders and subfolders. |
| 9 |
* |
* |
| 10 |
* This module is sponsored by Sch�r Webdesign. |
* This module is sponsored by Schär Webdesign. |
| 11 |
* Visit www.schaerwebdesign.ch or the Drupal-related blog www.rapsli.ch. |
* Visit www.schaerwebdesign.ch or the Drupal-related blog www.rapsli.ch. |
| 12 |
* |
* |
| 13 |
* Original version by Raphael Sch�r - www.schaerwebdesign.ch. |
* Original version by Raphael Schär - www.schaerwebdesign.ch. |
| 14 |
* |
* |
| 15 |
* @author Raphael Sch�r - www.schaerwebdesign.ch |
* @author Raphael Schär - www.schaerwebdesign.ch |
| 16 |
*/ |
*/ |
| 17 |
|
|
| 18 |
define('FG_DEFAULT_STORAGE_ENGINE','default'); |
define('FG_DEFAULT_STORAGE_ENGINE','default'); |
| 125 |
$html = ''; |
$html = ''; |
| 126 |
foreach ($images as $image) { |
foreach ($images as $image) { |
| 127 |
if ($image->isDir()) {//incase of a subfolder -> make a different link |
if ($image->isDir()) {//incase of a subfolder -> make a different link |
| 128 |
$image_html = l($image->renderHtml(), $current_path . '/' . $image->getName(), array('html' => TRUE)); |
$image_html = l($image->renderHtml() . '<br/>' . $image->getName(), $current_path . '/' . $image->getName(), array('html' => TRUE)); |
| 129 |
} |
} |
| 130 |
else { |
else { |
| 131 |
$image_html = l($image->renderHtml() . '<br/>' . $image->getName(), $image->getPath(), array('html' => TRUE)); |
$image_html = l($image->renderHtml() . '<br/>' . $image->getName(), $image->getPath(), array('html' => TRUE)); |