PluginProbe
King Addons for Elementor – 100+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce Builder, Mega Menu, Popup Builder / 51.1.44
King Addons for Elementor – 100+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce Builder, Mega Menu, Popup Builder v51.1.44
51.1.86 51.1.84 51.1.85 51.1.83 51.1.82 51.1.81 51.1.79 51.1.78 51.1.77 51.1.76 51.1.74 51.1.75 51.1.65 51.1.64 51.1.63 trunk 51.1.14 51.1.2 51.1.35 51.1.36 51.1.37 51.1.38 51.1.39 51.1.44 51.1.45 All 40 releases
king-addons / includes / helpers / Woo_Builder / Abstract_Cart_Widget.php

Abstract_Cart_Widget.php in King Addons for Elementor – 100+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce Builder, Mega Menu, Popup Builder 51.1.44, at includes/helpers/Woo_Builder/Abstract_Cart_Widget.php

42 lines 775 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Base class for Cart builder widgets.
4 *
5 * @package King_Addons
6 */
7
8 namespace King_Addons;
9
10 use Elementor\Widget_Base;
11
12 if (!defined('ABSPATH')) {
13 exit;
14 }
15
16 /**
17 * Provides cart context utilities.
18 */
19 abstract class Abstract_Cart_Widget extends Widget_Base
20 {
21 /**
22 * Render placeholder when cart context is missing.
23 *
24 * @return void
25 */
26 protected function render_missing_cart_notice(): void
27 {
28 if (!\Elementor\Plugin::$instance->editor->is_edit_mode()) {
29 return;
30 }
31
32 echo '<div class="king-addons-woo-builder-notice">' . esc_html__('This widget works only on the WooCommerce cart page.', 'king-addons') . '</div>'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
33 }
34 }
35
36
37
38
39
40
41
42