Back to PhocaGalleryRenderFront class

Method renderAAttributeOther

public static
renderAAttributeOther
(mixed $detailWindow, mixed $buttonOptionsOther, mixed $hSOnClick, mixed $hSOnClick2)

Method renderAAttributeOther - Source code

public static function renderAAttributeOther($detailWindow, $buttonOptionsOther, $hSOnClick, $hSOnClick2)
{
    if ($detailWindow == 1) {
        return ' onclick="' . $buttonOptionsOther . '"';
    } else {
        if ($detailWindow == 4) {
            return ' onclick="' . $hSOnClick . '"';
        } else {
            if ($detailWindow == 5) {
                return ' onclick="' . $hSOnClick2 . '"';
            } else {
                if ($detailWindow == 7) {
                    return '';
                } else {
                    if ($detailWindow == 14) {
                        return ' rel="' . $buttonOptionsOther . '"';
                    } else {
                        return ' rel="' . $buttonOptionsOther . '"';
                    }
                }
            }
        }
    }
    return '';
}