PluginProbe
Elementor Website Builder – more than just a page builder / 3.30.3
Elementor Website Builder – more than just a page builder v3.30.3
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
← All changes | includes/widgets/alert.php +4 -25 4.1.23.30.3 View file →
@@ -225,12 +225,12 @@
225 225
226 226 $this->add_control(
227 227 'border_color',
228 228 [
229 - 'label' => esc_html__( 'Side Border Color', 'elementor' ),
229 + 'label' => esc_html__( 'Border Color', 'elementor' ),
230 230 'type' => Controls_Manager::COLOR,
231 231 'selectors' => [
232 - '{{WRAPPER}} .elementor-alert' => 'border-inline-start-color: {{VALUE}};',
232 + '{{WRAPPER}} .elementor-alert' => 'border-color: {{VALUE}};',
233 233 ],
234 234 ]
235 235 );
236 236
@@ -236,9 +236,9 @@
236 236
237 237 $this->add_control(
238 238 'border_left-width',
239 239 [
240 - 'label' => esc_html__( 'Side Border Width', 'elementor' ),
240 + 'label' => esc_html__( 'Left Border Width', 'elementor' ),
241 241 'type' => Controls_Manager::SLIDER,
242 242 'size_units' => [ 'px', '%', 'em', 'rem', 'custom' ],
243 243 'range' => [
244 244 'px' => [
@@ -248,9 +248,9 @@
248 248 'max' => 10,
249 249 ],
250 250 ],
251 251 'selectors' => [
252 - '{{WRAPPER}} .elementor-alert' => 'border-inline-start-width: {{SIZE}}{{UNIT}};',
252 + '{{WRAPPER}} .elementor-alert' => 'border-left-width: {{SIZE}}{{UNIT}};',
253 253 ],
254 254 ]
255 255 );
256 256
@@ -524,29 +524,8 @@
524 524 *
525 525 * @since 2.9.0
526 526 * @access protected
527 527 */
528 - public function render_markdown(): string {
529 - $settings = $this->get_settings_for_display();
530 -
531 - $title = Utils::html_to_plain_text( $settings['alert_title'] ?? '' );
532 - $description = Utils::html_to_plain_text( $settings['alert_description'] ?? '' );
533 -
534 - if ( empty( $title ) && empty( $description ) ) {
535 - return '';
536 - }
537 -
538 - if ( ! empty( $title ) && ! empty( $description ) ) {
539 - return '> **' . $title . ':** ' . $description;
540 - }
541 -
542 - if ( ! empty( $title ) ) {
543 - return '> **' . $title . '**';
544 - }
545 -
546 - return '> ' . $description;
547 - }
548 -
549 528 protected function content_template() {
550 529 ?>
551 530 <#
552 531 if ( ! settings.alert_title && ! settings.alert_description ) {