PluginProbe
Elementor Website Builder – more than just a page builder / 3.1.3
Elementor Website Builder – more than just a page builder v3.1.3
4.3.1 4.3.0 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 All 454 releases
← All changes | core/kits/documents/tabs/tab-base.php +4 -21 4.3.0-beta3 → 3.1.3 View file →
@@ -9,9 +9,9 @@
9 9 use Elementor\Settings;
10 10 use Elementor\Sub_Controls_Stack;
11 11
12 12 if ( ! defined( 'ABSPATH' ) ) {
13 - exit; // Exit if accessed directly.
13 + exit; // Exit if accessed directly
14 14 }
15 15
16 16 abstract class Tab_Base extends Sub_Controls_Stack {
17 17 /**
@@ -44,20 +44,8 @@
44 44 }
45 45
46 46 public function on_save( $data ) {}
47 47
48 - /**
49 - * Before Save
50 - *
51 - * Allows for modifying the kit data before it is saved to the database.
52 - *
53 - * @param array $data
54 - * @return array
55 - */
56 - public function before_save( array $data ) {
57 - return $data;
58 - }
59 -
60 48 protected function register_tab() {
61 49 Controls_Manager::add_tab( $this->get_id(), $this->get_title() );
62 50 }
63 51
@@ -72,16 +60,11 @@
72 60 $this->add_control(
73 61 $current_section['section'] . '_schemes_notice',
74 62 [
75 63 'name' => $current_section['section'] . '_schemes_notice',
76 - 'type' => Controls_Manager::ALERT,
77 - 'alert_type' => 'warning',
78 - 'content' => sprintf(
79 - /* translators: 1: Link open tag, 2: Link close tag. */
80 - esc_html__( 'In order for Theme Style to affect all relevant Elementor elements, please disable Default Colors and Fonts from the %1$sSettings Page%2$s.', 'elementor' ),
81 - '<a href="' . Settings::get_settings_tab_url( 'general' ) . '" target="_blank">',
82 - '</a>'
83 - ),
64 + 'type' => Controls_Manager::RAW_HTML,
65 + 'raw' => sprintf( __( 'In order for Theme Style to affect all relevant Elementor elements, please disable Default Colors and Fonts from the <a href="%s" target="_blank">Settings Page</a>.', 'elementor' ), Settings::get_url() ),
66 + 'content_classes' => 'elementor-panel-alert elementor-panel-alert-warning',
84 67 'render_type' => 'ui',
85 68 ]
86 69 );
87 70 }