public static function configure(WidgetConfig $config) { $config->setCategoryId('About Piwik'); $config->setName('Installation_SystemCheck'); $config->setOrder(16); $config->setIsEnabled(Piwik::hasUserSuperUserAccess()); }
public static function configure(WidgetConfig $config) { $config->setCategoryId('About Piwik'); $config->setName('CoreHome_SystemSummaryWidget'); $config->setOrder(15); $config->setIsEnabled(Piwik::hasUserSuperUserAccess()); }
public static function configure(WidgetConfig $config) { /** * Set the category the widget belongs to. You can reuse any existing widget category or define * your own category. */ $config->setCategoryId('About Piwik'); /** * Set the subcategory the widget belongs to. If a subcategory is set, the widget will be shown in the UI. */ // $config->setSubcategoryId('General_Overview'); /** * Set the name of the widget belongs to. */ $config->setName('Example Widget Name'); /** * Set the order of the widget. The lower the number, the earlier the widget will be listed within a category. */ $config->setOrder(99); /** * Optionally set URL parameters that will be used when this widget is requested. * $config->setParameters(array('myparam' => 'myvalue')); */ /** * Define whether a widget is enabled or not. For instance some widgets might not be available to every user or * might depend on a setting (such as Ecommerce) of a site. In such a case you can perform any checks and then * set `true` or `false`. If your widget is only available to users having super user access you can do the * following: * * $config->setIsEnabled(\Piwik\Piwik::hasUserSuperUserAccess()); * or * if (!\Piwik\Piwik::hasUserSuperUserAccess()) * $config->disable(); */ }
public static function configure(WidgetConfig $config) { $config->setCategoryId('General_Visitors'); $config->setSubcategoryId('UserCountry_SubmenuLocations'); $config->setName('UserCountryMap_VisitorMap'); $config->setAction('visitorMap'); $config->setOrder(1); }
public static function configure(WidgetConfig $config) { $config->setCategoryId('General_Visitors'); $config->setName('Live_VisitorProfile'); $config->setOrder(25); if (Piwik::isUserIsAnonymous()) { $config->disable(); } }
public static function configure(WidgetConfig $config) { $config->setCategoryId('General_Visitors'); $config->setSubcategoryId('UserCountryMap_RealTimeMap'); $config->setName('UserCountryMap_RealTimeMap'); $config->setModule('UserCountryMap'); $config->setAction('realtimeMap'); $config->setOrder(5); if (!PluginManager::getInstance()->isPluginActivated('UserCountry')) { $config->disable(); } }
public static function configure(WidgetConfig $config) { $config->setCategoryId('About Piwik'); $config->setName('Latest Marketplace Updates'); $config->setOrder(19); }
public static function configure(WidgetConfig $config) { $config->setCategoryId('Live!'); $config->setName('Live_VisitorsInRealTime'); $config->setOrder(20); }
public static function configure(WidgetConfig $config) { $config->setCategoryId('About Piwik'); $config->setName('CoreHome_SupportPiwik'); $config->setOrder(5); }
public static function configure(WidgetConfig $config) { $config->setCategoryId('About Piwik'); $config->setName('Installation_Welcome'); $config->setOrder(10); }