示例#1
0
 /**
  * This function adjusts the opening content wrapper on Conductor layouts.
  */
 public function conductor_content_wrapper_element_before($wrapper)
 {
     $wrapper = '<!-- Main --><main role="main" class="content-wrap content-wrap-conductor baton-flex ';
     $wrapper .= baton_is_yoast_breadcrumbs_active() ? 'has-breadcrumbs' : 'no-breadcrumbs';
     $wrapper .= '">';
     return $wrapper;
 }
示例#2
0
文件: archive.php 项目: sdsweb/baton
<?php

/**
 * This template is used for the display of archives.
 */
// Bail if accessed directly
if (!defined('ABSPATH')) {
    exit;
}
get_header();
?>

			<!-- Main -->
			<main role="main" class="content-wrap content-wrap-archive baton-flex <?php 
echo baton_is_yoast_breadcrumbs_active() ? 'has-breadcrumbs' : 'no-breadcrumbs';
?>
">
				<!-- Archive Content -->
				<div class="baton-col baton-col-content">
					<section class="content-container content-archive-container">
						<?php 
get_template_part('yoast', 'breadcrumbs');
// Yoast Breadcrumbs
?>

						<?php 
get_template_part('loop', 'archive');
// Loop - Archive
?>

						<?php 
示例#3
0
<?php

// Bail if accessed directly
if (!defined('ABSPATH')) {
    exit;
}
?>

<?php 
if (baton_is_yoast_breadcrumbs_active()) {
    // Breadcrumbs
    ?>
	<div class="yoast-breadcrumbs baton-breadcrumbs">
		<?php 
    yoast_breadcrumb('<span id="breadcrumbs" class="breadcrumbs">', '</span>');
    ?>
	</div>
<?php 
}