function the_static_block($id = false, $args = array())
{
    if ($id) {
        $args["id"] = $id;
        echo StaticBlockContent::get_static_content($args);
    }
}
function the_static_block($id = false, $args = array(), $echo = true)
{
    if ($id) {
        $args["id"] = $id;
        $content = StaticBlockContent::get_static_content($args);
        if ($echo) {
            echo $content;
        } else {
            return $content;
        }
    }
}
 function get_layout_content_block($type = false, $source = false)
 {
     if (!$type || $type == 'default_content') {
         return '';
     } else {
         // no problems so far, start outputting the content
         switch ($type) {
             case "sidebar":
                 echo '<div class="widget-area">';
                 if (!function_exists('dynamic_sidebar') || !dynamic_sidebar($source)) {
                 }
                 echo '</div> <!-- / .widget-area -->';
                 break;
             case "static_block":
                 if (class_exists('StaticBlockContent')) {
                     $id = $source;
                     $args["id"] = !is_numeric($id) ? get_ID_by_slug($id, 'static_block') : $id;
                     $args["id"] = $id;
                     return StaticBlockContent::get_static_content($args);
                 }
                 break;
             case "page":
                 $id = $source;
                 $id = !is_numeric($id) ? get_ID_by_slug($id, 'page') : $id;
                 return get_content_for_layout($id);
                 break;
             case "post":
                 $id = $source;
                 $id = !is_numeric($id) ? get_ID_by_slug($id, 'post') : $id;
                 // not sure this works with posts
                 return get_content_for_layout($id);
                 break;
             default:
                 // if no other option fits...
                 return '<!-- [Unknown Type: ' . $type . ', Source: ' . $source . '] -->';
         }
     }
 }