PluginProbe
Master Addons for Elementor – Elementor Addons, Widgets, Mega Menu Builder, Popup Builder, Widget Builder & Template Kits / 3.1.2
Master Addons for Elementor – Elementor Addons, Widgets, Mega Menu Builder, Popup Builder, Widget Builder & Template Kits v3.1.2
3.2.2 3.2.3 3.2.1 3.2.0 3.1.9 3.1.8 3.1.7 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.9 trunk 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.3 1.1.4 1.1.5 All 174 releases
master-addons / inc / controls / group / outline.php

outline.php in Master Addons for Elementor – Elementor Addons, Widgets, Mega Menu Builder, Popup Builder, Widget Builder & Template Kits 3.1.2, at inc/controls/group/outline.php

107 lines 3.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace MasterAddons\Inc\Controls\Group;
4
5 use Elementor\Group_Control_Base;
6 use Elementor\Controls_Manager;
7
8 if (!defined('ABSPATH')) {
9 exit; // Exit if accessed directly.
10 }
11
12 class JLTMA_Outline extends Group_Control_Base
13 {
14
15 protected static $fields;
16
17 public static function get_type()
18 {
19 return 'jltma-outline';
20 }
21
22 protected function init_fields()
23 {
24 $fields = [];
25
26 $fields['outline'] = [
27 'label' => _x('Outline Type', 'Outline Control', 'master-addons' ),
28 'type' => Controls_Manager::SELECT,
29 'options' => [
30 '' => __('None', 'master-addons' ),
31 'solid' => _x('Solid', 'Outline Control', 'master-addons' ),
32 'double' => _x('Double', 'Outline Control', 'master-addons' ),
33 'dotted' => _x('Dotted', 'Outline Control', 'master-addons' ),
34 'dashed' => _x('Dashed', 'Outline Control', 'master-addons' ),
35 ],
36 'selectors' => [
37 '{{SELECTOR}}' => 'outline-style: {{VALUE}};',
38 ],
39 ];
40 $fields['width'] = [
41 'label' => __('Width', 'master-addons' ),
42 'type' => Controls_Manager::SLIDER,
43 'default' => [
44 'unit' => 'px',
45 ],
46 'range' => [
47 'px' => [
48 'min' => 0,
49 'max' => 30,
50 'step' => 1,
51 ],
52 ],
53 'size_units' => ['px'],
54 'selectors' => [
55 '{{SELECTOR}}' => 'outline-width: {{SIZE}}{{UNIT}};',
56 ],
57 'condition' => [
58 'outline!' => '',
59 ],
60 ];
61 $fields['offset'] = [
62 'label' => _x('Offset', 'Outline Control', 'master-addons' ),
63 'type' => Controls_Manager::SLIDER,
64 'default' => [
65 'unit' => 'px',
66 ],
67 'range' => [
68 'px' => [
69 'min' => -100,
70 'max' => 100,
71 'step' => 1,
72 ],
73 ],
74 'size_units' => ['px'],
75 'selectors' => [
76 '{{SELECTOR}}' => 'outline-offset: {{SIZE}}{{UNIT}};',
77 ],
78 'condition' => [
79 'outline!' => '',
80 ],
81 ];
82 $fields['color'] = [
83 'label' => _x('Color', 'Outline Control', 'master-addons' ),
84 'type' => Controls_Manager::COLOR,
85 'selectors' => [
86 '{{SELECTOR}}' => 'outline-color: {{VALUE}};',
87 ],
88 'condition' => [
89 'outline!' => '',
90 ],
91 ];
92
93 return $fields;
94 }
95
96 protected function get_default_options()
97 {
98 return [
99 //'popover' => true,
100 'popover' => [
101 'starter_title' => _x('Outline', 'Outline Control', 'master-addons' ),
102 'starter_name' => 'outline_wgt',
103 ],
104 ];
105 }
106 }
107