Esempio n. 1
0
<?php

/**
 * The template used for displaying page content
 *
 * @package WordPress
 * @subpackage Brooklyn_Tri
 * @since Brooklyn Tri 1.0
 */
$infobox = get_fields(get_the_ID());
$forum = get_forum_id_by_url();
?>
				<section class="forum-area">
					<header>
						<h1><?php 
echo get_parent_forum_title(get_the_title());
?>
</h1>
						<?php 
/* the_title('<h1>','</h1>'); */
?>
						<?php 
echo $forum['type'] == 'index' ? $infobox['intro'] : '';
?>
					</header>

					<div class="divider">
						<div class="holder"></div>
					</div>

<?php 
Esempio n. 2
0
function btc_breadcrumbs()
{
    $breadcrumbs = get_btc_breadcrumbs(array('separator' => '/', 'richsnippet' => false), $return_array = true);
    if ($breadcrumbs) {
        ?>
				<section class="page-title">
					<div class="holder">
						<nav class="breadcrumbs-nav">
							<span>You are here:</span>
							<ul class="breadcrumbs">
<?php 
        foreach ($breadcrumbs as $key => $crumb) {
            $page_title = get_the_title(get_the_ID());
            if (strstr($crumb, 'Brooklyn Tri Club Forum') != false) {
                $crumb = get_parent_forum_title($crumb);
            }
            ?>
								<li><?php 
            echo $crumb;
            ?>
</li>
<?php 
        }
        ?>
							</ul>
						</nav>
						<h1><?php 
        echo get_parent_forum_title($page_title);
        ?>
</h1>
					</div>
				</section>
<?php 
    }
}