PluginProbe ʕ •ᴥ•ʔ
ShopEngine Elementor WooCommerce Builder Addon – All in One WooCommerce Solution / 1.0.0
ShopEngine Elementor WooCommerce Builder Addon – All in One WooCommerce Solution v1.0.0
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 / product-description / product-description.php
shopengine / widgets / product-description Last commit date
screens 5 years ago product-description-config.php 5 years ago product-description.php 5 years ago
product-description.php
112 lines
1 <?php
2 namespace Elementor;
3
4 use ShopEngine\Widgets\Products;
5
6 defined('ABSPATH') || exit;
7
8 class ShopEngine_Product_Description extends \ShopEngine\Base\Widget
9 {
10
11 public function config() {
12 return new ShopEngine_Product_Description_Config();
13 }
14
15
16 protected function register_controls() {
17 /*
18 * Content Tab - Product description
19 */
20 $this->start_controls_section(
21 'shopengine_section_description',
22 [
23 'label' => esc_html__('Styles', 'shopengine'),
24 'tab' => Controls_Manager::TAB_STYLE,
25 ]
26 );
27
28 $this->add_control(
29 'shopengine_desc_color',
30 [
31 'label' => esc_html__('Color', 'shopengine'),
32 'type' => Controls_Manager::COLOR,
33 'default' => '#444444',
34 'alpha' => false,
35 'selectors' => [
36 '{{WRAPPER}} .shopengine-product-description' => 'color: {{VALUE}};',
37 ],
38 ]
39 );
40
41 $this->add_group_control(
42 Group_Control_Typography::get_type(),
43 array(
44 'name' => 'shopengine_desc_typography',
45 'label' => esc_html__('Typography', 'shopengine'),
46 'selector' => '{{WRAPPER}} .shopengine-product-description, {{WRAPPER}} .shopengine-product-description li',
47 'exclude' => ['text_decoration'],
48 'fields_options' => [
49 'typography' => [
50 'default' => 'custom',
51 ],
52 'font_weight' => [
53 'default' => '400',
54 ],
55 'font_size' => [
56 'default' => [
57 'size' => '17',
58 'unit' => 'px'
59 ],
60 'label' => 'Font size (px)',
61 'size_units' => ['px']
62 ],
63 'line_height' => [
64 'default' => [
65 'size' => '22',
66 'unit' => 'px'
67 ],
68 'size_units' => ['px']
69 ]
70 ],
71 )
72 );
73
74 $this->add_responsive_control(
75 'shopengine_desc_align',
76 [
77 'label' => esc_html__('Align', 'shopengine'),
78 'type' => Controls_Manager::CHOOSE,
79 'options' => [
80 'left' => [
81 'title' => esc_html__('Left', 'shopengine'),
82 'icon' => 'fa fa-align-left',
83 ],
84 'center' => [
85 'title' => esc_html__('Center', 'shopengine'),
86 'icon' => 'fa fa-align-center',
87 ],
88 'right' => [
89 'title' => esc_html__('Right', 'shopengine'),
90 'icon' => 'fa fa-align-right',
91 ],
92 ],
93 'selectors' => [
94 '{{WRAPPER}} .shopengine-product-description' => 'text-align: {{VALUE}}',
95 ],
96 ]
97 );
98
99
100 $this->end_controls_section();
101 }
102
103
104 protected function screen() {
105
106 $tpl = Products::instance()->get_widget_template($this->get_name());
107
108 include $tpl;
109 }
110 }
111
112