/**
 * 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 
    }
}
示例#2
0
/**
 * Archive title
 *
 * Displays the title for archive pages.
 *
 * @since 1.0.0
 * @see https://developer.wordpress.org/reference/functions/the_archive_title/
 */
function portland_archive_title()
{
    $portland_archive_title = get_the_archive_title();
    if ('Archives' != $portland_archive_title) {
        echo '<h1 class="page-title">' . $portland_archive_title . '</h1>';
    }
    the_archive_description('<p class="page-description">', '</p>');
}
示例#3
0
    /**
     * Render main shortcode.
     * 
     * @since 1.0.0
     * @access public
     * @param array $atts 
     * @param string $content 
     * @return string
     */
    public function render_shortcode($atts, $content = null)
    {
        extract(shortcode_atts(array('first_page_only' => 'yes'), $atts, $this->shortcode));
        if (!TF_Model::is_template_page()) {
            if ('yes' == $first_page_only && is_paged()) {
                return '';
            }
            ob_start();
            ?>

                    <?php 
            the_archive_description('<div class="tf_category_description">', '</div>');
            ?>

                    <?php 
            $output = ob_get_clean();
        } else {
            $output = sprintf('<p>%s</p>', __('<strong>This is only preview text.</strong> The text content here will be replaced with actual category description when viewing the real page.', 'themify-flow'));
        }
        return $output;
    }
