示例#1
0
?>

    <article id="post-0" class="post not-found jumbotron">
        <header class="header">
            <h1 class="entry-title"><?php 
_e('Unauthorized Access', 'basicbootstrap');
?>
</h1>
        </header>
        <section class="entry-content">
            <h2 class="text-center"><?php 
_e('This is somewhat embarrassing, isn&rsquo;t it?', 'basicbootstrap');
?>
</h2>
            <p class="text-center">
                <?php 
_e('It seems you don&rsquo;t have the permissions to access what you&rsquo;re looking for. Perhaps searching can help.', 'basicbootstrap');
?>
            </p>
        </section>
        <?php 
get_search_form_hierarchical();
?>
    </article>

</div>

<?php 
get_sidebar_hierarchical('401');
get_footer_hierarchical('401');
<?php

/*
Template Name: Sidebar Left, 2 Columns
*/
$template = get_template_type();
$page_type = get_page_type();
get_header_hierarchical('page');
?>

<section id="content" role="main">

    <?php 
get_the_breadcrumb();
?>

    <?php 
get_template_part_hierarchical('partials/loop', 'left_sidebar');
?>

</section>

<?php 
get_sidebar_hierarchical('page');
get_footer_hierarchical('page');
示例#3
0
$template = get_template_type();
$page_type = get_page_type();
/*/
error_log('from file : '.__FILE__);
error_log('page type : '.$page_type);
error_log('applied template : '.$template);
//*/
get_header_hierarchical();
?>

<div id="content" role="main">

    <?php 
if (!is_front_page()) {
    ?>
        <?php 
    get_the_breadcrumb();
    ?>
    <?php 
}
?>
    <?php 
get_template_part_hierarchical('partials/loop');
?>

</div>

<?php 
get_sidebar_hierarchical();
get_footer_hierarchical();
示例#4
0
 * @since WP_Basic_Bootstrap 1.0
 */
$template = get_template_type();
$page_type = get_page_type();
$singular_type = get_singular_type();
/*/
error_log('from file : '.__FILE__);
error_log('page type : '.$page_type);
error_log('singular type : '.$singular_type);
error_log('applied template : '.$template);
//*/
get_header_hierarchical('single');
?>

<div id="content" role="main">

    <?php 
get_the_breadcrumb();
?>

    <?php 
get_template_part_hierarchical('partials/loop');
//get_template_part_singular('partials/loop');
?>

</div>

<?php 
get_sidebar_hierarchical('single');
get_footer_hierarchical('single');
示例#5
0
$page_type = get_page_type();
$show_on_front = get_option('show_on_front');
/*/
error_log('from file : '.__FILE__);
error_log('page type : '.$page_type);
error_log('applied template : '.$template);
//*/
get_header_hierarchical('home');
?>

<div id="content" role="main">

    <?php 
if ($show_on_front == 'page') {
    ?>
        <?php 
    get_the_breadcrumb();
    ?>
    <?php 
}
?>
    <?php 
get_template_part_hierarchical('partials/loop');
?>

</div>

<?php 
get_sidebar_hierarchical('home');
get_footer_hierarchical('home');
示例#6
0
    ?>
    <?php 
} else {
    ?>
        <article id="post-0" class="post no-results not-found">
            <header class="header">
                <h2 class="entry-title"><?php 
    _e('Nothing Found', 'basicbootstrap');
    ?>
</h2>
            </header>
            <section class="entry-content">
                <p><?php 
    _e('Sorry, nothing matched your search. Please try again.', 'basicbootstrap');
    ?>
</p>
                <?php 
    get_search_form_hierarchical();
    ?>
            </section>
        </article>
    <?php 
}
?>

</div>

<?php 
get_sidebar_hierarchical('search');
get_footer_hierarchical('search');
示例#7
0
        <h1 class="entry-title">
            <?php 
the_archive_title();
?>
        </h1>
        <?php 
if (get_basicbootstrap_mod('show_edit_links')) {
    ?>
        <section class="entry-meta blog-post-meta hidden-print">
            <?php 
    edit_category_link(__('Edit', 'basicbootstrap'), '<i class="fa fa-pencil-square fa-fw"></i>&nbsp;', '', get_cat_id(single_cat_title('', false)));
    ?>
        </section>
        <?php 
}
?>
        <?php 
the_archive_description('<div class="category-description lead">', '</div>');
?>
    </header>
    <hr />
    <?php 
