| @@ -13,9 +13,8 @@ | ||
| 13 | 13 | use ShopEngine\Libs\License\License_Route; |
| 14 | 14 | use ShopEngine\Libs\Rating\Rating; |
| 15 | 15 | use ShopEngine\Libs\Updater\Init as Updater; |
| 16 | 16 | use ShopEngine\Modules\Manifest as Module_Manifest; |
| 17 | -use ShopEngine\Utils\Feedback\Plugin_Unsubscribe; | |
| 18 | 17 | use ShopEngine\Widgets\Manifest; |
| 19 | 18 | |
| 20 | 19 | |
| 21 | 20 | /** |
| @@ -85,10 +84,8 @@ | ||
| 85 | 84 | |
| 86 | 85 | if($error) { |
| 87 | 86 | return; |
| 88 | 87 | } |
| 89 | - | |
| 90 | - | |
| 91 | 88 | |
| 92 | 89 | add_filter("plugin_action_links_shopengine/shopengine.php", function ($links) { |
| 93 | 90 | $free = esc_html__("Go To Shopengine","shopengine"); |
| 94 | 91 | $pro = esc_html__("Go To ShopenginePro","shopengine"); |
| @@ -131,11 +128,9 @@ | ||
| 131 | 128 | * Routes initialization |
| 132 | 129 | * |
| 133 | 130 | */ |
| 134 | 131 | new License_Route(); |
| 135 | - | |
| 136 | - // Initialize deactivation feedback modal | |
| 137 | - new \ShopEngine\Utils\Feedback\Plugin_Unsubscribe(); | |
| 132 | + | |
| 138 | 133 | /** |
| 139 | 134 | * Run pro plugin updater here.... |
| 140 | 135 | * |
| 141 | 136 | */ |
| @@ -182,16 +177,9 @@ | ||
| 182 | 177 | } |
| 183 | 178 | |
| 184 | 179 | } |
| 185 | 180 | |
| 186 | - // Cart validation compatibility with WC Min Max Quantity plugin | |
| 187 | 181 | |
| 188 | - if ( function_exists( 'is_plugin_active' ) && is_plugin_active( 'woo-min-max-quantity-step-control-single/wcmmq.php' ) ) { | |
| 189 | - | |
| 190 | - add_filter( 'wcmmq_cart_validation_check', [ $this, 'shopengine_wcmmq_cart_validation_compat' ], 10, 2 ); | |
| 191 | - } | |
| 192 | - | |
| 193 | - | |
| 194 | 182 | //Loading public scripts and styles |
| 195 | 183 | add_action('wp_enqueue_scripts', [$this, 'js_css_public']); |
| 196 | 184 | |
| 197 | 185 | //woocommece theme support |
| @@ -262,8 +250,15 @@ | ||
| 262 | 250 | 'icon' => $apps_img_path. 'elementskit.gif', |
| 263 | 251 | 'desc' => esc_html__('All-in-one Elementor addon trusted by 1 Million+ users, makes your website builder process easier with ultimate freedom.', 'shopengine'), |
| 264 | 252 | 'docs' => 'https://wpmet.com/doc/elementskit/', |
| 265 | 253 | ], |
| 254 | + 'getgenie/getgenie.php' => [ | |
| 255 | + 'name' => esc_html__('GetGenie', 'shopengine'), | |
| 256 | + 'url' => 'https://wordpress.org/plugins/getgenie/', | |
| 257 | + 'icon' => $apps_img_path.'getgenie.gif', | |
| 258 | + 'desc' => esc_html__('Your personal AI assistant for content and SEO. Write content that ranks on Google with NLP keywords and SERP analysis data.', 'shopengine'), | |
| 259 | + 'docs' => 'https://getgenie.ai/docs/', | |
| 260 | + ], | |
| 266 | 261 | 'gutenkit-blocks-addon/gutenkit-blocks-addon.php' => [ |
| 267 | 262 | 'name' => esc_html__('GutenKit', 'shopengine'), |
| 268 | 263 | 'url' => 'https://wordpress.org/plugins/gutenkit-blocks-addon/', |
| 269 | 264 | 'icon' => $apps_img_path. 'guten-kit.png', |
| @@ -269,22 +264,8 @@ | ||
| 269 | 264 | 'icon' => $apps_img_path. 'guten-kit.png', |
| 270 | 265 | 'desc' => esc_html__('Gutenberg blocks, patterns, and templates that extend the page-building experience using the WordPress block editor.', 'shopengine'), |
| 271 | 266 | 'docs' => 'https://wpmet.com/doc/gutenkit/', |
| 272 | 267 | ], |
| 273 | - 'rox-dynamic-cpt-fields-engine/rox-dynamic-cpt-fields-engine.php' => [ | |
| 274 | - 'name' => esc_html__('Rox Dynamic CPT Fields', 'shopengine'), | |
| 275 | - 'url' => 'https://wordpress.org/plugins/rox-dynamic-cpt-fields-engine/', | |
| 276 | - 'icon' => 'https://ps.w.org/rox-dynamic-cpt-fields-engine/assets/icon-256x256.jpeg?rev=3538537', | |
| 277 | - 'desc' => esc_html__('Build custom post types, fields, taxonomies, and dynamic frontend layouts for WordPress, with zero coding and full AI-generated schema.', 'shopengine'), | |
| 278 | - 'docs' => 'https://wpmet.com/doc/rox-dynamic-cpt-fields-engine/', | |
| 279 | - ], | |
| 280 | - 'rox-appointment-booking/rox-appointment-booking.php' => [ | |
| 281 | - 'name' => esc_html__('Rox Appointment Booking', 'shopengine'), | |
| 282 | - 'url' => 'https://wordpress.org/plugins/rox-appointment-booking/', | |
| 283 | - 'icon' => 'https://ps.w.org/rox-appointment-booking/assets/icon-256x256.png?rev=3575641', | |
| 284 | - 'desc' => esc_html__('Manage bookings, agents, payments, and calendars from one dashboard! A complete appointment and scheduling solution for WordPress.', 'shopengine'), | |
| 285 | - 'docs' => 'https://wpmet.com/doc/rox-appointment-booking/', | |
| 286 | - ], | |
| 287 | 268 | 'metform/metform.php' => [ |
| 288 | 269 | 'name' => esc_html__('MetForm', 'shopengine'), |
| 289 | 270 | 'url' => 'https://wordpress.org/plugins/metform/', |
| 290 | 271 | 'icon' => $apps_img_path. 'metform.png', |
| @@ -290,29 +271,8 @@ | ||
| 290 | 271 | 'icon' => $apps_img_path. 'metform.png', |
| 291 | 272 | 'desc' => esc_html__('Drag & drop form builder for Elementor to create contact forms, multi-step forms, and more — smoother, faster, and better!', 'shopengine'), |
| 292 | 273 | 'docs' => 'https://wpmet.com/doc/metform/', |
| 293 | 274 | ], |
| 294 | - 'popup-builder-block/popup-builder-block.php' => [ | |
| 295 | - 'name' => esc_html__('PopupKit', 'shopengine'), | |
| 296 | - 'url' => 'https://wordpress.org/plugins/popup-builder-block/', | |
| 297 | - 'icon' => 'https://ps.w.org/popup-builder-block/assets/icon-256x256.png?rev=3316844', | |
| 298 | - 'desc' => esc_html__('Design popups that convert, right in your WordPress dashboard.', 'shopengine'), | |
| 299 | - 'docs' => 'https://wpmet.com/doc/popupkit/', | |
| 300 | - ], | |
| 301 | - 'table-builder-block/table-builder-block.php' => [ | |
| 302 | - 'name' => esc_html__('TableKit', 'shopengine'), | |
| 303 | - 'url' => 'https://wordpress.org/plugins/table-builder-block/', | |
| 304 | - 'icon' => 'https://ps.w.org/table-builder-block/assets/icon-256x256.png?rev=3509972', | |
| 305 | - 'desc' => esc_html__('Fully Customizable. Multi-Media Integration. Synch Any Data Files. All Within Block Editor.', 'shopengine'), | |
| 306 | - 'docs' => 'https://wpmet.com/doc/tablekit/', | |
| 307 | - ], | |
| 308 | - 'getgenie/getgenie.php' => [ | |
| 309 | - 'name' => esc_html__('GetGenie', 'shopengine'), | |
| 310 | - 'url' => 'https://wordpress.org/plugins/getgenie/', | |
| 311 | - 'icon' => $apps_img_path.'getgenie.gif', | |
| 312 | - 'desc' => esc_html__('Your personal AI assistant for content and SEO. Write content that ranks on Google with NLP keywords and SERP analysis data.', 'shopengine'), | |
| 313 | - 'docs' => 'https://getgenie.ai/docs/', | |
| 314 | - ], | |
| 315 | 275 | 'emailkit/EmailKit.php' => [ |
| 316 | 276 | 'name' => esc_html__('EmailKit', 'shopengine'), |
| 317 | 277 | 'url' => 'https://wordpress.org/plugins/emailkit/', |
| 318 | 278 | 'icon' => $apps_img_path . 'emailkit.png', |
| @@ -325,8 +285,22 @@ | ||
| 325 | 285 | 'icon' => $apps_img_path . 'wp-social.png', |
| 326 | 286 | 'desc' => esc_html__('Add social share, login, and engagement counter — unified solution for all social media with tons of different styles for your website.', 'shopengine'), |
| 327 | 287 | 'docs' => 'https://wpmet.com/doc/wp-social/', |
| 328 | 288 | ], |
| 289 | + 'wp-ultimate-review/wp-ultimate-review.php' => [ | |
| 290 | + 'name' => esc_html__('WP Ultimate Review', 'shopengine'), | |
| 291 | + 'url' => 'https://wordpress.org/plugins/wp-ultimate-review/', | |
| 292 | + 'icon' => $apps_img_path . 'ultimate-review.png', | |
| 293 | + 'desc' => esc_html__('Collect and showcase reviews on your website to build brand credibility and social proof with the easiest solution.','shopengine'), | |
| 294 | + 'docs' => 'https://wpmet.com/doc/wp-ultimate-review/', | |
| 295 | + ], | |
| 296 | + 'wp-fundraising-donation/wp-fundraising.php' => [ | |
| 297 | + 'name' => esc_html__('FundEngine', 'shopengine'), | |
| 298 | + 'url' => 'https://wordpress.org/plugins/wp-fundraising-donation/', | |
| 299 | + 'icon' => $apps_img_path . 'fundengine.png', | |
| 300 | + 'desc' => esc_html__('Create fundraising, crowdfunding, and donation websites with PayPal and Stripe payment gateway integration.', 'shopengine'), | |
| 301 | + 'docs' => 'https://wpmet.com/doc/fundengine/', | |
| 302 | + ], | |
| 329 | 303 | 'blocks-for-shopengine/shopengine-gutenberg-addon.php' => [ |
| 330 | 304 | 'name' => esc_html__('Blocks for ShopEngine', 'shopengine'), |
| 331 | 305 | 'url' => 'https://wordpress.org/plugins/blocks-for-shopengine/', |
| 332 | 306 | 'icon' => $apps_img_path. 'shopengine.gif', |
| @@ -332,8 +306,16 @@ | ||
| 332 | 306 | 'icon' => $apps_img_path. 'shopengine.gif', |
| 333 | 307 | 'desc' => esc_html__('All in one WooCommerce solution for Gutenberg! Build your WooCommerce pages in a block editor with full customization.', 'shopengine'), |
| 334 | 308 | 'docs' => 'https://wpmet.com/doc/shopengine/shopengine-gutenberg/', |
| 335 | 309 | ], |
| 310 | + 'genie-image-ai/genie-image-ai.php' => [ | |
| 311 | + 'name' => esc_html__('Genie Image', 'shopengine'), | |
| 312 | + 'url' => 'https://wordpress.org/plugins/genie-image-ai/', | |
| 313 | + 'icon' => $apps_img_path . 'genie-image.png', | |
| 314 | + 'desc' => esc_html__('AI-powered text-to-image generator for WordPress with OpenAI’s DALL-E 2 technology to generate high-quality images in one click. | |
| 315 | + ', 'shopengine'), | |
| 316 | + 'docs' => 'https://getgenie.ai/docs/', | |
| 317 | + ], | |
| 336 | 318 | ] |
| 337 | 319 | ) |
| 338 | 320 | ->call(); |
| 339 | 321 | |
| @@ -382,26 +364,8 @@ | ||
| 382 | 364 | |
| 383 | 365 | //it will register an option in customizer for woocommerce products catelog. It's related with our Arcive Products widget. |
| 384 | 366 | Register_Settings::instance()->init(); |
| 385 | 367 | } |
| 386 | - | |
| 387 | - public function shopengine_wcmmq_cart_validation_compat( $check, $request ) { | |
| 388 | - | |
| 389 | - $cart_widget_flag = isset( $_REQUEST['shopengine_cart_widget'] ) | |
| 390 | - ? sanitize_text_field( wp_unslash( $_REQUEST['shopengine_cart_widget'] ) ) | |
| 391 | - : ''; | |
| 392 | - $cart_widget_nonce = isset( $_REQUEST['shopengine_cart_widget_nonce'] ) | |
| 393 | - ? sanitize_text_field( wp_unslash( $_REQUEST['shopengine_cart_widget_nonce'] ) ) | |
| 394 | - : ''; | |
| 395 | - | |
| 396 | - if ( $cart_widget_flag === '1' && wp_verify_nonce( $cart_widget_nonce, 'shopengine_cart_widget' ) ) { | |
| 397 | - return false; // Skip WC MMQ validation for verified ShopEngine cart widget requests | |
| 398 | - } | |
| 399 | - return $check; // Proceed with normal validation for other requests | |
| 400 | - } | |
| 401 | - | |
| 402 | - | |
| 403 | - | |
| 404 | 368 | |
| 405 | 369 | |
| 406 | 370 | // add async and defer attributes to enqueued scripts |
| 407 | 371 | public function filter_load_type($tag, $handle, $src) { |