Back to PhocaGalleryRenderFront class

Method renderAAttributeStat

public static
renderAAttributeStat
(mixed $detailWindow, mixed $buttonOptions, mixed $lingOrig, mixed $hSOnClick, mixed $hsOnClick2, mixed $linkNr, mixed $catAlias, mixed $suffix)

Method renderAAttributeStat - Source code

public static function renderAAttributeStat($detailWindow, $buttonOptions, $lingOrig, $hSOnClick, $hsOnClick2, $linkNr, $catAlias, $suffix)
{
    if ($detailWindow == 1) {
        return ' onclick="' . $buttonOptions . '"';
    } else {
        if ($detailWindow == 2) {
            return ' rel="' . $buttonOptions . '"';
        } else {
            if ($detailWindow == 4) {
                return ' onclick="' . $hSOnClick . '"';
            } else {
                if ($detailWindow == 5) {
                    return ' onclick="' . $hsOnClick2 . '"';
                } else {
                    if ($detailWindow == 8) {
                        return ' rel="lightbox-' . $catAlias . '-' . $suffix . '" ';
                    } else {
                        if ($detailWindow == 14) {
                            return ' ' . $buttonOptions;
                        } else {
                            return ' rel="' . $buttonOptions . '"';
                        }
                    }
                }
            }
        }
    }
    return '';
}