Skip to content

Commit

Permalink
Revamp of Standards theme
Browse files Browse the repository at this point in the history
Updated theme with the latest U.S. Web Design standards code. Updated all files and included Gulp. Sass styles have been included as well.
  • Loading branch information
lavekyl committed Sep 28, 2017
1 parent f107d68 commit 264e212
Show file tree
Hide file tree
Showing 342 changed files with 22,436 additions and 5,801 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
/node_modules
92 changes: 49 additions & 43 deletions 404.php
Expand Up @@ -8,49 +8,55 @@
*/

get_header(); ?>

<section id="primary" class="usa-grid usa-section">
<div class="usa-width-one-third">
<?php get_sidebar(); ?>
</div>
<div class="usa-width-two-thirds">
<p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'standards' ); ?></p>

<?php
get_search_form();

the_widget( 'WP_Widget_Recent_Posts' );

// Only show the widget if site has multiple categories.
if ( standards_categorized_blog() ) :
?>

<div class="widget widget_categories">
<h2 class="widget-title"><?php esc_html_e( 'Most Used Categories', 'standards' ); ?></h2>
<ul>
<?php
wp_list_categories( array(
'orderby' => 'count',
'order' => 'DESC',
'show_count' => 1,
'title_li' => '',
'number' => 10,
) );
?>
</ul>
</div><!-- .widget -->

<?php
endif;

/* translators: %1$s: smiley */
$archive_content = '<p>' . sprintf( esc_html__( 'Try looking in the monthly archives. %1$s', 'standards' ), convert_smilies( ':)' ) ) . '</p>';
the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=</h2>$archive_content" );

the_widget( 'WP_Widget_Tag_Cloud' );
?>
</div>
</section>
<main id="main-content">

<section class="usa-grid usa-section">
<div class="usa-width-one-third">
<?php get_sidebar(); ?>
</div>
<div class="usa-width-two-thirds">
<header class="page-header">
<h1 class="page-title"><?php esc_html_e( 'Oops! That page can&rsquo;t be found.', 'the_standards' ); ?></h1>
</header><!-- .page-header -->

<div class="page-content">
<p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'the_standards' ); ?></p>

<?php
get_search_form();

the_widget( 'WP_Widget_Recent_Posts' );
?>

<div class="widget widget_categories">
<h2 class="widget-title"><?php esc_html_e( 'Most Used Categories', 'the_standards' ); ?></h2>
<ul>
<?php
wp_list_categories( array(
'orderby' => 'count',
'order' => 'DESC',
'show_count' => 1,
'title_li' => '',
'number' => 10,
) );
?>
</ul>
</div><!-- .widget -->

<?php

/* translators: %1$s: smiley */
$archive_content = '<p>' . sprintf( esc_html__( 'Try looking in the monthly archives. %1$s', 'the_standards' ), convert_smilies( ':)' ) ) . '</p>';
the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=</h2>$archive_content" );

the_widget( 'WP_Widget_Tag_Cloud' );
?>

</div><!-- .page-content -->
</div>
</section>

</main><!-- #main-content -->

<?php
get_footer();
339 changes: 0 additions & 339 deletions LICENSE

This file was deleted.

6 changes: 4 additions & 2 deletions README.md
Expand Up @@ -4,11 +4,13 @@ The Standards
The Standards is a WordPress theme that is based on the U.S. Web Design Standards (https://standards.usa.gov/). While it is minimal, it does provide some elements right out of the box that can be used or removed. The idea is for developers to create additional custom functionality in their own version of this theme, while utilizing or modifying what is already provided. Here is what's included:

* Well commented WordPress page templates
* Numerous widgets (top widget, header right widget, above footer widget, 3 footer widgets, and a bottom footer widget)
* Sidebar and Hero widgets
* Toggled mobile navigation
* Mobile friendly sub-navigation
* Custom logo option
* Customizer options for header, navigation, body, and footer background colors as well as options for header and background images
* Customizer options for social media links, contact information, and a checkbox to determine if it's an official government website
* A custom post type for Features
* Includes Gulp with Sass, Plumber, Notify, Autoprefixer, Sourcemaps, Imagemin, JShint, Uglify, CSS Nano, and Concat
* The U.S. Web Design Standards
* Licensed under GPLv2 or later

Expand Down
58 changes: 34 additions & 24 deletions archive.php
Expand Up @@ -6,38 +6,48 @@
*
* @package The_Standards
*/

get_header(); ?>
<main id="main-content">
<section class="usa-grid usa-section">
<aside class="usa-width-one-fourth usa-layout-docs-sidenav">
<?php get_sidebar(); ?>
</aside><!-- .usa-width-one-fourth .usa-layout-docs-sidenav -->
<div class="usa-width-three-fourths usa-layout-docs-main_content">

<?php
if ( have_posts() ) : ?>

<header class="page-header">
<?php
the_archive_title( '<h1 class="page-title">', '</h1>' );
the_archive_description( '<div class="archive-description">', '</div>' );
?>
</header><!-- .page-header -->

<?php
/* Start the Loop */
while ( have_posts() ) : the_post();

<section id="primary" class="usa-grid usa-section">
<div class="usa-width-one-third">
<?php get_sidebar(); ?>
</div>
<div class="usa-width-two-thirds">
<?php
if ( have_posts() ) :

/* Start the Loop */
while ( have_posts() ) : the_post();
/*
* Include the Post-Format-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( 'template-parts/content', get_post_format() );

/*
* Include the Post-Format-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( 'template-parts/content', get_post_format() );
endwhile;

endwhile;
the_posts_navigation();

the_posts_navigation();
else :

else :
get_template_part( 'template-parts/content', 'none' );

get_template_part( 'template-parts/content', 'none' );
endif; ?>

endif; ?>
</div>
</section>
</div>
</section>
</main><!-- #main-content -->

<?php
get_footer();
60 changes: 0 additions & 60 deletions assets/css/site.css

This file was deleted.

0 comments on commit 264e212

Please sign in to comment.