'stm_wp_widget_text', 'description' => __( 'STM Arbitrary text or HTML.', 'stm_motors_extends' ), ); $control_ops = array( 'width' => 400, 'height' => 350, ); parent::__construct( 'stm_text', __( 'STM Text', 'stm_motors_extends' ), $widget_ops, $control_ops ); } public function widget( $args, $instance ) { /** This filter is documented in wp-includes/default-widgets.php */ $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base ); $text = apply_filters( 'stm_wp_widget_text', empty( $instance['text'] ) ? '' : $instance['text'], $instance ); echo $args['before_widget']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped if ( ! empty( $title ) ) { echo $args['before_title'] . esc_html( $title ) . $args['after_title']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } ?>
'; foreach ( $socials as $key => $val ) : ?>
/>
/>