'appetizo_about_widget', 'description' => __('An About Me Widget', 'appetizo') ); /* Widget control settings. */ $control_ops = array( 'width' => 250, 'height' => 350, 'id_base' => 'appetizo_about_widget' ); /* Create the widget. */ parent::__construct( 'appetizo_about_widget', __('Appetizo: About Me', 'appetizo'), $widget_ops, $control_ops ); } /** * How to display the widget on the screen. */ function widget( $args, $instance ) { extract( $args ); /* Our variables from the widget settings. */ $title = apply_filters('widget_title', empty($instance['title']) ? '' : $instance['title'], $instance, $this->id_base); $image = !empty($instance['image']) ? $instance['image'] : ''; $subtitle = !empty($instance['subtitle']) ? $instance['subtitle'] : ''; $description = !empty($instance['description']) ? $instance['description'] : ''; $signing = !empty($instance['signing']) ? $instance['signing'] : ''; /* Before widget (defined by themes). */ echo $args['before_widget']; /* Display the widget title if one was input (before and after defined by themes). */ if (!empty($title)) { echo $args['before_title'] . esc_html($title) . $args['after_title']; } ?>
<?php echo esc_html($title); ?>

'About Me', 'image' => '', 'subtitle' => '', 'description' => '', 'signing' => ''); $instance = wp_parse_args( (array) $instance, $defaults ); ?>