/*public static function renderASwitch($switchW, $switchH, $switchFixedSize, $extWSwitch, $extHSwitch, $extL, $linkThumbPath) {
if ($extL != '') {
// Picasa
if ((int)$switchW > 0 && (int)$switchH > 0 && $switchFixedSize == 1) {
// Custom Size
return ' onmouseover="PhocaGallerySwitchImage(\'PhocaGalleryobjectPicture\', \'' . $extL . '\', ' . $switchW . ', ' . $switchH . ');" ';
} else {
// Picasa Size
$correctImageResL = PhocaGalleryPicasa::correctSizeWithRate($extWSwitch, $extHSwitch, $switchW, $switchH);
return ' onmouseover="PhocaGallerySwitchImage(\'PhocaGalleryobjectPicture\', \'' . $extL . '\', ' . $correctImageResL['width'] . ', ' . $correctImageResL['height'] . ');" ';
// onmouseout="PhocaGallerySwitchImage(\'PhocaGalleryobjectPicture\', \''.$extL.'\');"
}
} else {
$switchImg = str_replace('phoca_thumb_m_', 'phoca_thumb_l_', Uri::base(true) . '/' . $linkThumbPath);
if ((int)$switchW > 0 && (int)$switchH > 0 && $switchFixedSize == 1) {
return ' onmouseover="PhocaGallerySwitchImage(\'PhocaGalleryobjectPicture\', \'' . $switchImg . '\', ' . $switchW . ', ' . $switchH . ');" ';
} else {
return ' onmouseover="PhocaGallerySwitchImage(\'PhocaGalleryobjectPicture\', \'' . $switchImg . '\');" ';
// onmouseout="PhocaGallerySwitchImage(\'PhocaGalleryobjectPicture\', \''.$switchImg.'\');"
}
}
return '';
}*/
public static function renderImageClass($image)
{
$isFolder = strpos($image, 'com_phocagallery/assets/images/icon-folder');
$isUp = strpos($image, 'com_phocagallery/assets/images/icon-up');
if ($isFolder !== false) {
return 'pg-cat-folder';
} else {
if ($isUp !== false) {
return 'pg-cat-up';
} else {
return 'pg-cat-image';
}
}
}