print title and contents on a custom tpl.php template? im making a custom theme for drupal, and im having a hard time trying to understand how to adapt one of my themes to drupal 7. 

Right now im having an issue because i need to set some classes on all the blocks of a sidebar. i decided to make a block--sidebar.tpl.php file and there i set all the structure of the blocks.

So far so good but now, the block shows up, but im unable to get the title and contents of the block correctly. How can i achieve this?, thank you.
A different approach would be to: 


Use the Block Class module - which will also allow you to add
more classes per block.
Use CSS to apply the same styling to all blocks in the sidebar:

.sidebar .block { border: 1px solid #ccc} 
.sidebar .block-title {color: blue}