diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2019-08-17 05:23:20 +0300 |
---|---|---|
committer | diosmosis <diosmosis@users.noreply.github.com> | 2019-08-17 05:23:20 +0300 |
commit | 9a7c8eda0b1b2918c8cbb6d18d7ea47027337374 (patch) | |
tree | be601ed1877f774b0a6b33c2feb1af3bfc41da4f /plugins/Marketplace/Categories | |
parent | c2186baf5ca5966d7391b91161fa7109bbb8d634 (diff) |
Show marketplace in reporting menu (#14738)
* show marketplace in reporting menu
* also include other widgets
* show more pages in the reporting menu
* fix tests
* fix screenshots
* Update screenshot files and try to fix random failure.
* fix test
Diffstat (limited to 'plugins/Marketplace/Categories')
3 files changed, 62 insertions, 0 deletions
diff --git a/plugins/Marketplace/Categories/BrowseSubcategory.php b/plugins/Marketplace/Categories/BrowseSubcategory.php new file mode 100644 index 0000000000..3a49ba31db --- /dev/null +++ b/plugins/Marketplace/Categories/BrowseSubcategory.php @@ -0,0 +1,19 @@ +<?php +/** + * Piwik - free/libre analytics platform + * + * @link https://matomo.org + * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later + * + */ +namespace Piwik\Plugins\Marketplace\Categories; + +use Piwik\Category\Subcategory; + +class BrowseSubcategory extends Subcategory +{ + protected $categoryId = 'Marketplace_Marketplace'; + protected $id = 'Marketplace_Browse'; + protected $order = 5; + +} diff --git a/plugins/Marketplace/Categories/MarketplaceCategory.php b/plugins/Marketplace/Categories/MarketplaceCategory.php new file mode 100644 index 0000000000..3da7a155b7 --- /dev/null +++ b/plugins/Marketplace/Categories/MarketplaceCategory.php @@ -0,0 +1,24 @@ +<?php +/** + * Piwik - free/libre analytics platform + * + * @link https://matomo.org + * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later + * + */ +namespace Piwik\Plugins\Marketplace\Categories; + +use Piwik\Category\Category; +use Piwik\Piwik; + +class MarketplaceCategory extends Category +{ + protected $id = 'Marketplace_Marketplace'; + protected $order = 200; + protected $icon = ' icon-open-source'; + + public function getDisplayName() + { + return Piwik::translate('Marketplace_Marketplace'); + } +} diff --git a/plugins/Marketplace/Categories/PremiumFeaturesSubcategory.php b/plugins/Marketplace/Categories/PremiumFeaturesSubcategory.php new file mode 100644 index 0000000000..73858af823 --- /dev/null +++ b/plugins/Marketplace/Categories/PremiumFeaturesSubcategory.php @@ -0,0 +1,19 @@ +<?php +/** + * Piwik - free/libre analytics platform + * + * @link https://matomo.org + * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later + * + */ +namespace Piwik\Plugins\Marketplace\Categories; + +use Piwik\Category\Subcategory; + +class PremiumFeaturesSubcategory extends Subcategory +{ + protected $categoryId = 'Marketplace_Marketplace'; + protected $id = 'Marketplace_PaidPlugins'; + protected $order = 10; + +} |