示例#4
0
文件: archive.php 项目: kakil/B2W
 * @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.
         * If you want to override this in a child theme, then include a file
    ?>

			<header class="page-header">
				<h1 class="page-title">
					<?php 
    if (is_category()) {
        echo "ssss";
    } else {
        the_archive_title();
        echo "ppspss";
    }
    ?>
				</h1>

				<?php 
    the_archive_description();
    ?>
				pp
			</header><!-- .page-header -->

			<?php 
    get_template_part('loop');
    ?>

		<?php 
} else {
    ?>

			<?php 
    get_template_part('content', 'none');
    ?>
示例#6
0
get_header();
?>

	<section id="primary" <?php 
bavotasan_primary_attr();
?>
 role="main">

		<?php 
if (have_posts()) {
    ?>

			<header id="archive-header">
				<?php 
    the_archive_title('<h1 class="page-title">', '</h1>');
    the_archive_description('<h2 class="archive-meta">', '</h2>');
    ?>
			</header><!-- #archive-header -->

			<?php 
    while (have_posts()) {
        the_post();
        global $mb_content_area;
        $mb_content_area = 'main';
        /* Include the post format-specific template for the content. If you want to
         * this in a child theme then include a file called called content-___.php
         * (where ___ is the post format) and that will be used instead.
         */
        get_template_part('content', get_post_format());
    }
    bavotasan_pagination();
示例#7
0
    <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()) {
    ?>
                        <?php 
    while (have_posts()) {
        the_post();
 */
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'));
    ?>
示例#9
0
 *
 * @link https://codex.wordpress.org/Template_Hierarchy
 *
 * @package moderna
 */
get_header();
get_template_part('template-parts/headline');
?>
    <section id="content">
        <div class="container">
            <div class="row">
                <div class="col-lg-8">

                    <?php 
the_archive_title('<h2>', '</h2><hr/>');
the_archive_description('<div>', '</div>');
if (have_posts()) {
    ?>


                        <?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', 'page');
    }
示例#10
0
/**
 * Outputs the loop description.
 *
 * @since      2.0.0
 * @deprecated 3.0.0
 * @access     public
 * @return     void
 */
function hybrid_loop_description()
{
    _deprecated_function(__FUNCTION__, '3.0.0', 'the_archive_description()');
    the_archive_description();
}
示例#11
0
文件: archive.php 项目: markc/briar
 *
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 * @package Briar
 * @since 1.0
 */
get_header();
?>

	<div class="page-title">
		<div class="container">
			<div class="row">
				<div class="col-lg-12">
					<?php 
the_archive_title('<h1 class="page-title">', '</h1>');
the_archive_description('<h5>', '</h5>');
?>
				</div><!-- /.col -->
			</div><!-- /.row -->
		</div><!-- /.container -->
	</div><!-- /.page title -->

	<div class="container">
		<div class="row">
			<div class="<?php 
briar_main_class();
?>
">
				<div class="post-list" id="content" role="main">
				<?php 
if (have_posts()) {
<?php

/**
 * The template for displaying the Clean Up Day category page.
 * @package Curb_Your_Litter
 */
get_header();
?>

<div class="container">
	<div class="row">
		<h1 class=" text-center">Clean Up Days</h1>
		<div class="col-sm-8 col-sm-offset-2">
<!-- 		<?php 
the_archive_description('<h3 class="leadin">', '</h3>');
?>
 -->
		</div>
	</div>
</div>


<?php 
$upcoming_query = cyl_get_upcoming_cleanup_query();
if ($upcoming_query->have_posts()) {
    ?>
<div class="row full background-green">

	<div class="container">
	
				<div class="row">
示例#13
0
文件: archive.php 项目: yusn/Brave
<?php

get_header();
?>
	<section class="content clear" role="main">
		<?php 
if (have_posts()) {
    ?>
			<header class="search-meta bbs">
				<div class="inner">
					<?php 
    the_archive_title('<h1 style="font-size:16px" itemprop="headline">', '</h1>');
    the_archive_description('<div class="mt10 c4">', '</div>');
    ?>
				</div>
			</header>
		<div class="archive-list">
		<?php 
    while (have_posts()) {
        the_post();
        ?>
			<article class="item post mb20 pb20 bbs" itemprop="articleBody">
				<?php 
        the_title(sprintf('<h2 class="f18 mb10" itemprop="headline"><a href="%s" rel="bookmark"  itemprop="url">', esc_url(get_permalink())), '</a></h2>');
        ?>
				<?php 
        if (has_post_thumbnail()) {
            ?>
					<div class="left mr20">
						<?php 
            the_post_thumbnail(array(120, 90));
示例#14
0
 * @package politics
 */
get_header();
?>

<?php 
if (have_posts()) {
    ?>

	<div class="row">
		<div class="large-12 columns">

			<header class="page-header">
				<?php 
    the_archive_title('<h1 class="page-header-title">', '</h1>');
    the_archive_description('<h2 class="page-header-subtitle"><div class="taxonomy-description">', '</div></h2>');
    ?>
			</header><!-- .page-header -->

		</div><!-- .large-12 .blog_page_header -->
	</div><!-- .row -->

	<div class="row">

		<div class="large-8 columns">

		<div id="primary" class="content-area">
			<main id="main" class="site-main traditional-wrap" role="main">

				<?php 
    /* Start the Loop */
示例#15
0
 */
get_header();
?>

	<section id="primary" class="content-area">
		<main id="main" class="site-main" role="main">

			<?php 
if (have_posts()) {
    ?>

			<section class='page-top'>
				<header class="page-header">
					<?php 
    the_archive_title('<h1 class="page-title trunk gutters">', '</h1>');
    the_archive_description('<div class="taxonomy-description"><div class="trunk gutters"><div class="L-1-2 M-1-1">', '</div></div></div>');
    ?>
				</header><!-- .page-header -->

				<div class='filters trunk gutters'>
<!-- 					<div class='float-container'>
						<a class='button' href='/category/whats-on/'>Show All</a>
						<button id='exhibitions' class='button dropdown filter-toggle'>Exhibitions<span class='icon'></span></button>
						<button id='events' class='button dropdown filter-toggle'>Events<span class='icon'></span></button>
					</div> -->
					<div id='filters-exhibitions' class='filter-list float-container'>
						<a href='/dev/mate/wordpress/en/category/whats-on/exhibitions/' id='exhibitions' class='button dropdown'>Exhibitions<!-- <span class='icon'></span> --></a>
						<?php 
    wp_list_categories('exclude=31&title_li=&child_of=8');
    ?>
					</div>
示例#16
0
文件: loop-grid.php 项目: net0/lecook
 
        <h3 class="headline"><?php 
    if (is_home() || is_front_page()) {
        _e('Latest Recipes', 'chow');
    } else {
        the_archive_title();
    }
    ?>
</h3>
        <span class="line rb margin-bottom-35"></span>
        <div class="clearfix"></div>
    <?php 
}
?>
    <?php 
the_archive_description('<div class="margin-bottom-20">', '</div>');
if ($layout == 'masonry') {
    echo '</div><div class="clearfix"></div>';
}
?>
    <!-- Isotope -->

    <?php 
if (have_posts()) {
    ?>

    <?php 
    /* Start the Loop */
    ?>
    <div class="isotope">
        <?php 
示例#17
0
;"></div>
    <div class="row small-collapse medium-uncollapse">
      <div class="columns large-12 large-centered">
        <header class="page__header <?php 
    echo scotch_get_hero_text_color($cat_id);
    ?>
"> <!-- Add inverse class -->
          <?php 
    echo scotch_get_the_archive_title();
    ?>
          <div class="page__line" style="background-color: <?php 
    echo scotch_get_category_color($cat_id);
    ?>
;"></div>
          <?php 
    the_archive_description('<div class="page__description">', '</div>');
    ?>
        </header><!-- .page-header -->

        <?php 
    global $burocrate;
    ?>

        <!-- Feaured slider -->
        <?php 
    if ($burocrate['categories-featured-slider']) {
        ?>
          <div class="hero__slider">
            <?php 
        get_template_part('parts/section', 'featured');
        ?>
    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 
    }
示例#19
0
} 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>';
            }
        }
    }
}
示例#20
0
<div id="primary" class="content-area">

  <div class="row" role="main">

    <div class="large-12 columns">

		<?php 
if (have_posts()) {
    ?>

			<header class="page-header">

				<?php 
    the_archive_title('<h1 class="page-title">', '</h1>');
    the_archive_description('<p class="taxonomy-description">', '</p>');
    ?>

			<hr>

			</header><!-- .page-header -->

</div><!-- .large-12 .columns -->
</div><!-- .row -->

  <div class="row" role="main">

    <div class="large-7 columns inner_content">

		<main id="main" class="site-main" role="main">
示例#21
0
									<h1>Post Archive of <?php 
    the_author_meta($field2, $author_id);
    ?>
</h1>
									<p>
									<?php 
    the_author_meta($field, $author_id);
    ?>
									</p>
								<?php 
} else {
    ?>
									<?php 
    the_archive_title('<h1>', '</h1>');
    if (the_archive_description() != '') {
        the_archive_description('<p>', '</p>');
    } else {
        echo '<p>You are viewing all posts published for the month of ' . get_the_date('F, Y. ') . 'If you still can\'t find what you are looking for, try searching using the form at the right upper corner of the page.</p>';
    }
    ?>
								<?php 
}
?>
								</div>
							</div>
						</div>
					</div>
				</div>
		</div>
	</div>
	
示例#22
0
    /**
     * Add separator heading
     *
     * @since Photo Perfect 1.0
     */
    function photo_perfect_add_separator_title()
    {
        ?>
    <div id="separator-title">
      <?php 
        if (is_front_page()) {
            ?>
          <span class="title-tag">
            <img src="<?php 
            echo get_template_directory_uri();
            ?>
/images/title-tag.png" alt="" />
          </span><!-- .title-tag -->
          <?php 
        } elseif (is_archive()) {
            ?>
          <?php 
            the_archive_title('<h1 class="page-title">', '</h1>');
            ?>
          <?php 
            the_archive_description('<div class="taxonomy-description">', '</div>');
            ?>
          <?php 
        } elseif (is_search()) {
            ?>
          <h1 class="page-title"><?php 
            printf(esc_html__('Search Results for: %s', 'photo-perfect'), '<span>' . get_search_query() . '</span>');
            ?>
</h1>
          <?php 
        } elseif (is_singular()) {
            global $post;
            ?>
          <?php 
            if ('post' == get_post_type()) {
                ?>
            <div class="single-link-previous">
              <?php 
                echo get_previous_post_link('%link', '<i class="fa fa-long-arrow-left"></i><span class="screen-reader-text">%title</span>');
                ?>
            </div><!-- .single-link-previous -->
          <?php 
            }
            ?>

          <?php 
            the_title('<h1 class="entry-title">', '</h1>');
            ?>

          <?php 
            if ('post' == get_post_type()) {
                ?>
            <div class="single-link-next">
              <?php 
                echo get_next_post_link('%link', '<i class="fa fa-long-arrow-right"></i><span class="screen-reader-text">%title</span>');
                ?>
            </div><!-- .single-link-next -->
          <?php 
            }
            ?>
          <?php 
            if ('post' == get_post_type()) {
                ?>
            <div class="single-post-meta">
              <?php 
                photo_perfect_posted_on_custom();
                ?>
            </div><!-- .single-post-meta -->
          <?php 
            }
            ?>
          <?php 
        }
        ?>
    </div><!-- #separator-title -->
    <?php 
    }
示例#23
0
 * @package SlResponsive
 */
get_header();
?>

	<div id="primary" class="content-area col-md-9">
		<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="archive-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());
    }
    the_posts_navigation();
示例#24
0
 *
 * @link https://codex.wordpress.org/Template_Hierarchy
 */
// Exit if accessed directly
if (!defined('ABSPATH')) {
    exit;
}
// Include header
get_header();
the_archive_title('<header class="main-title"><div class="wrapper"><h1>', '</h1></div></header>');
?>
<section class="content">
	<div class="wrapper">
		<article>			
			<?php 
the_archive_description('<div class="category-description">', '</div>');
?>
	
			<h2><?php 
_e('Posts', 'ambase');
?>
</h2>
			<?php 
get_template_part('loop', 'index');
?>
		</article>
		<?php 
get_sidebar();
?>
	</div>
</section>			
示例#25
0
 /**
  * @param array $args
  * @return string
  */
 function get_archive_description($args = array())
 {
     $args = wp_parse_args($args, array('before' => '<div class="taxonomy-description">', 'after' => '</div>'));
     ob_start();
     the_archive_description($args['before'], $args['after']);
     return ob_get_clean();
 }
示例#26
0
/**
 * 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 
    }
}
示例#27
0
 * @package framework
 */
get_header();
?>

			<main id="content" role="main">
				<?php 
if (have_posts()) {
    ?>

						<header class="page-header">
							<?php 
    the_archive_title('<h1 class="page-title">', '</h1>');
    ?>
							<?php 
    the_archive_description('<p class="page-description">', '</p>');
    ?>
						</header><!-- .page-header -->

					<?php 
    // Start the loop.
    while (have_posts()) {
        the_post();
        // Include the template partial associated with the post format.
        get_template_part('templates/content', get_post_format());
    }
    // End the loop.
    the_posts_navigation();
} else {
    get_template_part('templates/content', 'none');
}
示例#28
0
 * @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 
    beagency_posts_navigation();
示例#29
0
?>

	<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
         * called content-___.php (where ___ is the Post Format name) and that will be used instead.
示例#30
0
 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;
 }