function form($instance) { $defaults = array('title' => __('MN Shortcodes', 'framework'), 'content' => ''); $instance = wp_parse_args((array) $instance, $defaults); ?> <p> <label for="<?php echo $this->get_field_id('title'); ?> "><?php _e('Title:', 'framework'); ?> </label> <input type="text" id="<?php echo $this->get_field_id('title'); ?> " name="<?php echo $this->get_field_name('title'); ?> " value="<?php echo $instance['title']; ?> " class="widefat" /> </p> <p> <?php mom_su_Generator::button(array('target' => $this->get_field_id('content'))); ?> <br/> <textarea name="<?php echo $this->get_field_name('content'); ?> " id="<?php echo $this->get_field_id('content'); ?> " rows="7" class="widefat" style="margin-top:10px"><?php echo $instance['content']; ?> </textarea> </p> <?php }
function __construct() { parent::__construct(); }