public function widget($args, $instance)
 {
     $args = wp_parse_args($args, static::get_defaults());
     extract($args);
     // Before widget (defined by themes)
     echo $args['before_widget'];
     $title = apply_filters('widget_title', $instance['title'], null);
     if (!empty($instance['title_link'])) {
         $target = !empty($instance['target']) ? $instance['target'] : null;
         $title = Aihrus_Common::create_link($instance['title_link'], $title, $target);
     }
     if (!empty($title)) {
         echo $args['before_title'] . $title . $args['after_title'];
     }
     $content = static::get_content($instance, $this->number);
     echo $content;
     // After widget (defined by themes)
     echo $args['after_widget'];
 }
 public function widget($args, $instance)
 {
     global $before_widget, $before_title, $after_title, $after_widget;
     $args = wp_parse_args($args, static::get_defaults());
     extract($args);
     // Our variables from the widget settings
     $title = apply_filters('widget_title', $instance['title'], null);
     $content = static::get_content($instance, $this->number);
     // Before widget (defined by themes)
     echo $before_widget;
     if (!empty($instance['title_link'])) {
         $target = !empty($instance['target']) ? $instance['target'] : null;
         $title = Aihrus_Common::create_link($instance['title_link'], $title, $target);
     }
     // Display the widget title if one was input (before and after defined by themes)
     if (!empty($title)) {
         echo $before_title . $title . $after_title;
     }
     // Display Widget
     echo $content;
     // After widget (defined by themes)
     echo $after_widget;
 }