PluginProbe ʕ •ᴥ•ʔ
ShopEngine Elementor WooCommerce Builder Addon – All in One WooCommerce Solution / 2.5.0
ShopEngine Elementor WooCommerce Builder Addon – All in One WooCommerce Solution v2.5.0
4.9.2 4.9.1 4.9.0 2.0.0 2.1.0 2.2.0 2.2.1 2.2.2 2.3.0 2.4.0 2.5.0 2.5.1 3.0.0 3.1.0 3.1.1 4.0.0 4.0.1 4.1.0 4.1.1 4.2.0 4.2.1 4.3.0 4.3.1 4.4.0 4.5.0 4.5.1 4.6.0 4.6.1 4.6.2 4.6.3 4.6.4 4.6.5 4.6.6 4.6.7 4.6.8 4.6.9 4.7.0 4.7.1 4.7.2 4.7.3 4.7.4 4.7.5 4.7.6 4.7.7 4.7.8 4.7.9 4.8.0 4.8.1 4.8.2 4.8.3 4.8.4 4.8.5 4.8.6 4.8.7 4.8.8 4.8.9 trunk 0.1.2-beta 0.1.3-beta 0.1.4-beta 1.0.0 1.1.0 1.1.1 1.1.2 1.1.3 1.2.0 1.2.1 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.4.0 1.4.1 1.5.0 1.5.1 1.6.0 1.6.1 1.7.0 1.8.0 1.8.1 1.9.0
shopengine / core / register / module-list.php
shopengine / core / register Last commit date
base.php 3 years ago model.php 3 years ago module-list.php 3 years ago widget-list.php 3 years ago
module-list.php
274 lines
1 <?php
2
3 namespace ShopEngine\Core\Register;
4
5 use ShopEngine\Base\List_Model;
6 use ShopEngine\Traits\Singleton;
7
8 defined( 'ABSPATH' ) || exit;
9
10 class Module_List extends List_Model {
11
12 use Singleton;
13
14 protected $list_type = 'modules';
15
16 protected function raw_list() {
17 return array_merge( [
18 'quick-view' => [
19 'slug' => 'quick-view',
20 'title' => esc_html__( 'Quick View', 'shopengine' ),
21 'package' => 'free',
22 'base_class' => '\ShopEngine\Modules\Quick_View\Quick_View',
23 'settings' => [
24 ],
25 ],
26 'swatches' => [
27 'slug' => 'swatches',
28 'title' => esc_html__( 'Swatches', 'shopengine' ),
29 'package' => 'free',
30 'base_class' => '\ShopEngine\Modules\Swatches\Swatches',
31 'settings' => [],
32 ],
33 'wishlist' => [
34 'slug' => 'wishlist',
35 'title' => esc_html__( 'Wishlist', 'shopengine' ),
36 'package' => 'free',
37 'base_class' => '\ShopEngine\Modules\Wishlist\Wishlist',
38 'settings' => [
39 'show_on_archive_page' => [
40 'value' => 'yes',
41 'field_settings' => [
42 'type' => 'switch',
43 'label' => esc_html__( 'Show In Archive Page', 'shopengine' ),
44 ]
45 ],
46 'show_on_single_page' => [
47 'value' => 'yes',
48 'field_settings' => [
49 'type' => 'switch',
50 'label' => esc_html__( 'Show In Single Page', 'shopengine' ),
51 ]
52 ],
53 'show_icon_where_to' => [
54 'value' => 'before',
55 'field_settings' => [
56 'type' => 'select',
57 'label' => esc_html__( 'Show Before/After Add to cart button', 'shopengine' ),
58 'options' => [
59 'before' => esc_html__( 'Before', 'shopengine' ),
60 'after' => esc_html__( 'After', 'shopengine' ),
61 ],
62 ]
63 ],
64 'position' => [
65 'value' => 'bottom-right',
66 'field_settings' => [
67 'type' => 'select',
68 'label' => esc_html__('Notification Position', 'shopengine'),
69 'options' => [
70 'top-left' => esc_html__('Top Left', 'shopengine'),
71 'top-right' => esc_html__('Top Right', 'shopengine'),
72 'bottom-left' => esc_html__('Bottom Left', 'shopengine'),
73 'bottom-right' => esc_html__('Bottom Right', 'shopengine')
74 ]
75 ]
76 ]
77 ],
78 ],
79 'comparison' => [
80 'slug' => 'comparison',
81 'title' => esc_html__( 'Product Comparison', 'shopengine' ),
82 'package' => 'free',
83 'base_class' => '\ShopEngine\Modules\Comparison\Comparison',
84 'settings' => apply_filters( 'shopengine/module/comparison_settings', [
85 'show_on_archive_page' => [
86 'value' => 'yes',
87 'field_settings' => [
88 'type' => 'switch',
89 'label' => esc_html__( 'Show In Archive Page', 'shopengine' ),
90 ]
91 ],
92 'show_on_single_page' => [
93 'value' => 'yes',
94 'field_settings' => [
95 'type' => 'switch',
96 'label' => esc_html__( 'Show In Single Page', 'shopengine' ),
97 ]
98 ],
99 'show_icon_where_to' => [
100 'value' => 'before',
101 'field_settings' => [
102 'type' => 'select',
103 'label' => esc_html__( 'Show Before/After Add to cart button', 'shopengine' ),
104 'options' => [
105 'before' => esc_html__( 'Before', 'shopengine' ),
106 'after' => esc_html__( 'After', 'shopengine' ),
107 ],
108 ]
109 ],
110 'shop_field_in_table' => [
111 'value' => [ "image", "title", "availability", "weight" ],
112 'field_settings' => [
113 'type' => 'checkbox-group',
114 'label' => esc_html__( 'Select Fields to Show in Comparison Table', "shopengine" ),
115 'options' => apply_filters( 'shopengine/module/comparison_fields_for_table', [
116 [
117 'label' => esc_html__( 'Title', 'shopengine' ),
118 'value' => 'title'
119 ],
120 [
121 'label' => esc_html__( 'Description', 'shopengine' ),
122 'value' => 'description'
123 ],
124 [
125 'label' => esc_html__( 'Availability', 'shopengine' ),
126 'value' => 'availability'
127 ],
128 [
129 'label' => esc_html__( 'Weight', 'shopengine' ),
130 'value' => 'weight'
131 ],
132 [
133 'label' => esc_html__( 'Height', 'shopengine' ),
134 'value' => 'height'
135 ],
136 [
137 'label' => esc_html__( 'Dimension', 'shopengine' ),
138 'value' => 'dimension'
139 ],
140 ] )
141 ]
142 ],
143 'alert_one' => [
144 'field_settings' => [
145 'type' => 'pro-alert',
146 'value' => '',
147 'label' => '<h2> Pro Features </h2>',
148 'description' => '<p>
149 1. Attributes To Show<br/>
150 2. Custom Meta<br/>
151 3. Share Button<br/>
152 4. Show Compare Button/Bar On Bottom<br/>
153 You need to upgrade to the <strong><a title="' . esc_html__("Upgrade Feature","shopengine") . '" href="https://wpmet.com/plugin/shopengine/pricing" target="_blank" style="color: red;">Premium</a> </strong> Version.</p>',
154 'alert_type' => 'success' //success, info, warning, error
155 ]
156 ],
157
158 ] ),
159 ],
160 ],
161 $this->pro_modules_for_showing_on_free()
162 );
163 }
164
165 private function pro_modules_for_showing_on_free(){
166
167 if( class_exists('ShopEngine_Pro') ){
168 return [];
169 }
170
171 return [
172
173 'badge' => [
174 'slug' => 'badge',
175 'title' => esc_html__( 'Badges', 'shopengine' ),
176 'package' => 'pro-disabled',
177 'status' => 'inactive',
178 'settings' => [],
179 ],
180 'quick-checkout' => [
181 'slug' => 'quick-checkout',
182 'title' => esc_html__( 'Quick Checkout', 'shopengine' ),
183 'package' => 'pro-disabled',
184 'settings' => [
185 ],
186 ],
187 'partial-payment' => [
188 'slug' => 'partial-payment',
189 'title' => esc_html__( 'Partial Payment', 'shopengine' ),
190 'package' => 'pro-disabled',
191 'settings' => []
192 ],
193 'pre-order' => [
194 'slug' => 'pre-order',
195 'title' => esc_html__( 'Pre-Order', 'shopengine' ),
196 'package' => 'pro-disabled',
197 'settings' => [],
198 ],
199 'back-order' => [
200 'slug' => 'backorder',
201 'title' => esc_html__( 'Back-Order', 'shopengine' ),
202 'package' => 'pro-disabled',
203 'settings' => [],
204 ],
205 'sales-notification' => [
206 'slug' => 'sales-notification',
207 'title' => esc_html__( 'Sales Notification', 'shopengine' ),
208 'package' => 'pro-disabled',
209 'settings' => [],
210 ],
211 'currency-switcher' => [
212 'slug' => 'currency-switcher',
213 'title' => esc_html__( 'Currency Switcher', 'shopengine' ),
214 'package' => 'pro-disabled',
215 'settings' => [],
216 ],
217 'flash-sale-countdown' => [
218 'slug' => 'flash-sale-countdown',
219 'title' => esc_html__( 'Flash Sale Countdown', 'shopengine' ),
220 'package' => 'pro-disabled',
221 'settings' => [],
222 ],
223 'checkout-additional-field' => [
224 'slug' => 'checkout-additional-field',
225 'title' => esc_html__( 'Checkout Additional Field', 'shopengine' ),
226 'package' => 'pro-disabled',
227 'settings' => [],
228 ],
229 'product-size-charts' => [
230 'slug' => 'product-size-charts',
231 'title' => esc_html__('Product Size Charts', 'shopengine'),
232 'package' => 'pro-disabled',
233 'settings' => []
234 ],
235 'sticky-fly-cart' => [
236 'slug' => 'sticky-fly-cart',
237 'title' => esc_html__('Sticky Fly Cart', 'shopengine'),
238 'package' => 'pro-disabled',
239 'settings' => []
240 ],
241 'vacation' => [
242 'slug' => 'vacation',
243 'title' => esc_html__('Vacation', 'shopengine'),
244 'package' => 'pro-disabled',
245 'settings' => []
246 ],
247 'multistep-checkout' => [
248 'slug' => 'multistep-checkout',
249 'title' => esc_html__('Multistep Checkout', 'shopengine'),
250 'package' => 'pro-disabled',
251 'settings' => []
252 ],
253 'advanced-coupon' => [
254 'slug' => 'advanced-coupon',
255 'title' => esc_html__('Advanced Coupon', 'shopengine'),
256 'package' => 'pro-disabled',
257 'settings' => []
258 ],
259 'cross-sell-popup' => [
260 'slug' => 'cross-sell-popup',
261 'title' => esc_html__('Cross Sell Popup', 'shopengine'),
262 'package' => 'pro-disabled',
263 'settings' => []
264 ],
265 'avatar' => [
266 'slug' => 'avatar',
267 'title' => esc_html__('Avatar', 'shopengine'),
268 'package' => 'pro-disabled',
269 'settings' => []
270 ],
271 ];
272 }
273 }
274