Example #1
0
    ?>
<header class="<?php 
    echo header_classes();
    ?>
"<?php 
    the_header_bgimg(get_the_id(), 'full');
    ?>
>
	<div class="container">
		<div class="row">
			<div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
				<?php 
    the_title('<h1 class="display-3">', '</h1>');
    ?>
				<?php 
    if (have_bootplate_subtitle()) {
        bootplate_subtitle();
    }
    ?>
				<?php 
    get_search_form();
    ?>
			</div>
		</div><!--/row-->
	</div><!--/.container-->
</header>

<section id="page-<?php 
    the_ID();
    ?>
" <?php 
Example #2
0
 function bootplate_subtitle()
 {
     global $post;
     //$id = get_the_ID();
     if (have_bootplate_subtitle('name') == 'wp-subtitle') {
         echo get_the_subtitle($post->ID, '<p>', '</p>', false);
     } elseif (have_bootplate_subtitle('name') == 'kia-subtitle') {
         echo '<p>' . get_the_subtitle($post->ID) . '</p>';
     } elseif (have_bootplate_subtitle('name') == 'secondary-title') {
         echo get_secondary_title($post->ID, '<p>', '</p>');
     }
 }