public function widget($args, $instance)
 {
     $title = apply_filters('widget_title', $instance['title']);
     $galleryId = $instance['galleryId'];
     echo $args['before_widget'];
     if (!empty($title)) {
         echo $args['before_title'] . $title . $args['after_title'];
     }
     if (function_exists('rbs_pro_widget')) {
         rbs_pro_widget($galleryId);
     }
     if (!ROBO_GALLERY_PRO) {
         echo _e('This widget available in Pro version', 'rbs_gallery');
     }
     echo $args['after_widget'];
 }
 public function widget($args, $instance)
 {
     $title = apply_filters('widget_title', $instance['title']);
     $galleryId = $instance['galleryId'];
     echo $args['before_widget'];
     if (!empty($title)) {
         echo $args['before_title'] . $title . $args['after_title'];
     }
     if (file_exists(WP_PLUGIN_DIR . '/robogallerykey/robogallerykey.php')) {
         include_once WP_PLUGIN_DIR . '/robogallerykey/robogallerykey.php';
         rbs_pro_widget($galleryId);
     }
     if (!ROBO_GALLERY_PRO) {
         echo _e('This widget available in Pro version', 'rbs_gallery');
     }
     echo $args['after_widget'];
 }