Browse Source

More autoformmating for standards.

develop
Chris Wiegman 2 years ago
parent
commit
b145d42f24
No known key found for this signature in database GPG Key ID: 63C83F823595106A
11 changed files with 32 additions and 30 deletions
  1. +3
    -3
      archive.php
  2. +2
    -1
      footer.php
  3. +2
    -1
      header.php
  4. +2
    -2
      home.php
  5. +1
    -1
      includes/classes/post-types/class-project.php
  6. +2
    -2
      includes/classes/widgets/class-latest-tweets.php
  7. +5
    -5
      includes/functions/template-tags.php
  8. +2
    -2
      index.php
  9. +3
    -3
      page-archive.php
  10. +9
    -9
      page-developer.php
  11. +1
    -1
      page.php

+ 3
- 3
archive.php View File

@ -90,7 +90,7 @@ get_header();
* 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;
Template_Tags\paging_nav();
@ -105,5 +105,5 @@ get_header();
</section><!-- #primary -->
<?php
get_sidebar();
get_footer();
get_sidebar();
get_footer();

+ 2
- 1
footer.php View File

@ -23,7 +23,8 @@ namespace CW\Theme\Templates\Footer;
<!-- .site-info -->
<div class="site-info">
<span class="copyright">&copy; <?php echo esc_html( date( 'Y', time() ) ); ?> Chris Wiegman</span> -
<span class="license"><a href="https://creativecommons.org/licenses/by-nc-nd/4.0/" target="_blank"><?php esc_html_e( 'Creative Commons Licensed', 'chriswiegman' ); ?></a></span>
<span class="license"><a href="https://creativecommons.org/licenses/by-nc-nd/4.0/"
target="_blank"><?php esc_html_e( 'Creative Commons Licensed', 'chriswiegman' ); ?></a></span>
-
<span class="poweredby"><?php esc_html_e( 'Powered by', 'chriswiegman' ); ?>
<a href="http://wordpress.org/" title="WordPress" target="_blank">WordPress</a></span>

+ 2
- 1
header.php View File

@ -45,7 +45,8 @@ namespace CW\Theme\Templates\Header;
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><span class="logo-chris">Chris</span><span class="logo-wiegman">Wiegman</span></a>
</div>
<div class="menu-toggle"><i class="menu-icon icon-menu"></i><?php esc_html_e( 'Menu', 'chriswiegman' ); ?></div>
<div class="menu-toggle"><i class="menu-icon icon-menu"></i><?php esc_html_e( 'Menu', 'chriswiegman' ); ?>
</div>
<nav id="site-navigation" class="main-navigation" role="navigation">
<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
</nav>

+ 2
- 2
home.php View File

@ -44,5 +44,5 @@ get_header();
</div><!-- #primary -->
<?php
get_sidebar();
get_footer();
get_sidebar();
get_footer();

+ 1
- 1
includes/classes/post-types/class-project.php View File

@ -139,7 +139,7 @@ class Project {
* @since 1.0.0
*
* @param int $post_id ID of the current post.
* @param \WP_POST $post The current post.
* @param \WP_POST $post The current post.
*
* @return int post ID on failure or void on success
*/

+ 2
- 2
includes/classes/widgets/class-latest-tweets.php View File

@ -48,7 +48,7 @@ class Latest_Tweets extends \WP_Widget {
* Handles AJAX request for retrieving latest tweets
*
* @param string $username The username to retrieve.
* @param bool $echo True to echo or false to return in an array.
* @param bool $echo True to echo or false to return in an array.
*
* @since 4.1.0
*
@ -258,7 +258,7 @@ class Latest_Tweets extends \WP_Widget {
*
* @since 4.1.0
*
* @param array $args Widget arguments.
* @param array $args Widget arguments.
* @param array $instance Saved values from database.
*/
public function widget( $args, $instance ) {

+ 5
- 5
includes/functions/template-tags.php View File

@ -216,11 +216,11 @@ add_action( 'save_post', 'CW\Theme\Functions\Template_Tags\category_transient_fl
*
* @since 5.0.0
*
* @param string|bool $zero Optional. String to display when no comments. Default false.
* @param string|bool $one Optional. String to display when only one comment is available. Default false.
* @param string|bool $more Optional. String to display when there are more than one comment. Default false.
* @param string|bool $zero Optional. String to display when no comments. Default false.
* @param string|bool $one Optional. String to display when only one comment is available. Default false.
* @param string|bool $more Optional. String to display when there are more than one comment. Default false.
* @param string|bool $css_class Optional. CSS class to use for comments. Default empty.
* @param string|bool $none Optional. String to display when comments have been turned off. Default false.
* @param string|bool $none Optional. String to display when comments have been turned off. Default false.
*
* @return null Returns null on single posts and pages.
*/
@ -311,7 +311,7 @@ function get_comments_popup_link( $zero = false, $one = false, $more = false, $c
* @since 5.0.0
*
* @param string|bool $zero Optional. Text for no comments. Default false.
* @param string|bool $one Optional. Text for one comment. Default false.
* @param string|bool $one Optional. Text for one comment. Default false.
* @param string|bool $more Optional. Text for more than one comment. Default false.
*
* @return string Number of comments

+ 2
- 2
index.php View File

@ -50,5 +50,5 @@ get_header();
</div><!-- #primary -->
<?php
get_sidebar();
get_footer();
get_sidebar();
get_footer();

+ 3
- 3
page-archive.php View File

@ -20,7 +20,7 @@ get_header();
<?php
while ( have_posts() ) :
the_post();
?>
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
@ -85,5 +85,5 @@ get_header();
</div><!-- #primary -->
<?php
get_sidebar();
get_footer();
get_sidebar();
get_footer();

+ 9
- 9
page-developer.php View File

@ -129,19 +129,19 @@ get_header();
<!-- end .archive-projects-->
<p class="projects-note">
<?php
esc_html_e(
'Note that "archived" projects are projects I am no longer involved in for
<?php
esc_html_e(
'Note that "archived" projects are projects I am no longer involved in for
one reason or another.', 'chriswiegman'
);
?>
</p>
);
?>
</p>
</div>
</div>
<?php
<?php
} // End of the loop.
?>
</article><!-- #post-## -->
@ -150,5 +150,5 @@ get_header();
</div><!-- #primary -->
<?php
get_sidebar();
get_footer();
get_sidebar();
get_footer();

+ 1
- 1
page.php View File

@ -33,7 +33,7 @@ get_header();
</div><!-- .entry-content -->
</article><!-- #post-## -->
<?php
<?php
endwhile; // End of the loop.
?>