PluginProbe ʕ •ᴥ•ʔ
ShopEngine Elementor WooCommerce Builder Addon – All in One WooCommerce Solution / 4.9.2
ShopEngine Elementor WooCommerce Builder Addon – All in One WooCommerce Solution v4.9.2
4.9.2 4.9.1 4.9.0 2.0.0 2.1.0 2.2.0 2.2.1 2.2.2 2.3.0 2.4.0 2.5.0 2.5.1 3.0.0 3.1.0 3.1.1 4.0.0 4.0.1 4.1.0 4.1.1 4.2.0 4.2.1 4.3.0 4.3.1 4.4.0 4.5.0 4.5.1 4.6.0 4.6.1 4.6.2 4.6.3 4.6.4 4.6.5 4.6.6 4.6.7 4.6.8 4.6.9 4.7.0 4.7.1 4.7.2 4.7.3 4.7.4 4.7.5 4.7.6 4.7.7 4.7.8 4.7.9 4.8.0 4.8.1 4.8.2 4.8.3 4.8.4 4.8.5 4.8.6 4.8.7 4.8.8 4.8.9 trunk 0.1.2-beta 0.1.3-beta 0.1.4-beta 1.0.0 1.1.0 1.1.1 1.1.2 1.1.3 1.2.0 1.2.1 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.4.0 1.4.1 1.5.0 1.5.1 1.6.0 1.6.1 1.7.0 1.8.0 1.8.1 1.9.0
shopengine / widgets / archive-result-count / archive-result-count.php
shopengine / widgets / archive-result-count Last commit date
screens 2 years ago archive-result-count-config.php 4 years ago archive-result-count.php 3 years ago
archive-result-count.php
95 lines
1 <?php
2
3 namespace Elementor;
4
5 use ShopEngine\Widgets\Products;
6
7 defined('ABSPATH') || exit;
8
9 class ShopEngine_Archive_Result_Count extends \ShopEngine\Base\Widget {
10
11 public function config() {
12 return new ShopEngine_Archive_Result_Count_Config();
13 }
14
15 protected function register_controls() {
16 $this->start_controls_section(
17 'shopengine_result_count_section',
18 [
19 'label' => esc_html__('Result Count', 'shopengine'),
20 'tab' => Controls_Manager::TAB_STYLE,
21 ]
22 );
23 $this->add_responsive_control(
24 'shopengine_result_count_align',
25 \ShopEngine\Utils\Controls_Helper::get_alignment_conf(
26 'elementor%s-align-', '',
27 [
28 '{{WRAPPER}} .shopengine-archive-result-count' => 'text-align: {{VALUE}}',
29 '.rtl {{WRAPPER}}.elementor-align-left .shopengine-archive-result-count' => 'text-align: right;',
30 '.rtl {{WRAPPER}}.elementor-align-right .shopengine-archive-result-count' => 'text-align: left;',
31 ],
32 )
33 );
34
35 $this->add_control(
36 'shopengine_result_count_color',
37 [
38 'label' => esc_html__('Color', 'shopengine'),
39 'type' => Controls_Manager::COLOR,
40 'alpha' => false,
41 'default' => '#101010',
42 'selectors' => [
43 '{{WRAPPER}} .shopengine-archive-result-count > p' => 'display:inline-block;color: {{VALUE}};',
44 ],
45 'separator' => 'before',
46 ]
47 );
48
49 $this->add_group_control(
50 Group_Control_Typography::get_type(),
51 [
52 'name' => 'shopengine_result_count_font',
53 'label' => esc_html__('Typography', 'shopengine'),
54 'selector' => '{{WRAPPER}} .shopengine-archive-result-count > p',
55 'exclude' => ['letter_spacing', 'text_style', 'font_style', 'text_decoration'],
56 'fields_options' => [
57 'typography' => [
58 'default' => 'custom',
59 ],
60 'font_weight' => [
61 'default' => '400',
62 ],
63 'font_size' => [
64 'size_units' => ['px'],
65 'default' => [
66 'size' => '18',
67 'unit' => 'px',
68 ],
69
70 ],
71 'text_transform' => [
72 'default' => '',
73 ],
74 'line_height' => [
75 'size_units' => ['px'],
76 'default' => [
77 'size' => '20',
78 'unit' => 'px',
79 ],
80 ],
81 ],
82 ]
83 );
84 $this->end_controls_section();
85 }
86
87 protected function screen() {
88 $settings = $this->get_settings_for_display();
89
90 $tpl = Products::instance()->get_widget_template($this->get_name());
91
92 include $tpl;
93 }
94 }
95