function weaverii_sc_breadcrumbs($args = '')
{
    extract(shortcode_atts(array('style' => '', 'class' => 'breadcrumbs'), $args));
    $title = weaverii_breadcrumb(false, $class);
    if ($style) {
        return '<span style="' . $style . '">' . $title . '</span>';
    }
    return $title;
}
示例#2
0
	<div id="infobar">
<?php 
    if (($h1 = weaverii_getopt('wii_info_html1')) != '') {
        echo '<span id="infobar_html1">';
        echo do_shortcode($h1);
        echo "</span>\n";
    }
    if (!weaverii_getopt_checked('wii_info_hide_breadcrumbs')) {
        global $weaverii_crumbs;
        if (function_exists('yoast_breadcrumb')) {
            $weaverii_crumbs = yoast_breadcrumb('<span id="breadcrumbs">', '</span>', false);
        }
        if ($weaverii_crumbs) {
            echo $weaverii_crumbs;
        } else {
            weaverii_breadcrumb();
        }
    }
    if (($h1 = weaverii_getopt('wii_info_html2')) != '') {
        echo '<span id="infobar_html2">';
        echo do_shortcode($h1);
        echo "</span>\n";
    }
    ?>
	<span class='infobar_right'>
<?php 
    if (!weaverii_getopt_checked('wii_info_hide_pagenav')) {
        echo '<span id="infobar_paginate">';
        if (!is_singular()) {
            if (function_exists('wp_pagenavi')) {
                wp_pagenavi();
示例#3
0
 * We create the breadcrumbs part for the page.
 * We buffer the output from the inject-prmain up to the end of the page content
 * We create the page-navi part of the infobar after we restart the loop
 * Then output the infobar with the page breadcrumbs and the posts page-navi and the page buffer
 * Finally, start the new loop.
 */
weaverii_get_header('pwp');
// build infobar front part - replace get_template_part('infobar'); with local code
// we need to build it in a buffer
global $weaverii_crumbs;
$weaverii_crumbs = false;
// this is ugly, I know, but it lets us keep keep the inject-info in just one code base
if (!weaverii_getopt_checked('wii_infobar_hide') && !weaverii_is_checked_page_opt('wvr-hide-page-infobar')) {
    // let's really not include it rather than display:none.
    if (!weaverii_getopt_checked('wii_info_hide_breadcrumbs')) {
        $weaverii_crumbs = weaverii_breadcrumb(false);
    }
}
ob_start();
// now build the page part of the PwP
weaverii_inject_area('premain');
echo "\t<div id=\"main\">\n";
weaverii_trace_template(__FILE__);
weaverii_get_sidebar_left('pwp');
$paged = weaverii_get_page();
?>
		<div id="container_wrap"<?php 
weaverii_get_page_class('pwp', 'container-pagewithposts');
?>
>