PluginProbe
Elementor Website Builder – more than just a page builder / 3.0.6
Elementor Website Builder – more than just a page builder v3.0.6
4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 All 452 releases
← All changes | includes/base/skin-base.php +11 -30 4.2.33.0.6 View file →
@@ -11,9 +11,9 @@
11 11 * An abstract class to register new skins for Elementor widgets. Skins allows
12 12 * you to add new templates, set custom controls and more.
13 13 *
14 14 * To register new skins for your widget use the `add_skin()` method inside the
15 - * widget's `register_skins()` method.
15 + * widget's `_register_skins()` method.
16 16 *
17 17 * @since 1.0.0
18 18 * @abstract
19 19 */
@@ -37,12 +37,12 @@
37 37 * controls actions.
38 38 *
39 39 * @since 1.0.0
40 40 * @access public
41 - * @param Widget_Base $element_parent
41 + * @param Widget_Base $parent
42 42 */
43 - public function __construct( Widget_Base $element_parent ) {
44 - parent::__construct( $element_parent );
43 + public function __construct( Widget_Base $parent ) {
44 + parent::__construct( $parent );
45 45
46 46 $this->_register_controls_actions();
47 47 }
48 48
@@ -57,30 +57,8 @@
57 57 */
58 58 abstract public function render();
59 59
60 60 /**
61 - * Render element in static mode.
62 - *
63 - * If not inherent will call the base render.
64 - */
65 - public function render_static() {
66 - $this->render();
67 - }
68 -
69 - /**
70 - * Determine the render logic.
71 - */
72 - public function render_by_mode() {
73 - if ( Plugin::$instance->frontend->is_static_render_mode() ) {
74 - $this->render_static();
75 -
76 - return;
77 - }
78 -
79 - $this->render();
80 - }
81 -
82 - /**
83 61 * Register skin controls actions.
84 62 *
85 63 * Run on init and used to register new skins to be injected to the widget.
86 64 * This method is used to register new actions that specify the location of
@@ -124,9 +102,9 @@
124 102 * @access public
125 103 *
126 104 * @param string $control_base_id Control base ID.
127 105 *
128 - * @return mixed
106 + * @return Widget_Base Widget instance.
129 107 */
130 108 public function get_instance_value( $control_base_id ) {
131 109 $control_id = $this->get_control_id( $control_base_id );
132 110 return $this->parent->get_settings( $control_id );
@@ -160,8 +138,9 @@
160 138 * @return bool True if skin added, False otherwise.
161 139
162 140 * @since 3.0.0 New `$options` parameter added.
163 141 * @access public
142 + *
164 143 */
165 144 public function add_control( $id, $args = [], $options = [] ) {
166 145 $args['condition']['_skin'] = $this->get_id();
167 146 return parent::add_control( $id, $args, $options );
@@ -196,8 +175,9 @@
196 175 * @param array $options
197 176 *
198 177 * @since 1.0.5
199 178 * @access public
179 + *
200 180 */
201 181 public function add_responsive_control( $id, $args, $options = [] ) {
202 182 $args['condition']['_skin'] = $this->get_id();
203 183 parent::add_responsive_control( $id, $args );
@@ -245,8 +225,9 @@
245 225 * @param array $options
246 226 *
247 227 * @since 1.0.0
248 228 * @access public
229 + *
249 230 */
250 231 final public function add_group_control( $group_name, $args = [], $options = [] ) {
251 232 $args['condition']['_skin'] = $this->get_id();
252 233 parent::add_group_control( $group_name, $args );
@@ -259,10 +240,10 @@
259 240 *
260 241 * @since 1.0.0
261 242 * @access public
262 243 *
263 - * @param Widget_Base $element_parent Parent widget.
244 + * @param Widget_Base $parent Parent widget.
264 245 */
265 - public function set_parent( $element_parent ) {
266 - $this->parent = $element_parent;
246 + public function set_parent( $parent ) {
247 + $this->parent = $parent;
267 248 }
268 249 }