Beispiel #1
0
//WF display hook
// NOTE: Wonderflux adds additional classes using the WordPress core WordPress 'body_class' filter
// Use filter 'wflux_body_class_browser' : browser detection CSS class output
// Use filter 'wflux_body_class_layout' : layout description classes
// NOTE: We have to break out of PHP because theme testers don't see body_class() properly otherwise - boo ;(
?>

<body <?php 
body_class();
?>
>

<?php 
wfbody_before_wrapper();
//WF display hook
wfheader_before_wrapper();
//WF display hook
wfheader_before_container();
//WF display hook
echo apply_filters('wflux_layout_header_container_open', '<div class="container" id="header">');
wfheader_before_content();
//WF display hook
wfx_get_template_part('part=header-content');
// Setup all location aware template parts
wfheader_after_content();
//WF display hook
echo apply_filters('wflux_layout_header_container_close', '</div>');
wfheader_after_container();
//WF display hook
wfheader_after_wrapper();
//WF display hook
Beispiel #2
0
 *
 * Customise this in your child theme by:
 * - Using hooks and your own functions
 * - Using the 'footer-content' template part 'footer-content-404.php' or 'footer-content.php' (fallback if location specific file not available)
 * - Copying this file to your child theme and customising - it will over-ride this file
 *
 * @package Wonderflux
 */
wffooter_before_wrapper();
//WF display hook
wffooter_before_container();
//WF display hook
echo apply_filters('wflux_layout_footer_container_open', '<div class="container" id="footer">');
wffooter_before_content();
//WF display hook
wfx_get_template_part('part=footer-content');
// Setup all location aware template parts
wffooter_after_content();
//WF display hook
echo apply_filters('wflux_layout_footer_container_close', '</div>');
wffooter_after_container();
//WF display hook
wffooter_after_wrapper();
//WF display hook
wfbody_after_wrapper();
//WF display hook
wf_footer();
//WF display hook
wp_footer();
//Standard WordPress display hook
?>
Beispiel #3
0
$hook_where = wfx_info_location();
wfloop_before();
//WF display hook
if (!have_posts()) {
    // No posts found
    if (is_search()) {
        get_template_part('loop-content', 'no-search-results');
    } else {
        get_template_part('loop-content', '404');
    }
} elseif (isset($_GET['s']) && trim($_GET['s']) == '') {
    // If no query supplied, show no results - dont like this, just override in child theme!
    get_template_part('loop-content', 'no-search-results');
    query_posts('showposts=0');
    // Reset post data so page counters show incorrectly - no results = no paged results thanks!
} else {
    wfloop_before_found_posts_all();
    $wfloop_before_found = 'wfloop_before_found_posts_' . $hook_where;
    $wfloop_before_found();
    while (have_posts()) {
        the_post();
        wfx_get_template_part('part=loop-content');
        // Setup all location aware template parts
    }
    $wfloop_after_found = 'wfloop_after_found_posts_' . $hook_where;
    $wfloop_after_found();
    wfloop_after_found_posts_all();
}
wfx_page_counter('navigation=Y');
wfloop_after();
//WF display hook
Beispiel #4
0
<?php

/**
 * Wonderflux sidebar content template
 *
 * This will be over-ridden if you create a file of the same name in your child theme
 *
 * @package Wonderflux
 */
wfsidebar_before_all();
//WF display hook
$hook_where = wfx_info_location();
//WF location aware display hook
$wfx_sb_hook_before = 'wfsidebar_before_' . $hook_where;
$wfx_sb_hook_before();
wfx_get_template_part('part=sidebar-content');
// Setup all location aware template parts
//WF location aware display hook
$wfx_sb_hook_after = 'wfsidebar_after_' . $hook_where;
$wfx_sb_hook_after();
wfsidebar_after_all();
//WF display hook