* @since 1.0.0 */ get_header(); ?> <div <?php alpha_attr('site-inner'); ?> > <?php tha_content_before(); ?> <main <?php alpha_attr('content'); ?> > <?php tha_content_top(); ?> <?php if (have_posts()) { ?> <?php tha_content_while_before(); ?>
<?php /** * Footer Widgets Sidebar Template * * @package Alpha\TemplateParts * @subpackage Alpha * @author Robert Neu * @copyright Copyright (c) 2015, WP Site Care, LLC * @since 1.0.0 */ ?> <div <?php alpha_attr('footer-widgets'); ?> > <div <?php alpha_attr('wrap', 'footer-widgets'); ?> > <?php dynamic_sidebar('footer-widgets'); ?> </div> </div><!-- #footer-widgets -->
<header <?php alpha_attr('entry-header'); ?> > <h1 <?php alpha_attr('entry-title'); ?> > <?php esc_attr_e('Oops! That page can’t be found.', 'alpha'); ?> </h1> </header><!-- .page-header --> <div <?php alpha_attr('entry-content'); ?> > <p><?php esc_attr_e('It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'alpha'); ?> </p> <?php get_search_form(); ?> <?php the_widget('WP_Widget_Recent_Posts'); ?>
* @package Alpha\TemplateParts * @subpackage Alpha * @author Robert Neu * @copyright Copyright (c) 2015, WP Site Care, LLC * @since 1.0.0 */ tha_header_before(); ?> <header <?php alpha_attr('header'); ?> > <div <?php alpha_attr('wrap', 'header'); ?> > <?php tha_header_top(); ?> <?php tha_header_bottom(); ?> </div><!-- .wrap --> </header><!-- #header -->
<header <?php alpha_attr('comment-meta'); ?> > <cite <?php alpha_attr('comment-author'); ?> ><?php comment_author_link(); ?> </cite> <a <?php alpha_attr('comment-permalink'); ?> > <time <?php alpha_attr('comment-published'); ?> > <?php printf(esc_attr__('%s ago', 'alpha'), human_time_diff(get_comment_time('U'), current_time('timestamp'))); ?> </time> </a> <?php edit_comment_link(); ?> </header><!-- .comment-meta --> </article>
<?php /** * The secondary nav menu template. * * @package Alpha\TemplateParts * @subpackage Alpha * @author Robert Neu * @copyright Copyright (c) 2015, WP Site Care, LLC * @since 1.0.0 */ ?> <nav <?php alpha_attr('menu', 'secondary'); ?> > <span id="menu-secondary-title" class="screen-reader-text"> <?php // Translators: %s is the nav menu name. This is the nav menu title shown to screen readers. printf(_x('%s', 'nav menu title', 'alpha'), alpha_get_menu_location_name('secondary')); ?> </span> <?php wp_nav_menu(array('theme_location' => 'secondary', 'container' => '', 'menu_id' => 'secondary', 'menu_class' => 'nav-menu secondary', 'fallback_cb' => '', 'items_wrap' => '<div ' . alpha_get_attr('wrap', 'secondary-menu') . '><ul id="%s" class="%s">%s</ul></div>')); ?> </nav><!-- #menu-secondary -->
* @author Robert Neu * @copyright Copyright (c) 2015, WP Site Care, LLC * @since 1.0.0 */ if (is_taxonomy_hierarchical(get_queried_object()->taxonomy)) { ?> <?php $terms = wp_list_categories(array('taxonomy' => get_queried_object()->taxonomy, 'child_of' => get_queried_object_id(), 'depth' => 1, 'title_li' => false, 'show_option_none' => false, 'echo' => false)); ?> <?php if (!empty($terms)) { ?> <nav <?php alpha_attr('menu', 'sub-terms'); ?> > <ul id="menu-sub-terms-items" class="menu-items"> <?php echo $terms; ?> </ul><!-- .sub-terms --> </nav><!-- .menu --> <?php } }
<time <?php alpha_attr('comment-published'); ?> > <?php printf(esc_attr__('%s ago', 'alpha'), human_time_diff(get_comment_time('U'), current_time('timestamp'))); ?> </time> </a> <?php edit_comment_link(); ?> </header><!-- .comment-meta --> <div <?php alpha_attr('comment-content'); ?> > <?php if (!$comment->comment_approved) { ?> <p class="alert"> <?php esc_attr_e('Your comment is awaiting moderation.', 'alpha'); ?> </p> <?php } ?> <?php comment_text();
<?php /** * Primary Sidebar Template * * @package Alpha\TemplateParts * @subpackage Alpha * @author Robert Neu * @copyright Copyright (c) 2015, WP Site Care, LLC * @since 1.0.0 */ tha_sidebars_before(); ?> <aside <?php alpha_attr('sidebar', 'primary'); ?> > <?php tha_sidebar_top(); ?> <span id="sidebar-primary-title" class="screen-reader-text"><?php // Translators: %s is the sidebar name. This is the sidebar title shown to screen readers. printf(_x('%s', 'sidebar title', 'alpha'), alpha_get_sidebar_name('primary')); ?> </span> <?php if (is_active_sidebar('primary')) {
* @package Alpha\TemplateParts * @subpackage Alpha * @author Robert Neu * @copyright Copyright (c) 2015, WP Site Care, LLC * @since 1.0.0 */ tha_footer_before(); ?> <footer <?php alpha_attr('footer'); ?> > <div <?php alpha_attr('wrap', 'footer'); ?> > <?php tha_footer_top(); ?> <?php tha_footer_bottom(); ?> </div><!-- .wrap --> </footer><!-- .footer -->
* @package Alpha\Templates * @subpackage Alpha * @author Robert Neu * @copyright Copyright (c) 2015, WP Site Care, LLC * @since 1.0.0 */ ?> <!DOCTYPE html> <?php tha_html_before(); ?> <html <?php language_attributes('html'); ?> > <head> <?php tha_head_top(); wp_head(); tha_head_bottom(); ?> </head> <body <?php alpha_attr('body'); ?> > <?php tha_body_top();
<?php /** * The primary nav menu template. * * @package Alpha\TemplateParts * @subpackage Alpha * @author Robert Neu * @copyright Copyright (c) 2015, WP Site Care, LLC * @since 1.0.0 */ ?> <nav <?php alpha_attr('menu', 'primary'); ?> > <span id="menu-primary-title" class="screen-reader-text"> <?php // Translators: %s is the nav menu name. This is the nav menu title shown to screen readers. printf(_x('%s', 'nav menu title', 'alpha'), alpha_get_menu_location_name('primary')); ?> </span> <?php wp_nav_menu(array('theme_location' => 'primary', 'container' => '', 'menu_id' => 'primary', 'menu_class' => 'nav-menu primary', 'fallback_cb' => '', 'items_wrap' => '<div ' . alpha_get_attr('wrap', 'primary-menu') . '><ul id="%s" class="%s">%s</ul></div>')); ?> </nav><!-- #menu-primary -->