| 48 |
$cache = fast_gallery_get_cache(); |
$cache = fast_gallery_get_cache(); |
| 49 |
$path = $this->getPath(); |
$path = $this->getPath(); |
| 50 |
if ($this->isDir) { //incase a dir we return a special image |
if ($this->isDir) { //incase a dir we return a special image |
| 51 |
$path = drupal_get_path('module', 'fast_gallery') . '/images/doc.screenshot.jpg'; |
$path = drupal_get_path('module', 'fast_gallery') . '/images/folder.png'; |
| 52 |
|
return theme('image', array('path' => $path, 'title' => t('folder'))); |
| 53 |
} |
} |
| 54 |
$cache->createthumb($path, 150, 100); |
else { |
| 55 |
return theme('image', array('path' => $path . '.thumb')); |
$cache->createthumb($path, 150, 100); |
| 56 |
|
return theme('image', array('path' => $path . '.thumb', 'title' => $this->getName())); |
| 57 |
|
} |
| 58 |
|
|
| 59 |
} |
} |
| 60 |
/** |
/** |
| 61 |
* Given a path and index n, removes n number of elements from the end of |
* Given a path and index n, removes n number of elements from the end of |