PluginProbe
Elementor Website Builder – more than just a page builder / 3.13.2
Elementor Website Builder – more than just a page builder v3.13.2
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 4.0.7 All 451 releases
elementor / includes / controls / gaps.php

gaps.php in Elementor Website Builder – more than just a page builder 3.13.2, at includes/controls/gaps.php

64 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace Elementor;
3
4 if ( ! defined( 'ABSPATH' ) ) {
5 exit; // Exit if accessed directly.
6 }
7
8 /**
9 * Elementor gap control.
10 *
11 * A base control for creating a gap control. Displays input fields for two values,
12 * row/column, height/width and the option to link them together.
13 *
14 * @since 3.13.0
15 */
16
17 class Control_Gaps extends Control_Dimensions {
18 /**
19 * Get gap control type.
20 *
21 * Retrieve the control type, in this case `gap`.
22 *
23 * @since 3.13.0
24 * @access public
25 *
26 * @return string Control type.
27 */
28 public function get_type() {
29 return 'gaps';
30 }
31
32 /**
33 * Get gap control default values.
34 *
35 * Retrieve the default value of the gap control. Used to return the default
36 * values while initializing the gap control.
37 *
38 * @since 3.13.0
39 * @access public
40 *
41 * @return array Control default value.
42 */
43 public function get_default_value() {
44 return array_merge(
45 parent::get_default_value(), [
46 'column' => '',
47 'row' => '',
48 'isLinked' => true,
49 ]
50 );
51 }
52
53 public function get_singular_name() {
54 return 'gap';
55 }
56
57 protected function get_dimensions() {
58 return [
59 'column' => esc_html__( 'Column', 'elementor' ),
60 'row' => esc_html__( 'Row', 'elementor' ),
61 ];
62 }
63 }
64