__( 'A widget to upload image. Ads Widgets Easy', 'shopwordpress' ), ) // Args
);
}
/**
* Front-end display of widget.
*
* @see WP_Widget::widget()
*
* @param array $args Widget arguments.
* @param array $instance Saved values from database.
*/
public function widget( $args, $instance ) {
extract( $args );
$name = apply_filters( 'widget_name', $instance['name'] );
$link = apply_filters( 'widget_link', $instance['link'] );
$image_uri = apply_filters( 'widget_image_uri', $instance['image_uri'] );
echo $before_widget; ?>
html, img=>alt', 'shopwordpress' );
}
if ( isset( $instance[ 'link' ] ) ) {
$link = $instance[ 'link' ];
}
else {
$link = __( 'http://', 'shopwordpress' );
}
?>