add_shortcode('foobar', 'my_shortcode');


function my_shortcode($atts, $content = null) {

  
  extract(shortcode_atts(array(

    'class' => '',

  ), $atts));


  $class   = !empty($class) ? ' class="' . $class . '"' : '';

  $output  = '<div' . $class . '>';
  $output .= '<!-- Here goes Stuff -->';
  $output .= '</div>';


  return $output;


}