Back to PhocaGalleryUtils class

Method isEnabledMultiboxFeature

public static
isEnabledMultiboxFeature
(mixed $feature)

Method isEnabledMultiboxFeature - Source code

public static function isEnabledMultiboxFeature($feature)
{
    $app = Factory::getApplication();
    $params = $app->getParams();
    $enable_multibox = $params->get('enable_multibox', 0);
    $display_multibox = $params->get('display_multibox', array(1, 2));
    if ($enable_multibox == 1 && in_array($feature, $display_multibox)) {
        return true;
    }
    return false;
}