How can I add a class to a block with code (development)
Simply, you could use a preprocess function.

function YOURTHEME_preprocess_block(&amp;$vars) {
  if ($vars['block_html_id'] ==  'ID-YOUR-BLOCK') {
    $vars['attributes_array']['class'][] = 'YOUR-CLASS';
  }
}