settings['style_coupon_type']; if ( 'price-tag' === $style_type ) { ?> settings['coupon_code'] ?? ''; $success_message = $this->settings['coupon_success_message'] ?? ''; $accessible_name = $this->settings['accessible_name']; $copy_icon = $this->settings['coupon_copy_icon'] ?? ''; $success_icon = $this->settings['coupon_success_icon'] ?? ''; $entrance_animation = $this->settings['style_coupon_animation']; $style_type = $this->settings['style_coupon_type']; $has_border = $this->settings['style_coupon_show_border']; $coupon_classnames = 'e-floating-bars__coupon-button'; if ( ! empty( $entrance_animation ) && 'none' !== $entrance_animation ) { $coupon_classnames .= ' has-entrance-animation'; } if ( ! empty( $style_type ) ) { $coupon_classnames .= ' is-type-' . $style_type; } if ( 'yes' == $has_border ) { $coupon_classnames .= ' has-border'; } $this->widget->add_render_attribute( 'coupon-button', [ 'class' => $coupon_classnames, 'type' => 'button', 'aria-label' => sprintf( /* translators: 1: Accessible name. */ esc_attr__( 'Copy %1$s coupon code', 'elementor-pro' ), $accessible_name, ), ] ); if ( '' !== $text ) { ?> build_layout_render_attribute(); $has_close_button = $this->settings['floating_bar_close_switch']; ?>
widget->get_render_attribute_string( 'layout' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>> render_announcement_text(); $this->render_announcement_icon(); $this->render_coupon_button(); if ( 'yes' == $has_close_button ) { $this->render_close_button(); } ?>