* Template for displaying 401 pages (Unauthorized) * * This is a new template created for the theme. * It is used and displayed by the `includes/error-pages.php` library. * * @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('401'); ?> <div id="content" role="main"> <?php get_the_breadcrumb(); ?> <article id="post-0" class="post not-found jumbotron"> <header class="header"> <h1 class="entry-title"><?php _e('Unauthorized Access', 'basicbootstrap'); ?> </h1> </header>
<?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');
* WordPress will look for this file when the posts page is set in the front page displays section. * 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. * * @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(); ?> <div id="content" role="main"> <?php if (!is_front_page()) { ?> <?php get_the_breadcrumb(); ?> <?php } ?> <?php get_template_part_hierarchical('partials/loop');
* * Learn more: https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post * * @package WP_Basic_Bootstrap * @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>
* This will handle the blog page if it is defined on a post in the "Settings > Reading" admin panel. * * Learn more: http://codex.wordpress.org/Template_Hierarchy * * @package WP_Basic_Bootstrap * @since WP_Basic_Bootstrap 1.0 */ $template = get_template_type(); $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');
* 1. search.php * 2. index.php * * Learn more: https://developer.wordpress.org/themes/basics/template-hierarchy/#search-result * * @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('search'); ?> <div id="content" role="main"> <?php get_the_breadcrumb(); ?> <header class="header"> <h1 class="entry-title"> <?php printf(__('Search results for "%s"', 'basicbootstrap'), '<span>' . get_search_query() . '</span>'); ?> </h1> </header>
* 4. archive.php * 5. index.php * * Learn more: https://developer.wordpress.org/themes/basics/template-hierarchy/#category * * @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('category'); ?> <div id="content" role="main"> <?php get_the_breadcrumb(); ?> <header class="header"> <h1 class="entry-title"> <?php the_archive_title(); ?> </h1> <?php
* WordPress will look for this file when the posts page is set in the front page displays section. * 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');
* 4. archive.php * 5. index.php * * Learn more: https://developer.wordpress.org/themes/basics/template-hierarchy/#author-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('author'); ?> <div id="content" role="main"> <?php get_the_breadcrumb(); ?> <header class="header"> <div class="author-avatar pull-left"> <?php echo get_avatar(get_the_author_meta('email'), '160', '', esc_attr(get_the_author()), array('class' => 'thumbnail')); ?> </div> <h1 class="entry-title author">
* 4. archive.php * 5. index.php * * Learn more: https://developer.wordpress.org/themes/basics/template-hierarchy/#custom-taxonomies * * @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('taxonomy'); ?> <div id="content" role="main"> <?php get_the_breadcrumb(); ?> <header class="header"> <h1 class="entry-title"> <?php the_archive_title(); ?> </h1> <?php
* 2. archive.php * 3. index.php * * Learn more: https://developer.wordpress.org/themes/basics/template-hierarchy/#custom-post-types * * @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('archive'); ?> <div id="content" role="main"> <?php get_the_breadcrumb(); ?> <header class="header"> <h1 class="entry-title"> <?php the_archive_title(); ?> </h1> <?php
* 4. single.php * 5. index.php * * 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
* 4. archive.php * 5. index.php * * Learn more: https://developer.wordpress.org/themes/basics/template-hierarchy/#tag * * @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('tag'); ?> <div id="content" role="main"> <?php get_the_breadcrumb(); ?> <header class="header"> <h1 class="entry-title"> <?php the_archive_title(); ?> </h1> <section class="entry-meta blog-post-meta">