'corpo_services_widget', 'description' => __('Displays services box, designed for use on Home Page', 'corpo') ); /* Widget control settings. */ $control_ops = array( 'width' => 250, 'height' => 350, 'id_base' => 'corpo_services_widget' ); /* Create the widget. */ $this->WP_Widget( 'corpo_services_widget', __('Corpo: Services widget', 'corpo'), $widget_ops, $control_ops ); } /** * How to display the widget on the screen. */ function widget( $args, $instance ) { extract( $args ); /* Our variables from the widget settings. */ $icon = $instance['icon']; $heading = $instance['heading']; $desc = $instance['desc']; $anchor = $instance['anchor']; $url = $instance['url']; /* Before widget (defined by themes). */ echo $before_widget; ?>
'', 'icon' => '', 'desc' => '', 'anchor' => 'Learn more', 'url' => '' ); $instance = wp_parse_args( (array) $instance, $defaults ); ?>