function wiziapp_do_content_get_post_headers()
{
    global $post, $wp_query;
    if (isset($wp_query->posts[$wp_query->current_post + 1])) {
        $nextPost = $wp_query->posts[$wp_query->current_post + 1];
        $nextURL = wiziapp_buildPostLink($nextPost->ID);
    }
    if (isset($wp_query->posts[$wp_query->current_post - 1])) {
        $prevPost = $wp_query->posts[$wp_query->current_post - 1];
        $prevURL = wiziapp_buildPostLink($prevPost->ID);
    }
    $authorId = $post->post_author;
    $authorInfo = get_userdata($authorId);
    $authorName = $authorInfo->display_name;
    if (strlen($authorName) > 15) {
        $authorName = substr($authorName, 0, 12) . '...';
    }
    $totalComments = $post->comment_count;
    $postDate = wiziapp_formatDate(strip_tags($post->post_date));
    //$meta = "nextURL={$nextURL}&prevURL={$prevURL}&postID={$post->ID}&numOfComments={$totalComments}&author={$authorName}&newCommentURL=".wiziapp_buildPostNewCommentLink($post->ID);
    $limitSize = WiziappConfig::getInstance()->getImageSize('limit_post_thumb');
    $size = WiziappConfig::getInstance()->getImageSize('posts_thumb');
    $imageURL = wiziapp_getPostThumbnail($post, $size, $limitSize, FALSE);
    $c = new WiziappPostDescriptionCellItem('L1', array(), FALSE);
    $default_class = $c->getDefaultClass();
    $showCommentsIcon = TRUE;
    if ($totalComments == 0 && 'open' != $post->comment_status) {
        $showCommentsIcon = FALSE;
    } else {
        // Might be turned off due to the theme settings
        if (isset($c->themeRemoveAttr)) {
            if (in_array('numOfComments', $c->themeRemoveAttr)) {
                $showCommentsIcon = FALSE;
            }
        }
    }
    $header = array("layout" => "L0", "class" => "{$default_class}", "nextURL" => "{$nextURL}", "prevURL" => "{$prevURL}", "postID" => $post->ID, "title" => strip_tags($post->post_title), 'screenTitle' => WiziappConfig::getInstance()->app_name, "imageURL" => $imageURL, "canComment" => 'open' == $post->comment_status, "showCommentsIcon" => $showCommentsIcon);
    if (isset($c->themeRemoveAttr)) {
        if (!in_array('author', $c->themeRemoveAttr)) {
            $header['author'] = "{$authorName}";
        }
        if (!in_array('date', $c->themeRemoveAttr)) {
            $header['date'] = "{$postDate}";
        }
        if (!in_array('numOfComments', $c->themeRemoveAttr)) {
            $header['numOfComments'] = $totalComments;
        }
    }
    return $header;
}
 /**
  * Attribute getter method
  * 
  * @return the imageURL of the component
  */
 function get_imageURL_attr()
 {
     $type = $this->imageSizes['default'];
     if (isset($this->imageSizes[$this->layout])) {
         $type = $this->imageSizes[$this->layout];
     }
     $size = WiziappConfig::getInstance()->getImageSize($type);
     $limitSize = WiziappConfig::getInstance()->getImageSize('limit_post_thumb');
     return wiziapp_getPostThumbnail($this->post, $size, $limitSize, FALSE);
 }
                    </div>

                    <div class="clear"></div>
                    <div class="post" id="post-<?php 
the_ID();
?>
">
                        <div id="singlentry">
                            <?php 
$GLOBALS['WiziappProfiler']->write('Before the thumb inside the post ' . $post->ID, 'theme._content');
?>
                            <?php 
set_time_limit(60);
$size = WiziappConfig::getInstance()->getImageSize('posts_thumb');
$limitSize = WiziappConfig::getInstance()->getImageSize('limit_post_thumb');
wiziapp_getPostThumbnail($post, $size, $limitSize);
//wiziapp_getPostThumbnail($post, array('width'=>100, height=>100), $limitSize);
?>
                            <?php 
$GLOBALS['WiziappProfiler']->write('after the thumb inside the post ' . $post->ID, 'theme._content');
?>
                            <?php 
$GLOBALS['WiziappProfiler']->write('Before the content inside the post ' . $post->ID, 'theme._content');
?>
                            <?php 
global $more;
$more = 1;
the_content();
?>
                            <?php 
$GLOBALS['WiziappProfiler']->write('After the content inside the post ' . $post->ID, 'theme._content');