/** * Page Header * * @since IS Simple 1.0 * ---------------------------------------------------------------------------- */ function issimple_page_header() { if (!is_single() || !is_front_page()) { ?> <header id="page-header"> <div class="jumbotron"> <div class="container-fluid"> <?php if (is_page()) { the_title('<h1 id="page-title">', '</h1>'); edit_post_link(__('Edit', 'issimple'), '<span class="edit-link"><span class="glyphicon glyphicon-pencil"></span> ', '</span>'); } elseif (is_404()) { ?> <h1 id="page-title"><?php _e('Page not found', 'issimple'); ?> </h1><?php } elseif (is_archive()) { the_archive_title('<h1 id="page-title">', '</h1>'); if (is_author()) { if (get_the_author_meta('description')) { ?> <p id="author-bio"> <?php get_template_part('author-info'); ?> </p><!-- #author-bio --><?php } } else { the_archive_description('<div class="taxonomy-description">', '</div>'); } } elseif (is_search()) { ?> <h1 id="page-title"><?php printf(__('Search results for: %s', 'issimple'), get_search_query()); ?> </h1><?php } else { ?> <h3 id="page-title" class="h1"><?php _e('Latest Posts', 'issimple'); ?> </h1><?php } ?> </div> </div> </header><!-- #page-header --><?php } }
function nexus_page_title() { if (is_singular()) { the_title(); } elseif (is_archive()) { the_archive_title(); } elseif (is_search()) { printf(esc_html__('Search Results for: %s', 'nexus'), '<span>' . get_search_query() . '</span>'); } elseif (is_404()) { echo __('Page Not Found', 'nexus'); } }
* @package WYSAC Wyoming Tobacco */ get_header(); ?> <div class="row"> <div id="primary" class="content-area"> <main id="main" class="site-main col-md-12" role="main"> <?php if (have_posts()) { ?> <header class="page-header col-md-12"> <?php the_archive_title('', '</h1>'); //This has a filter, found in functions.php, that determines the formatting of the prefix. This also controls which .section-title appears above the archive the_archive_title the_archive_description('<div class="taxonomy-description">', '</div>'); ?> <div class="taxonomy-description author-bio"> <?php echo get_wp_user_avatar(get_the_author_meta('ID'), 96, 'left'); echo get_the_author_meta('description'); ?> </div> <h2 class="widget-title" style="border:none;">Publications by <?php echo get_the_author_meta('first_name'); ?> </h2> </header><!-- .page-header -->
/** * Archive Header * Display archive title and description. * @since 0.1.0 * @access public */ function tamatebako_archive_header() { if (get_the_archive_title() && !is_front_page() && !is_singular() && !is_404()) { ?> <header class="archive-header"> <?php the_archive_title('<h1 class="archive-title">', '</h1>'); ?> <?php the_archive_description('<div class="archive-description">', '</div>'); ?> </header><!-- .loop-meta --> <?php } }
*/ get_header(); ?> <section class="main_content" role="main"> <div class="container"> <div class="row"> <div class="sub-heading"> <h1 class="text-center primary-heading"><?php echo __('Архив', 'euzakupki'); ?> </h1> <div class="sub-heading-sub"> <?php the_archive_title('<span class="text-center center-block">', '</span>'); ?> <?php the_archive_description('<span class="text-center">', '</span>'); ?> </div> <div class="text-center"> <span class="divider" aria-hidden="true"><i class="glyphicon glyphicon-bullhorn"></i></span> </div> </div> <div class="col-sm-8"> <?php if (have_posts()) { ?>
* * @package tm_polygon */ $tm_polygon_heading_image = Kirki::get_option('tm-polygon', 'page_bg_image'); $tm_polygon_layout = Kirki::get_option('tm-polygon', 'archive_layout'); get_header(); ?> <header class="big-title" style="background-image: url('<?php echo esc_url($tm_polygon_heading_image); ?> ')"> <div class="container"> <div class="row middle"> <div class="col-md-6"> <?php the_archive_title('<h1 class="entry-title">', '</h1>'); the_archive_description('<div class="taxonomy-description">', '</div>'); ?> </div> <?php if (function_exists('tm_bread_crumb')) { ?> <div class="breadcrumb col-md-6 end"> <div class="container"> <?php echo tm_bread_crumb(array('home_label' => Kirki::get_option('tm-polygon', 'site_general_breadcrumb_home_text'))); ?> </div> </div> <?php }
* * @package limitless-career */ get_header(); ?> <div id="primary" class="content-area"> <main id="main" class="site-main" role="main"> <?php if (have_posts()) { ?> <header class="page-header"> <?php the_archive_title('<h1 class="page-title">', '</h1>'); the_archive_description('<div class="taxonomy-description">', '</div>'); ?> </header><!-- .page-header --> <?php /* Start the Loop */ ?> <?php while (have_posts()) { the_post(); ?> <?php /* * Include the Post-Format-specific template for the content.
* Archives template * * @package Modern * @copyright 2015 WebMan - Oliver Juhas * * @since 1.0 * @version 1.2 */ get_header(); ?> <section class="archives-listing"> <header class="page-header"> <?php the_archive_title('<h1 class="page-title">', wm_paginated_suffix('small') . '</h1>'); the_archive_description('<div class="taxonomy-description">', '</div>'); ?> </header> <?php get_template_part('loop', 'archive'); ?> </section> <?php get_footer();
* * @link https://codex.wordpress.org/Template_Hierarchy * * @package preschoolexpansion */ get_header(); ?> <table width="600" border="0" cellspacing="0" cellpadding="0" align="center" style="background: #f4f4f4;" class="container"> <?php if (have_posts()) { ?> <tr> <?php the_archive_title('<td><h1 class="page-title">', '</h1></td>'); the_archive_description('<td><div class="taxonomy-description">', '</div></td>'); ?> </tr> <?php /* Start the Loop */ ?> <?php while (have_posts()) { the_post(); ?> <?php /* * Include the Post-Format-specific template for the content.
?> <?php } elseif (is_year()) { ?> <?php printf(__('Yearly archives: %s', 'govintranet'), get_the_date('Y')); ?> <?php } else { ?> <?php $archiveTitle = post_type_archive_title('', false); if ($archiveTitle != "") { echo "<h1>" . $archiveTitle . "</h1>"; } else { the_archive_title('<h1">', '</h1>'); the_archive_description('<div class="taxonomy-description">', '</div>'); } ?> <?php } ?> </h1> <?php /* Since we called the_post() above, we need to * rewind the loop back to the beginning that way * we can run the loop properly, in full. */ rewind_posts(); /* Run the loop for the archives page to output the posts.
} elseif (is_home() && is_front_page()) { ?> <header id="page-header"> <div class="container"> <p id="page-title"><?php echo apply_filters('upstart_blog_page_title', 'Recent posts'); ?> </p> </div> </header> <?php } elseif (is_archive()) { ?> <header id="page-header"> <div class="container"> <?php the_archive_title('<p id="page-title">', '</p>'); ?> </div> </header> <?php } elseif (is_search()) { ?> <header id="page-header"> <div class="container"> <p id="page-title">Search results for: <?php _e(get_search_query()); ?> </p> </div> </header> <?php } elseif (is_404()) { ?>
?> <main id="main" class="site-main" role="main" itemprop="mainContentOfPage" itemscope itemtype="http://schema.org/CollectionPage"> <?php tha_content_top(); // custom action hook ?> <?php if (have_posts()) { ?> <header class="page-header"> <?php the_archive_title('<h1 class="page-title" itemprop="headline">', '</h1>'); the_archive_description('<div class="taxonomy-description">', '</div>'); ?> </header><!-- .page-header --> <?php // Start the Loop while (have_posts()) { the_post(); /* Include the Post-Format-specific template for the content. * If you want to override this in a child theme, then include a file * called content-___.php (where ___ is the Post Format name) and that will be used instead. */ get_template_part('template-parts/content', get_post_format()); // End the loop. }
/** * Template Name: Category with player */ get_header('category'); ?> <section class="<?php if (get_theme_mod('hide-player') == 0) { echo "w-f-md"; } ?> " id="ajax-container"> <section class="vbox"> <section class="scrollable padder-lg"> <header> <?php the_archive_title('<h1 class="font-thin h2 m-t m-b">', '</h1>'); the_archive_description('<div class="taxonomy-description">', '</div>'); ?> </header><!-- .page-header --> <div class="row"> <div class="col-sm-9"> <?php if (have_posts()) { ?> <?php /* Start the Loop */ ?> <?php while (have_posts()) {
function mk_custom_header_feature() { global $post, $wp_query; // Check to see if the header image has been removed $header_image = get_header_image(); $img_width = get_custom_header()->width; $img_height = get_custom_header()->height; $out = ''; if (get_theme_mod('mk_show_custom_header_image', true) == true) { $out .= '<header class="mk-single-top text-center header-' . strtolower(get_theme_mod('mk_blog_layout', 'classic')) . '">' . "\n"; $out .= '<span class="mk-single-top-overlay-mask"></span>' . "\n"; $header_image_width = get_theme_support('custom-header', 'width'); //$out .='<a href="'.esc_url( home_url( '/' ) ).'">'."\n"; // The header image // Check if this is a post or page, if it has a thumbnail, and if it's a big one if (is_singular() && has_post_thumbnail($post->ID) && ($image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), array($header_image_width, $header_image_width))) && $image[1] >= $header_image_width) { // Houston, we have a new header image! $thumb = get_post_thumbnail_id(); $image = wp_get_attachment_url($thumb, 'full'); $out .= '<img class="mk-header-image" src="' . $image . '" alt="' . esc_attr(get_bloginfo('name', 'display')) . '" />' . "\n"; } else { $out .= '<img class="mk-header-image" src="' . get_header_image() . '" width="' . get_custom_header()->width . '" height="' . get_custom_header()->height . '" alt="' . esc_attr(get_bloginfo('name', 'display')) . '" />' . "\n"; } if (is_home() || is_front_page()) { $out .= '<div class="custom-header-content">' . "\n"; $out .= '<h2>' . esc_attr(get_bloginfo('name', 'display')) . '</h2>' . "\n"; $out .= '<p>' . esc_attr(get_bloginfo('description', 'display')) . '</p>' . "\n"; $out .= '</div>' . "\n"; } elseif (is_single()) { $out .= '<div class="custom-header-content">' . "\n"; ob_start(); the_title(sprintf('<h1 class="entry-title"><a href="%s" rel="bookmark">', esc_url(get_permalink())), '</a></h1>') . "\n"; mk_posted_on() . "\n"; mk_entry_footer() . "\n"; $out .= ob_get_clean() . "\n"; $out .= '</div>' . "\n"; } elseif (is_archive()) { $out .= '<div class="custom-header-content">' . "\n"; ob_start(); the_archive_title('<h1 class="page-title">', '</h1>'); the_archive_description('<div class="taxonomy-description">', '</div>'); $out .= ob_get_clean() . "\n"; $out .= '</div>' . "\n"; } elseif (is_page()) { $out .= '<div class="custom-header-content">' . "\n"; ob_start(); the_title('<h1 class="entry-title">', '</h1>'); $out .= ob_get_clean() . "\n"; $out .= '</div>' . "\n"; } elseif (is_search()) { $out .= '<div class="custom-header-content">' . "\n"; $out .= '<h1 class="page-title">' . "\n"; ob_start(); printf(__('Search Results for: %s', 'mk'), '<span>' . get_search_query() . '</span>'); $out .= ob_get_clean() . "\n"; $out .= '</h1>' . "\n"; $out .= '</div>' . "\n"; } elseif (is_404()) { $out .= '<div class="custom-header-content">' . "\n"; $out .= 'Page cannot be found'; $out .= '</div>' . "\n"; } else { $out .= '<div class="custom-header-content">' . "\n"; ob_start(); the_title('<h1 class="entry-title">', '</h1>'); $out .= ob_get_clean() . "\n"; } //$out .='</a>'."\n"; $out .= '</header>' . "\n"; } // if show custom header images is true echo $out; }
* * @package gaunt */ get_header(); ?> <div id="primary" class="content-area"> <main id="main" class="site-main" role="main"> <?php if (have_posts()) { ?> <header class="page-header"> <?php the_archive_title('<h5 class="archive-title">', '</h5>'); the_archive_description('<div class="taxonomy-description">', '</div>'); ?> </header><!-- .page-header --> <?php /* Start the Loop */ ?> <?php while (have_posts()) { the_post(); ?> <a href="<?php the_permalink(); ?>
* The template for displaying archive pages. * * @link https://codex.wordpress.org/Template_Hierarchy * * @package 4es */ get_header(); ?> <div class="main page-blog"> <div class="page-blog-container"> <div class="page-blog-header"> <?php the_archive_title('<h1 class="page-blog-header-title">', '</h1>'); ?> <?php get_sidebar(); ?> </div> <div class="page-blog-content"> <?php if (have_posts()) { ?> <?php /* Start the Loop */ ?> <?php while (have_posts()) {
* * @package BeAgency */ get_header(); ?> <div class="cat-page content-wrap"> <div class="container clearfix"> <div id="primary" class="content-area"> <main id="main" class="site-main" role="main"> <?php if (have_posts()) { ?> <header class="heading-block text-center"> <?php the_archive_title('<h1 class="page-title text-uppercase">', '</h1>'); the_archive_description('<span class="taxonomy-description">', '</span>'); ?> </header> <div id="posts" class="post-masonry clearfix"> <?php while (have_posts()) { the_post(); get_template_part('template-parts/content', get_post_format()); } ?> </div><!-- .post-grid --> <div id="load-more-posts" class="text-center"> <?php
?> <div id="content-wrap" class="container <?php echo wpcharming_get_layout_class(); ?> "> <div id="primary" class="content-area"> <main id="main" class="site-main" role="main"> <?php if (have_posts()) { ?> <header class="archive-header"> <?php the_archive_title('<h3 class="archive-title">', '</h3>'); the_archive_description('<div class="taxonomy-description">', '</div>'); ?> </header><!-- .archive-header --> <?php /* Start the Loop */ ?> <?php while (have_posts()) { the_post(); ?> <?php /* Include the Post-Format-specific template for the content. * If you want to override this in a child theme, then include a file
get_header(); ?> <section class="main-container"> <div class="main"> <div class="container"> <div class="row"> <div class="col-md-12"> <?php if (have_posts()) { ?> <header class="page-header"> <?php the_archive_title('<h3>', '</h3>'); ?> </header><!-- .page-header --> <table class="table"> <thead> <tr> <th>Job Title</th> <th>Reference #</th> <th>Location</th> <th>Post Date</th> </tr> </thead> <tbody> <?php // Start the Loop.
echo '<div class="parallax-bg-image" style="background-image:url(' . esc_url($pixova_lite_header_image) . ')" alt="" /></div>'; } else { echo '<div class="parallax-bg-image" style="background-image:url(' . get_template_directory_uri() . '/layout/images/header-bg.jpg)"></div>'; } echo '</div><!--/.parallax-bg-container-->'; echo '<div class="container">'; echo '<div class="intro-content parallax-text-fade">'; echo '<div class="row">'; echo '<div class="col-md-12">'; echo '<div class="text-center">'; if (is_page_template('page-templates/blog-template.php')) { echo '<h1 class="intro-title">' . esc_html(get_option('blogname')) . '</h1>'; echo '<p class="intro-tagline">' . esc_html(get_option('blogdescription')) . '</p>'; } else { if (is_category()) { echo the_archive_title('<h1 class="intro-title">', '</h1>'); echo the_archive_description('<p class="intro-tagline">', '</p>'); } else { if (is_tag()) { echo '<h1 class="intro-title">'; printf(__('Posts tagged with: %s', 'pixova-lite'), single_tag_title('', false)); echo '</h1>'; echo '<p class="intro-tagline">' . tag_description() . '</p>'; } else { if (is_search()) { echo '<h1 class="intro-title">'; printf(__('Search Results for: %s', 'pixova-lite'), '<span><u>' . esc_html(get_search_query()) . '</u></span>'); echo '</h1>'; } } }
function sds_archive_title() { global $sds_theme_options; // Determine if we should we output the title based on settings if ($sds_theme_options['hide_archive_titles']) { return false; } // Use core functionality if it exists if (function_exists('the_archive_title')) { $css_class = 'page-title'; // Author if (is_author()) { $css_class .= ' author-archive-title'; } else { if (is_category()) { $css_class .= ' category-archive-title'; } else { if (is_tag()) { $css_class .= ' tag-archive-title'; } else { if (is_day()) { $css_class .= ' day-archive-title daily-archive-title'; } else { if (is_month()) { $css_class .= ' month-archive-title monthly-archive-title'; } else { if (is_year()) { $css_class .= ' year-archive-title yearly-archive-title'; } } } } } } $css_class = apply_filters('sds_archive_title_css_class', $css_class); the_archive_title('<h1 class="' . esc_attr($css_class) . '">', '</h1>'); // Otherwise use fallback functionality } else { // Author if (is_author()) { $author = get_user_by('slug', get_query_var('author_name')); // Get user data by slug with value of author_name in query ?> <h1 title="<?php esc_attr_e('Author Archive:', 'modern-estate'); ?> <?php echo $author instanceof WP_User ? $author->display_name : false; ?> " class="page-title author-archive-title"> <?php _e('Author Archive:', 'modern-estate'); ?> <?php echo $author instanceof WP_User ? $author->display_name : false; ?> </h1> <?php // Categories } elseif (is_category()) { ?> <h1 title="<?php single_cat_title(__('Category Archive: ', 'modern-estate')); ?> " class="page-title category-archive-title"> <?php single_cat_title(__('Category Archive: ', 'modern-estate')); ?> </h1> <?php // Tags } elseif (is_tag()) { ?> <h1 title="<?php single_tag_title(__('Tag Archive: ', 'modern-estate')); ?> " class="page-title tag-archive-title"> <?php single_tag_title(__('Tag Archive: ', 'modern-estate')); ?> </h1> <?php // Daily Archives } elseif (is_day()) { $the_date = get_the_date(); ?> <h1 title="<?php esc_attr_e('Daily Archives:', 'modern-estate'); ?> <?php echo $the_date; ?> " class="page-title day-archive-title daily-archive-title"> <?php _e('Daily Archives:', 'modern-estate'); ?> <?php echo $the_date; ?> </h1> <?php // Monthly Archives } elseif (is_month()) { $the_date = get_the_date('F Y'); ?> <h1 title="<?php esc_attr_e('Monthly Archives:', 'modern-estate'); ?> <?php echo $the_date; ?> " class="page-title month-archive-title monthly-archive-title"> <?php _e('Monthly Archives:', 'modern-estate'); ?> <?php echo $the_date; ?> </h1> <?php // Yearly Archives } elseif (is_year()) { $the_date = get_the_date('Y'); ?> <h1 title="<?php esc_attr_e('Yearly Archives:', 'modern-estate'); ?> <?php echo $the_date; ?> " class="page-title year-archive-title yearly-archive-title"> <?php _e('Yearly Archives:', 'modern-estate'); ?> <?php echo $the_date; ?> </h1> <?php } } }
<section id="title-wrapper"> <div class="container"> <div class="row"> <div class="col-md-12"> <div class="title-holder"> <div class="title-holder-cell text-<?php echo esc_attr(builtpress_opt('title_align')); ?> "> <?php if (is_archive()) { the_archive_title('<h1 class="page-title"><span>', '</span></h1>'); } elseif (is_search()) { echo '<h1 class="page-title"><span>' . sprintf(esc_html__('Search Results for: %s', 'builtpress'), esc_html(get_search_query())) . '</span></h1>'; } elseif (is_home() || is_singular('post')) { echo '<h1 class="page-title"><span>' . esc_attr(builtpress_opt('post_page_title')) . '</span></h1>'; } elseif (is_404()) { echo '<h1 class="page-title"><span>' . esc_html__('Page Not Found', 'builtpress') . '</span></h1>'; } if (builtpress_opt('title_breadcrumb')) { builtpress_breadcrumb(); } ?> </div> </div>
/** * @param array $args * @return string */ function get_archive_title($args = array()) { $args = wp_parse_args($args, array('before' => '<h1 class="page-title">', 'after' => '</h1>')); ob_start(); the_archive_title($args['before'], $args['after']); return ob_get_clean(); }
<?php get_header(); ?> <div id="content"> <div id="inner-content" class="row"> <main id="main" class="large-24 medium-24 columns" role="main"> <header> <h1 class="page-title"><?php the_archive_title();?></h1> <?php the_archive_description('<div class="taxonomy-description">', '</div>');?> </header> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <!-- To see additional archive styles, visit the /parts directory --> <?php get_template_part( 'parts/loop', 'archive' ); ?> <?php endwhile; ?> <?php joints_page_navi(); ?> <?php else : ?> <?php get_template_part( 'parts/content', 'missing' ); ?> <?php endif; ?> </main> <!-- end #main --> </div> <!-- end #inner-content -->
* * @package HowlThemes */ get_header(); ?> <div class="main-outer container"> <div id="primary" class="content-area"> <main id="main" class="site-main" role="main" itemprop="mainContentOfPage" itemscope="itemscope" itemtype="http://schema.org/Blog"> <?php if (have_posts()) { ?> <header class="page-header"> <?php the_archive_title('<div class="archive-description" style="padding-top: 10px;"><h2>', '</h2></div>'); the_archive_description('<div class="taxonomy-description">', '</div>'); ?> </header><!-- .page-header --> <?php /* Start the Loop */ ?> <?php while (have_posts()) { the_post(); ?> <?php /* Include the Post-Format-specific template for the content. * If you want to override this in a child theme, then include a file
<main class="mdl-layout__content"> <div class="demo-blog__posts mdl-grid"> <?php if (have_posts()) { ?> <div class="mdl-card mdl-cell mdl-cell--8-col"> <div class="mdl-card__media mdl-color-text--grey-50" style="background-image: url('<?php echo category_description(); ?> ');"> <h3><?php the_archive_title('', ''); ?> </h3> </div> <div class="mdl-card__supporting-text meta mdl-color-text--grey-600"> <div class="minilogo" style="background-image: url('<?php echo get_blog_logo(); ?> ');"></div> <div> <strong><?php echo $wp_the_query->found_posts; ?> Post in the list</strong> <span>Let's check them out! </span> </div>
* * @package Bootstrap_to_WordPress */ get_header(); ?> <?php if (have_posts()) { ?> <section class="feature-image feature-image-default-alt" data-type="background" data-speed="2"> <h1> <?php the_archive_title(); the_archive_description('<small class="taxonomy-description">', '</small>'); ?> </h1> </section> <div class="container"> <div id="primary" class="row"> <main id="content" class="col-sm-8"> <?php /* Start the Loop */ while (have_posts()) { the_post(); /* * Include the Post-Format-specific template for the content.
get_header(); ?> <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> <?php do_action('cleanblog_archive_top'); ?> <?php if (have_posts()) { ?> <header class="page-header"> <?php the_archive_title('<h4 class="page-title">', '</h4>'); the_archive_description('<div class="taxonomy-description">', '</div>'); ?> </header><!-- .page-header --> <?php /* Start the Loop */ ?> <?php while (have_posts()) { the_post(); ?> <?php /* * Include the Post-Format-specific template for the content. * If you want to override this in a child theme, then include a file
get_header(); ?> <div id="primary" <?php wen_business_content_class('content-area'); ?> > <main id="main" class="site-main" role="main"> <?php if (have_posts()) { ?> <header class="page-header"> <?php the_archive_title('<h2 class="page-title">', '</h2>'); the_archive_description('<div class="taxonomy-description">', '</div>'); ?> </header><!-- .page-header --> <?php /* Start the Loop */ ?> <?php while (have_posts()) { the_post(); ?> <?php /* Include the Post-Format-specific template for the content. * If you want to override this in a child theme, then include a file
* @package _s */ get_header(); global $wp_query; ?> <main class="page resources"> <div class="color-block section-color"></div> <div class="section-title-container container"> <div class="inner"> <img src="<?php _e(TEMPLATE_URL); ?> /images/icon-resources.png" alt="Events Calendar Icon" class="section-icon"> <div class="section-title-text"> <?php the_archive_title('<h1 class="section-title">', '</h1>'); the_archive_description('<p class="section-subtitle">', '</p>'); ?> </div> </div> </div> <div class="section-content-container"> <div class="container"> <section class="page-section analytics"> <?php if (have_posts()) { the_post(); ?> <?php D_Tempate()->get_template('content-big.php', array('classes' => 'article-8 lead-section sm'));