/**
     * Highlight current location in the archive
     *
     * @since Esplanade 1.0
     */
    function esplanade_current_location()
    {
        if (!is_home() && !is_singular()) {
            if (is_author()) {
                $archive = 'author';
            } elseif (is_category() || is_tag()) {
                $archive = get_queried_object()->taxonomy;
                $archive = str_replace('post_', '', $archive);
            } else {
                $archive = '';
            }
            ?>
		<hgroup id="current-location">
			<h6 class="prefix-text"><?php 
            _e('Currently browsing', 'esplanade');
            ?>
 <?php 
            echo $archive;
            ?>
</h6>
			<<?php 
            esplanade_title_tag('location');
            ?>
 class="page-title">
				<?php 
            if (is_search()) {
                __('Search results for', 'esplanade') . ': &quot;' . get_search_query() . '&quot;';
            } elseif (is_author()) {
                $author = get_userdata(get_query_var('author'));
                echo $author->display_name;
            } elseif (is_year()) {
                echo get_query_var('year');
            } elseif (is_month()) {
                echo get_the_time('F Y');
            } elseif (is_day()) {
                echo get_the_time('F j, Y');
            } else {
                single_term_title('');
            }
            ?>
			</<?php 
            esplanade_title_tag('location');
            ?>
>
		</hgroup>
		<?php 
        }
    }
Exemple #2
0
}
?>
			<<?php 
esplanade_title_tag('post');
?>
 class="entry-title"><a href="<?php 
the_permalink();
?>
" rel="bookmark" title="<?php 
the_title_attribute();
?>
"><?php 
the_title();
?>
</a></<?php 
esplanade_title_tag('post');
?>
>
	<?php 
if (is_paged() || !esplanade_is_teaser()) {
    ?>
			<aside class="entry-meta">
				<a href="<?php 
    the_permalink();
    ?>
" rel="bookmark" title="<?php 
    the_title_attribute();
    ?>
"><?php 
    the_time(get_option('date_format'));
    ?>
?>
</a></<?php 
esplanade_title_tag('site');
?>
>
			<?php 
if (!is_active_sidebar(1)) {
    ?>
				<<?php 
    esplanade_title_tag('desc');
    ?>
 id="site-description"><?php 
    bloginfo('description');
    ?>
</<?php 
    esplanade_title_tag('desc');
    ?>
>
			<?php 
}
?>
			<?php 
get_sidebar('header');
?>
			<div class="clear"></div>
			<?php 
if ('' != get_header_image() || false != get_header_image()) {
    ?>
				<a href="<?php 
    echo home_url('/');
    ?>