__( 'Ad banner widget', 'beautytemple' ), )
);
}
// Creating widget front-end
// This is where the action happens
public function widget( $args, $instance ) {
$image_link = apply_filters( 'image_link', $instance['image_link'] );
$banner_link = apply_filters( 'banner_link', $instance['banner_link'] );
// before and after widget arguments are defined by themes
echo $args['before_widget'];
if ( ! empty( $image_link ) )?>