function display_sidebar($is_shortcode = false, $shortcode_options = array(), $share_options = array())
 {
     $post_types = $this->general_options['display_in_types'];
     $is_valid = false;
     if ($is_shortcode) {
         $is_valid = true;
     } else {
         $is_valid = $this->check_applicability($post_types, 'sidebar');
     }
     $output = '';
     if ($is_valid) {
         if (!$is_shortcode) {
             $output .= $this->generate_share_buttons('sidebar');
         } else {
             $output .= $this->generate_share_buttons('sidebar', 'share', $share_options, true, $shortcode_options);
         }
         if (!$is_shortcode) {
             echo $output;
         }
         essb_resource_builder()->add_js(ESSBResourceBuilderSnippets::js_build_generate_sidebar_reveal_code(), true, 'essb-sidebar-code');
     }
     if ($is_shortcode) {
         return $output;
     }
 }