'shuban_link_box_widget', 'description' => esc_html__('A widget to display link box.', 'shuban') ); /* Widget control settings. */ $control_ops = array( 'width' => 250, 'height' => 350, 'id_base' => 'shuban_link_box_widget' ); /* Create the widget. */ parent::__construct( 'shuban_link_box_widget', esc_html__('ShubanPro - Link Box', 'shuban'), $widget_ops, $control_ops ); } /** * How to display the widget on the screen. */ function widget( $args, $instance ) { extract( $args ); $title = apply_filters('widget_title', $instance['title'] ); $image = $instance['image']; $box_link = $instance['box_link']; $link_text = $instance['link_text']; /* Before widget (defined by themes). */ echo $before_widget; /* Display the widget title if one was input (before and after defined by themes). */ if ( $title ) echo $before_title . $title . $after_title; ?> '', 'image' => '', 'box_link' => '', 'link_text' => ''); $instance = wp_parse_args( (array) $instance, $defaults ); ?>


Add New', 'shuban' ); ?>