PluginProbe
Ultimate Store Kit – Store Builder Addons for Elementor, WooCommerce Store Builder, EDD Store Builder / 3.1.4
Ultimate Store Kit – Store Builder Addons for Elementor, WooCommerce Store Builder, EDD Store Builder v3.1.4
3.1.4 3.0.8 3.0.9 3.1.0 3.1.2 3.1.3 3.0.7 3.0.5 3.0.4 3.0.3 3.0.2 trunk 1.5.0 1.5.1 1.5.2 1.6.1 1.6.2 1.6.3 1.6.4 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 All 93 releases
← All changes | modules/info-list/widgets/info-list.php +19 -15 2.0.33.1.4 View file →
@@ -12,9 +12,9 @@
12 12 use Elementor\Group_Control_Text_Shadow;
13 13 use Elementor\Group_Control_Background;
14 14 use Elementor\Group_Control_Border;
15 15 use Elementor\Icons_Manager;
16 - use Elementor\Utils;
16 + use UltimateStoreKit\Classes\Utils;
17 17
18 18 if (! defined('ABSPATH')) {
19 19 exit;
20 20 } // Exit if accessed directly
@@ -58,8 +58,16 @@
58 58 public function get_custom_help_url() {
59 59 return 'https://youtu.be/vVCYUAPuqcg?si=ld1BjZ6KIy3OU62Y';
60 60 }
61 61
62 + public function has_widget_inner_wrapper(): bool {
63 + return ! \Elementor\Plugin::$instance->experiments->is_feature_active( 'e_optimized_markup' );
64 + }
65 +
66 + protected function is_dynamic_content(): bool {
67 + return false;
68 + }
69 +
62 70 protected function register_controls() {
63 71
64 72 $this->start_controls_section(
65 73 'usk_section_list',
@@ -674,8 +682,9 @@
674 682 'label' => esc_html__('Color', 'ultimate-store-kit'),
675 683 'type' => Controls_Manager::COLOR,
676 684 'selectors' => [
677 685 '{{WRAPPER}} .usk-info-list-icon span:hover' => 'color: {{VALUE}};',
686 + '{{WRAPPER}} .usk-info-list-icon span:hover svg' => 'fill: {{VALUE}};',
678 687 ],
679 688 ]
680 689 );
681 690
@@ -701,11 +710,9 @@
701 710 ]
702 711 );
703 712
704 713 $this->end_controls_tab();
705 -
706 714 $this->end_controls_tabs();
707 -
708 715 $this->end_controls_section();
709 716 }
710 717
711 718
@@ -716,22 +723,19 @@
716 723 if (! $settings['show_title']) {
717 724 return;
718 725 }
719 726
720 - $this->add_render_attribute(
721 - [
722 - 'title-link' => [
723 - 'href' => isset($item['title_link']['url']) && !empty($item['title_link']['url']) ? esc_url($item['title_link']['url']) : 'javascript:void(0);',
724 - 'target' => $item['title_link']['is_external'] ? '_blank' : '_self'
725 - ]
726 - ],
727 - '',
728 - '',
729 - true
730 - );
727 + if ( !empty($item['title']) && !empty($item['title_link']['url']) ) {
728 + $this->add_link_attributes('title-link', $item['title_link'], true);
729 + }
731 730
732 731 if (!empty($item['title'])) {
733 - printf('<%1$s class="usk-info-list-title"><a %2$s title="%3$s">%3$s</a></%1$s>', esc_attr($settings['title_tag']), wp_kses_post($this->get_render_attribute_string('title-link')), wp_kses_post($item['title']));
732 + printf(
733 + '<%1$s class="usk-info-list-title"><a %2$s title="%3$s">%3$s</a></%1$s>',
734 + esc_attr( Utils::get_valid_html_tag($settings['title_tag']) ),
735 + $this->get_render_attribute_string('title-link'), // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
736 + esc_attr($item['title'])
737 + );
734 738 }
735 739 }
736 740
737 741 public function render_text($item)