Returning an empty array in getAllowedTargets() will make the widget visible on all pages. I.e. you should do something like this:
PHP Code:
namespace XLite\Module\YOUR_DEV_ID\YOUR_MODULE_ID\View;
/**
* @LC_Dependencies ("QSL\ShopByBrand")
*/
class BrandsBlock extends \XLite\Module\QSL\ShopByBrand\View\BrandsBlock implements \XLite\Base\IDecorator
{
public static function getAllowedTargets()
{
return array();
}
}
The
@LC_Dependencies ("QSL\ShopByBrand") statement is here to make your code apply over the code added by Shop By Brand module (otherwise XC5 may run the original module's method after yours and this will ignore your modification).