| @@ -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 | } |