PluginProbe
Elementor Website Builder – more than just a page builder / 3.9.1
Elementor Website Builder – more than just a page builder v3.9.1
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 / tabs.php

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

64 lines 1.3 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 tabs control.
10 *
11 * A base control for creating tabs control. Displays a tabs header for `tab`
12 * controls.
13 *
14 * Note: Do not use it directly, instead use: `$widget->start_controls_tabs()`
15 * and in the end `$widget->end_controls_tabs()`.
16 *
17 * @since 1.0.0
18 */
19 class Control_Tabs extends Base_UI_Control {
20
21 /**
22 * Get tabs control type.
23 *
24 * Retrieve the control type, in this case `tabs`.
25 *
26 * @since 1.0.0
27 * @access public
28 *
29 * @return string Control type.
30 */
31 public function get_type() {
32 return 'tabs';
33 }
34
35 /**
36 * Render tabs control output in the editor.
37 *
38 * Used to generate the control HTML in the editor using Underscore JS
39 * template. The variables for the class are available using `data` JS
40 * object.
41 *
42 * @since 1.0.0
43 * @access public
44 */
45 public function content_template() {}
46
47 /**
48 * Get tabs control default settings.
49 *
50 * Retrieve the default settings of the tabs control. Used to return the
51 * default settings while initializing the tabs control.
52 *
53 * @since 1.0.0
54 * @access protected
55 *
56 * @return array Control default settings.
57 */
58 protected function get_default_settings() {
59 return [
60 'separator' => 'none',
61 ];
62 }
63 }
64