Skip to content

Commit

Permalink
Nightly commit
Browse files Browse the repository at this point in the history
Cleanup; WPCS; standardized textdomain, class names, function names, and other references to "themewpugph"; Ignored vendor and wpcs folders; Fixed extra closing tag in archive.php; Fixed main section margin.
  • Loading branch information
apzeero committed May 23, 2019
1 parent a2eaf0e commit 44c9db6
Show file tree
Hide file tree
Showing 29 changed files with 620 additions and 450 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
*.map
scss/*.css
site.css
vendor/*
wpcs/*
24 changes: 13 additions & 11 deletions 404.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@
*/

get_header(); ?>

<main id="primary" class="site-main">

<section class="error-404 not-found">

<header class="page-header">
<h1 class="page-title"><?php esc_html_e( 'Oops! That page can&rsquo;t be found.', 'themewpugph' ); ?></h1>
</header><!-- .page-header -->
Expand All @@ -21,22 +22,23 @@

<?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', 'themewpugph' ); ?></h2>
<ul>
<?php
wp_list_categories( array(
'orderby' => 'count',
'order' => 'DESC',
'show_count' => 1,
'title_li' => '',
'number' => 10,
) );
?>
<?php
wp_list_categories(
array(
'orderby' => 'count',
'order' => 'DESC',
'show_count' => 1,
'title_li' => '',
'number' => 10,
)
);
?>
</ul>
</div><!-- .widget -->

Expand Down
18 changes: 11 additions & 7 deletions archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
<main id="primary" class="site-main">

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

<header class="page-header">
<?php
Expand All @@ -22,8 +23,10 @@
</header><!-- .page-header -->

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

the_post();

/*
* Include the Post-Format-specific template for the content.
Expand All @@ -36,13 +39,14 @@

the_posts_navigation();

else :
else :

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

endif; ?>
endif;
?>

</main>><!-- #primary -->
</main><!-- #primary -->

<?php
get_footer();
23 changes: 14 additions & 9 deletions footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,33 @@
* @package ThemeWPUGPH
*/

$org_name = get_option('teamwpugph_org_name', '');
$org_year = get_option('teamwpugph_org_year', '');
$org_name = get_option( 'themewpugph_org_name', '' );
$org_year = get_option( 'themewpugph_org_year', '' );

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

<footer id="colophon" class="site-footer uk-section uk-section-default uk-section-small">
<div class="uk-container">
<p class="uk-text-small uk-text-center">
<?php printf( esc_html__('Copyright &copy; %s&ndash;%s %s', 'themewpugph' ), esc_html__( $org_year, 'themewpugph' ), date( "Y" ), esc_html__( $org_name, 'themewpugph' ) ); ?>
<?php
/* translators: %s: Year founded, i.e. 1999; %s: current year; %s: name of organisation */
printf( esc_html__( 'Copyright &copy; %1$s&ndash;%2$s %3$s', 'themewpugph' ), esc_html( $org_year ), esc_html( date( 'Y' ) ), esc_html( $org_name ) );
?>
&emsp;
<a href="<?php echo esc_url( __( 'https://wordpress.org/', '_s' ) ); ?>">
<?php
/* translators: %s: CMS name, i.e. WordPress. */
printf( esc_html__( 'Proudly powered by %s', 'themewpugph' ), 'WordPress' );
?></a>
?>
</a>
<span class="sep">&emsp;|&emsp;</span>
<?php
/* translators: 1: Theme name, 2: Theme author. */
printf( esc_html__( 'Theme: %s', 'themewpugph' ), '<a href="' . TEAMWPUGPH_HOMEPAGE . '">' . TEAMWPUGPH_TEAMNAME . '</a>' );
?>
/* translators: 1: Theme name, 2: Theme author. */
printf( esc_html__( 'Theme: %s', 'themewpugph' ), '<a href="' . esc_attr( themewpugph_HOMEPAGE ) . '">' . esc_html( themewpugph_TEAMNAME ) . '</a>' );
?>
</p>
</div>
</footer><!-- #colophon -->
Expand All @@ -39,4 +44,4 @@

</body>

</html>
</html>
Loading

0 comments on commit 44c9db6

Please sign in to comment.