$s Current settings. * @var bool $is_pro Whether the paid tier is active. */ if (!defined('ABSPATH')) { exit; } require_once KING_ADDONS_PATH . 'includes/admin/shared/page-shell.php'; $ka_notices = []; if (!$is_pro) { $ka_notices[] = [ 'type' => 'info', 'text' => sprintf( '%1$s %2$s %4$s', esc_html__('This module is part of King Addons Pro.', 'king-addons'), esc_html__('You can set it up now; the bar starts showing on your product pages once Pro is active.', 'king-addons'), esc_url('https://kingaddons.com/pricing/?utm_source=kng-sticky-add-to-cart&utm_medium=plugin&utm_campaign=kng'), esc_html__('See plans', 'king-addons') ), ]; } if (!class_exists('WooCommerce')) { $ka_notices[] = [ 'type' => 'warning', 'text' => esc_html__('WooCommerce is not active, so there are no product pages to add this bar to.', 'king-addons'), ]; } $ka_position = $s['position'] ?? 'bottom'; ka_admin_page_open([ 'title' => esc_html__('Sticky Add To Cart', 'king-addons'), 'subtitle' => esc_html__('Keeps the price and buy button in reach once the visitor scrolls past the product form.', 'king-addons'), 'icon' => 'dashicons-cart', 'icon_color' => 'orange', 'saved' => isset($_GET['ka-saved']), // phpcs:ignore WordPress.Security.NonceVerification.Recommended 'notices' => $ka_notices, ]); ?>