PluginProbe
SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster / 2.3.0
SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster v2.3.0
2.6.0 trunk 1.1.0 1.1.4 1.2.1 1.2.2 1.2.3 1.2.5 1.2.9 1.3.1 1.3.2 1.5.0 1.5.1 1.5.4 1.5.7 1.5.8 1.5.9 1.6.2 1.6.5 1.6.8 1.7.2 1.7.4 1.7.5 1.7.9 1.8.1 All 42 releases
← All changes | sellkit.php +11 -36 trunk2.3.0 View file →
@@ -1,14 +1,14 @@
1 1 <?php
2 2 /**
3 - * Plugin Name: SellKit - Funnel builder and checkout optimizer for WooCommerce to sell more, faster
3 + * Plugin Name: Sellkit
4 4 * Plugin URI: https://getsellkit.com/
5 5 * Description: Build unlimited sales funnels, one-click order bumps and upsells, custom thank you pages, and more. The free version of SellKit also offers a huge round of features to optimize your WooCommerce store: build and style single or multi-step checkout pages with advanced styling options. Add, remove & reorder form fields. Fasten the form submission process with pre-populated form data, Instant form validation, and removing cart page. All this and more is 100% free and for an unlimited number of sites.
6 - * Version: 2.6.0
6 + * Version: 2.3.0
7 7 * Author: Artbees
8 8 * Author URI: https://artbees.net
9 9 * Text Domain: sellkit
10 - * License: GPLv2 or later
10 + * License: GPL2
11 11 *
12 12 * @package Sellkit
13 13 */
14 14
@@ -168,15 +168,8 @@
168 168 'funnel/contacts/base-contacts',
169 169 'funnel/steps',
170 170 ] );
171 171
172 - if ( class_exists( 'SitePress' ) ) {
173 - $this->load_files([
174 - 'compatibility/wpml/module',
175 - 'compatibility/module',
176 - ] );
177 - }
178 -
179 172 $this->db = new Database();
180 173
181 174 add_action( 'plugins_loaded', [ $this, 'check_if_has_sellkit_pro' ], 11 );
182 175 add_action( 'plugins_loaded', [ $this, 'plugins_loaded' ] );
@@ -217,12 +210,10 @@
217 210 *
218 211 * @since 1.1.0
219 212 */
220 213 public function check_if_has_sellkit_pro() {
221 - if ( class_exists( 'Sellkit_Pro' ) && function_exists( 'sellkit_pro' ) ) {
222 - if ( sellkit_pro()->is_active_sellkit_pro ) {
223 - $this->has_pro = true;
224 - }
214 + if ( class_exists( 'Sellkit_Pro' ) ) {
215 + $this->has_pro = true;
225 216 }
226 217 }
227 218
228 219 /**
@@ -254,9 +245,8 @@
254 245 }
255 246
256 247 $this->load_files( [
257 248 'admin/class-promote-sellkit-pro',
258 - 'admin/class-promotion-banner',
259 249 ] );
260 250
261 251 if ( class_exists( 'WooCommerce' ) && 'gutenberg' === $this->page_builder() ) {
262 252 $this->load_files( [
@@ -301,16 +291,15 @@
301 291 update_option( 'sellkit-installed-time', time() );
302 292 }
303 293
304 294 /**
305 - * Adds `sellkit` on the admin body so `.sellkit …` Bootstrap/Reboot selectors apply.
306 - * wp-admin sidebar chrome is toned down in `src/style.scss` where Reboot bleeds through.
295 + * Adding sellkit class to body.
307 296 *
308 - * @param string $classes Existing body classes.
297 + * @param string $classes Sellkit the sellkit class.
309 298 * @return string
310 299 */
311 300 public function sellkit_admin_body_class( $classes ) {
312 - return "{$classes} sellkit sellkit-admin-screen";
301 + return "{$classes} sellkit";
313 302 }
314 303
315 304 /**
316 305 * Initialize admin.
@@ -367,9 +356,9 @@
367 356 'public' => false,
368 357 ] );
369 358 }
370 359
371 - // Translations load automatically (WP 4.6+) from wp-content/languages/plugins/ and this plugin's languages directory.
360 + load_plugin_textdomain( 'sellkit', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
372 361 }
373 362
374 363 /**
375 364 * Enqueue editor scripts.
@@ -441,20 +430,10 @@
441 430 ];
442 431
443 432 $submenu = apply_filters( 'sellkit_sub_menu', $submenu );
444 433
445 - // Load SVG from disk. wp_remote_get() to the plugin URL often fails on local/SSL sites and yields an empty icon.
446 - $icon_path = sellkit()->plugin_dir() . 'assets/img/icons/sellkit-dashboard.svg';
447 - $menu_icon = 'dashicons-cart';
434 + $svg_file = wp_remote_get( self::plugin_url() . 'assets/img/icons/sellkit-dashboard.svg' );
448 435
449 - if ( is_readable( $icon_path ) ) {
450 - // phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents -- Reading a bundled asset from the filesystem.
451 - $svg_contents = file_get_contents( $icon_path );
452 - if ( false !== $svg_contents && '' !== $svg_contents ) {
453 - $menu_icon = 'data:image/svg+xml;base64,' . base64_encode( $svg_contents );
454 - }
455 - }
456 -
457 436 add_menu_page(
458 437 $menu_name,
459 438 $menu_name,
460 439 'manage_options',
@@ -459,9 +438,9 @@
459 438 $menu_name,
460 439 'manage_options',
461 440 $initial_page,
462 441 [ $this, 'register_admin_menu_callback' ],
463 - $menu_icon,
442 + 'data:image/svg+xml;base64,' . base64_encode( wp_remote_retrieve_body( $svg_file ) ),
464 443 '58.1'
465 444 );
466 445
467 446 foreach ( $submenu as $slug => $title ) {
@@ -553,12 +532,8 @@
553 532 'elementorActivation' => class_exists( 'Elementor\Plugin' ) ? true : false,
554 533 'funnelsTemplateSource' => Funnel::SELLKIT_FUNNELS_TEMPLATE_SOURCE,
555 534 'removedContentBoxes' => Sellkit_Admin_Settings::get_removed_content_box(),
556 535 'sellkitProIsActive' => $this->has_pro,
557 - 'sellkitProPluginInstalled' => class_exists( 'Sellkit_Pro' ) && function_exists( 'sellkit_pro' ),
558 - 'sellkitLicensePageUrl' => ( class_exists( 'Sellkit_Pro' ) && function_exists( 'sellkit_pro' ) )
559 - ? ( is_multisite() ? network_admin_url( 'admin.php?page=sellkit-license' ) : admin_url( 'admin.php?page=sellkit-license' ) )
560 - : '',
561 536 'wcIsActivated' => $this->has_valid_dependencies(),
562 537 'activeTheme' => wp_get_theme()->get( 'Name' ),
563 538 'pageBuilder' => $this->page_builder(),
564 539 ];