get_template_part_hierarchical('partials/loop');
?>

</div>

<?php 
get_sidebar_hierarchical('category');
get_footer_hierarchical('category');
示例#8
0
 *      3.  page.php : When "front page" is set in the front page displays section.
 *      4.  index.php : When "your latest posts" is set in the front page displays section but home.php
 *          does not exist or when front page is set but page.php does not exist.
 *
 * Learn more: https://developer.wordpress.org/themes/basics/template-hierarchy/#front-page-display
 *
 * @package WP_Basic_Bootstrap
 * @since WP_Basic_Bootstrap 1.0
 */
$template = get_template_type();
$page_type = get_page_type();
/*/
error_log('from file : '.__FILE__);
error_log('page type : '.$page_type);
error_log('applied template : '.$template);
//*/
get_header_hierarchical('front-page');
?>

<div id="content" role="main">

    <?php 
get_template_part_hierarchical('partials/loop');
?>

</div>

<?php 
get_sidebar_hierarchical('front-page');
get_footer_hierarchical('front-page');
示例#9
0
if ('' != get_the_author_meta('user_description')) {
    ?>
        <div class="author-description">
            <?php 
    echo apply_filters('archive_meta', get_the_author_meta('user_description'));
    ?>
        </div>
        <?php 
}
?>
        <?php 
get_template_part_hierarchical('partials/meta/content-header');
?>
    </header>
    <div class="clearfix"></div>
    <hr />
    <h2>
        <?php 
echo sprintf(__('Posts by %s', 'basicbootstrap'), get_the_author());
?>
    </h2>
    <?php 
get_template_part_hierarchical('partials/loop');
?>

</div>

<?php 
get_sidebar_hierarchical('author');
get_footer_hierarchical('author');
示例#10
0
// marchpô
/*
        <?php if (get_basicbootstrap_mod('show_edit_links')) : ?>
        <section class="entry-meta blog-post-meta hidden-print">
            <?php
            edit_term_link(
                __('Edit', 'basicbootstrap'),
                '<i class="fa fa-pencil-square fa-fw"></i>&nbsp;',
                '</span>',
                get_term_by('slug', get_query_var('term'), get_query_var('taxonomy'))
            );
            ?>
        </section>
        <?php endif; ?>
*/
?>
        <?php 
the_archive_description('<div class="taxonomy-description lead">', '</div>');
?>
    </header>
    <hr />
    <?php 
get_template_part_hierarchical('partials/loop');
?>

</div>

<?php 
get_sidebar_hierarchical('taxonomy');
get_footer_hierarchical('taxonomy');
示例#11
0
//*/
get_header_hierarchical('archive');
?>

<div id="content" role="main">

    <?php 
get_the_breadcrumb();
?>

    <header class="header">
        <h1 class="entry-title">
        <?php 
the_archive_title();
?>
        </h1>
        <?php 
the_archive_description('<div class="archive-description lead">', '</div>');
?>
    </header>
    <hr />
    <?php 
get_template_part_hierarchical('partials/loop');
?>

</div>

<?php 
get_sidebar_hierarchical('archive');
get_footer_hierarchical('archive');
示例#12
0
 * Learn more: https://developer.wordpress.org/themes/basics/template-hierarchy/#attachment
 *
 * @package WP_Basic_Bootstrap
 * @since WP_Basic_Bootstrap 1.0
 */
$template = get_template_type();
$page_type = get_page_type();
/*/
error_log('from file : '.__FILE__);
error_log('page type : '.$page_type);
error_log('applied template : '.$template);
//*/
get_header_hierarchical('attachment');
?>

<div id="content" role="main">

    <?php 
get_the_breadcrumb();
?>

    <?php 
get_template_part_hierarchical('partials/loop');
?>

</div>

<?php 
get_sidebar_hierarchical('attachment');
get_footer_hierarchical('attachment');
示例#13
0
    <?php 
get_the_breadcrumb();
?>

    <header class="header">
        <h1 class="entry-title">
            <?php 
the_archive_title();
?>
        </h1>
        <section class="entry-meta blog-post-meta">
            <?php 
edit_link_if_so('tag');
?>
        </section>
        <?php 
the_archive_description('<div class="tag-description lead">', '</div>');
?>
    </header>
    <hr />
    <?php 
get_template_part_hierarchical('partials/loop');
?>

</div>

<?php 
get_sidebar_hierarchical('tag');
get_footer_hierarchical('tag');