<?php /****************************/ /**** Common post header ****/ /****************************/ // Only include this header if the bigger header hasn't already been rendered if (!ac_page_has_page_title_header()) { ?> <div class="page-header"> <h1> <?php echo roots_title(); ?> </h1> </div> <?php }
<?php /**********************/ /**** Post Header ****/ /**********************/ // -- PAGE HEADER -- // Article header used for posts, pages, etc. // Includes a configurable header and next/prev controls // Only do anything if this header is applicable to the page type. i.e. a single // Apply a filter for child themes $show_page_title = true; $show_page_title = apply_filters('ac_show_page_title_filter', $show_page_title); if (ac_page_has_page_title_header() && $show_page_title) { // Only style for custom header $page_title_type = ac_get_meta('page_title_type'); $page_custom_subtitle = ac_get_meta('page_subtitle'); if ($page_title_type == '' || $page_title_type == 'standard' || $page_title_type == 'custom') { // Styles $title_class = ''; $title_style = ''; if ($page_title_type == 'custom') { // Get post meta data $bg_align = ac_get_meta('page_title_align'); if ($bg_align) { $title_class .= 'text-' . $bg_align; } // Title text color $title_text_color = ac_get_meta('page_title_title_color'); if ($title_text_color) { $title_style .= ' color: ' . $title_text_color . '; '; }