module-list.php
54 lines
| 1 | <?php |
| 2 | |
| 3 | namespace ShopEngine\Core\Register; |
| 4 | |
| 5 | defined('ABSPATH') || exit; |
| 6 | |
| 7 | class Module_List extends \ShopEngine\Base\List_Model{ |
| 8 | |
| 9 | use \ShopEngine\Traits\Singleton; |
| 10 | |
| 11 | protected $list_type = 'modules'; |
| 12 | |
| 13 | protected function raw_list() { |
| 14 | return [ |
| 15 | 'quick-view' => [ |
| 16 | 'slug' => 'quick-view', |
| 17 | 'title' => esc_html__('Quick View', 'shopengine'), |
| 18 | 'package' => 'free', |
| 19 | 'base_class' => '\ShopEngine\Modules\Quick_View\Quick_View', |
| 20 | ], |
| 21 | 'quick-checkout' => [ |
| 22 | 'slug' => 'quick-checkout', |
| 23 | 'title' => esc_html__('Quick Checkout', 'shopengine'), |
| 24 | 'package' => 'free', |
| 25 | 'base_class' => '\ShopEngine\Modules\Quick_Checkout\Quick_Checkout', |
| 26 | ], |
| 27 | 'swatches' => [ |
| 28 | 'slug' => 'swatches', |
| 29 | 'title' => esc_html__('Swatches', 'shopengine'), |
| 30 | 'package' => 'free', |
| 31 | 'base_class' => '\ShopEngine\Modules\Swatches\Swatches', |
| 32 | ], |
| 33 | 'badge' => [ |
| 34 | 'slug' => 'badge', |
| 35 | 'title' => esc_html__('Badges', 'shopengine'), |
| 36 | 'package' => 'free', |
| 37 | 'base_class' => '\ShopEngine\Modules\Badge\Badge', |
| 38 | ], |
| 39 | 'wishlist' => [ |
| 40 | 'slug' => 'wishlist', |
| 41 | 'title' => esc_html__('Wishlist', 'shopengine'), |
| 42 | 'package' => 'free', |
| 43 | 'base_class' => '\ShopEngine\Modules\Wishlist\Wishlist', |
| 44 | ], |
| 45 | 'comparison' => [ |
| 46 | 'slug' => 'comparison', |
| 47 | 'title' => esc_html__('Product Comparison', 'shopengine'), |
| 48 | 'package' => 'free', |
| 49 | 'base_class' => '\ShopEngine\Modules\Comparison\Comparison', |
| 50 | ], |
| 51 | ]; |
| 52 | } |
| 53 | } |
| 54 |