Esempio n. 1
0
/**
 * Display primary HTML structure for content.
 */
function thesis_content_area()
{
    if (is_page()) {
        global $post;
        $page_template = get_post_meta($post->ID, '_wp_page_template', true);
    }
    $add_class = $page_template == 'no_sidebars.php' ? ' class="no_sidebars"' : '';
    thesis_hook_before_content_box();
    #hook
    echo "\t<div id=\"content_box\"{$add_class}>\n";
    thesis_hook_content_box_top();
    #hook
    if ($page_template == 'no_sidebars.php') {
        thesis_content_column();
    } elseif ($page_template == 'custom_template.php') {
        thesis_hook_custom_template();
    } else {
        thesis_columns();
    }
    thesis_hook_content_box_bottom();
    #hook
    echo "\t</div>\n";
    thesis_hook_after_content_box();
    #hook
}
Esempio n. 2
0
/**
 * Display primary HTML structure for content.
 */
function thesis_content()
{
    thesis_hook_before_content_box();
    if (is_page()) {
        global $post;
        $page_template = get_post_meta($post->ID, '_wp_page_template', true);
    }
    if ($page_template == 'no_sidebars.php') {
        echo '	<div id="content_box" class="no_sidebars">' . "\n";
        thesis_content_column();
        echo '	</div>' . "\n";
    } else {
        echo '	<div id="content_box">' . "\n";
        if ($page_template == 'custom_template.php') {
            thesis_hook_custom_template();
        } else {
            thesis_columns();
        }
        echo '	</div>' . "\n";
    }
    thesis_hook_after_content_box();
}
Esempio n. 3
0
function thesis_custom_template_sample()
{
    thesis_columns();
}