wp_nav_menu(array('theme_location' => 'primary', 'fallback_cb' => 't_menu_fallback')); } ?> </nav><!-- #site-navigation --> </div> </div> </div> </div> </div> </header><!-- #masthead --> <?php if (!is_front_page()) { ?> <section class="tm-innerpage-head-section"> <?php the_monday_innerpage_head_section(); the_monday_innerpage_title_section(); ?> </section> <?php } ?> <div id="content" class="site-content"> <?php $the_monday_breadcrumbs_option = get_theme_mod('the_monday_breadcrumbs_option', 'yes'); if ($the_monday_breadcrumbs_option == 'yes') { the_monday_breadcrumbs(); }
function the_monday_innerpage_title_section() { ?> <div class="tm-header-title"> <?php if (is_page()) { ?> <header class="entry-header"> <?php the_title('<h1 class="entry-title">', '</h1>'); ?> </header><!-- .entry-header --> <?php } elseif (is_archive()) { ?> <header class="page-header"> <?php the_archive_title('<h1 class="page-title archive-title">', '</h1>'); the_archive_description('<div class="taxonomy-description">', '</div>'); ?> </header><!-- .page-header --> <?php } elseif (is_single()) { if (get_post_type() == 'post') { $post_category = get_the_category(); $cat_name = $post_category[0]->cat_name; $cat_desc = $post_category[0]->category_description; ?> <div class="post-cat-info"> <div class="post-cat-name"><h1 class="page-title archive-title"><?php echo $cat_name; ?> </h1></div> <div class="post-cat-desc"><div class="taxonomy-description"><?php echo $cat_desc; ?> </div></div> </div> <?php } } elseif (is_404()) { echo '<h1 class="page-title archive-title">' . __('404', 'the-monday') . '</h1>'; } ?> <div class="tm-breadcrumbs-area"> <?php the_monday_breadcrumbs(); ?> </div> </div> <?php }