<?php global $NHP_Options;?>
<div class="row">
    <div class="twelve columns">
        <div id="page-title">
	        <?php if (!($NHP_Options->get('back_button_show') == 'hide')):?>
            <a href="javascript:history.back()" class="back"></a>
	        <?php endif;?>
            <div class="page-title-inner">
                <h1 class="page-title">
                    <?php
                    if (is_home()) {
                        if (get_option('page_for_posts', true)) {
                            echo get_the_title(get_option('page_for_posts', true));
                        } else {
                            _e('Latest Posts', 'crum');
                        }

                    } elseif (is_archive()) {
                        $term = get_term_by('slug', get_query_var('term'), get_query_var('taxonomy'));
                        if ($term) {
                            echo $term->name;
                        } elseif (is_post_type_archive()) {
                            echo get_queried_object()->labels->name;
                        } elseif (is_day()) {
                            printf(__('Daily Archives: %s', 'crum'), get_the_date());
                        } elseif (is_month()) {
                            printf(__('Monthly Archives: %s', 'crum'), get_the_date('F Y'));
                        } elseif (is_year()) {
                            printf(__('Yearly Archives: %s', 'crum'), get_the_date('Y'));
                        } elseif (is_author()) {
                            global $post;
                            $author_id = $post->post_author;

                            $curauth = (get_query_var('author_name')) ? get_user_by('slug', get_query_var('author_name')) : get_userdata(get_query_var('author'));
                            $google_profile = get_the_author_meta('google_profile', $curauth->ID);
                            if ($google_profile) {
                                printf(__('Author Archives:', 'crum'));
                                echo '<a href="' . esc_url($google_profile) . '" rel="me">' . $curauth->display_name . '</a>'; ?></a>
                                <?php } else {
                                printf(__('Author Archives: %s', 'crum'), get_the_author_meta('display_name', $author_id));
                            }

                        } else {
                            single_cat_title();
                        }
                    } elseif (is_search()) {
                        printf(__('Search Results for %s', 'crum'), get_search_query());
                    } elseif (is_404()) {
                        _e('File Not Found', 'crum');
                    } else {
                        the_title();
                    }
                    ?>
                </h1>
                <div class="breadcrumbs">

                    <?php

                    function custom_bbp_breadcrumb() {
                        $args['before']  = '<nav id="crumbs" xmlns:v="http://rdf.data-vocabulary.org/#">';
                        $args['after']   = '</nav>';
                        $args['sep']     = '<span class="del">·</span>';
                        $args['home_text'] = __( 'Home', 'crum' );
                        return $args;
                    }
                    add_filter('bbp_before_get_breadcrumb_parse_args', 'custom_bbp_breadcrumb' );

                    if (function_exists('bbp_breadcrumb')){
                        bbp_breadcrumb();
                    }
                    ?>

                </div>
            </div>


        </div>
    </div>
</div>