name = 'HTML'; $this->id_base = 'html'; $this->description = 'Show HTML / TEXT'; } public function widget( $instance, $args = array() ){ echo $instance['text']; } public function form( $instance = array() ){ if(!isset( $instance['text'] )){ $instance['text'] = ''; } ?>
name = 'Paragraph'; $this->id_base = 'paragraph'; $this->description = 'Show text paragraph (HTML not allowed)'; } public function widget( $instance, $args = array() ){ if(!isset( $instance['text'] )){ $instance['text'] = ''; } if(!isset( $instance['align'] )){ $instance['align'] = 'none'; } $align_class = null; if($instance['align'] != 'none'){ if($instance['align'] == 'left'){ $align_class = 'text-start text-left'; } else if($instance['align'] == 'center'){ $align_class = 'text-center'; } else if($instance['align'] == 'right'){ $align_class = 'text-end text-right'; } } echo ''; echo htmlentities(nl2br($instance['text'])); echo '

'; } public function form( $instance = array() ){ if(!isset( $instance['text'] )){ $instance['text'] = ''; } if(!isset( $instance['align'] )){ $instance['align'] = 'none'; } ?>
name = 'Heading'; $this->id_base = 'heading'; $this->description = 'Heading typography, can be used as widget title or label.'; } public function widget( $instance, $args = array() ){ if(!isset( $instance['tag'] )){ $instance['tag'] = 'h3'; } if(!isset( $instance['class'] )){ $instance['class'] = ''; } if(!isset( $instance['text'] )){ $instance['text'] = ''; } echo '<'.$instance['tag'].' class="'.$instance['class'].'">'; echo htmlentities($instance['text']); echo ''; } public function form( $instance = array() ){ if(!isset( $instance['tag'] )){ $instance['tag'] = 'h3'; } if(!isset( $instance['class'] )){ $instance['class'] = ''; } if(!isset( $instance['text'] )){ $instance['text'] = ''; } ?>
name = 'Banner Ad'; $this->id_base = 'banner_ad'; $this->description = 'Show banner advertisement'; } public function widget( $instance, $args = array() ){ echo ''; } public function form( $instance = array() ){ if(!isset( $instance['text'] )){ $instance['text'] = ''; } ?>

This widget is similar to HTML widget, the difference is that it comes with a banner div to fit the theme style. You can also style it on theme style.css