Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: WordPress/gutenberg-starter-theme
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: wpugph/themewpugph
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.

Commits on Apr 23, 2019

  1. Set theme jekyll-theme-cayman

    apzeero committed Apr 23, 2019
    Copy the full SHA
    32fca12 View commit details
  2. Update README.md

    Updated title and added roadmap.
    apzeero authored Apr 23, 2019
    Copy the full SHA
    48e9c31 View commit details
  3. Added UIkit submodule

    apzeero committed Apr 23, 2019
    Copy the full SHA
    bb40832 View commit details
  4. Copy the full SHA
    5f46cfe View commit details

Commits on Apr 24, 2019

  1. Copy the full SHA
    4571141 View commit details

Commits on Apr 28, 2019

  1. Added A11y to v1 roadmap

    apzeero authored Apr 28, 2019
    Copy the full SHA
    98cfac7 View commit details

Commits on Apr 29, 2019

  1. Initial commit

    Integrated UIKit 3 styles and JavaScript. Added default header and custom menu. Added footer and custom settings for organization name and copyright date. Minor typos.
    apzeero committed Apr 29, 2019
    Copy the full SHA
    8856099 View commit details
  2. Copy the full SHA
    0fe1cbf View commit details
  3. Fixed error: Undefined variable: item_output in /app/public/wp-conten…

    …t/themes/team-wp/inc/custom-menu.php on line 103
    apzeero committed Apr 29, 2019
    Copy the full SHA
    8039589 View commit details
  4. Copy the full SHA
    4a6da5f View commit details
  5. Copy the full SHA
    230f6d9 View commit details
  6. Copy the full SHA
    86537eb View commit details
  7. Added UIKit SCSS theme files

    apzeero committed Apr 29, 2019
    Copy the full SHA
    d68f29f View commit details
  8. Copy the full SHA
    b174530 View commit details
  9. Copy the full SHA
    fc0c53d View commit details

Commits on May 10, 2019

  1. Copy the full SHA
    244bef0 View commit details

Commits on May 11, 2019

  1. Copy the full SHA
    12981f3 View commit details
  2. Fixed header menu

    apzeero committed May 11, 2019
    Copy the full SHA
    e223f38 View commit details
  3. Update README.md

    apzeero authored May 11, 2019
    Copy the full SHA
    7a37557 View commit details
  4. Copy the full SHA
    7f91e6e View commit details
  5. Made style.css independent of actual style sheets

    Cleaner, used site.scss so style.css isn't modified every SCSS compile.
    apzeero committed May 11, 2019
    Copy the full SHA
    6fed684 View commit details

Commits on May 12, 2019

  1. Copy the full SHA
    1925fbe View commit details
  2. Copy the full SHA
    d99922a View commit details
  3. Copy the full SHA
    dbae4e3 View commit details
  4. Stylesheet cleanup

    Removed blocks.css, in favor of creating own blocks styling. Added table of contents and headings to site.scss for improved readability.
    apzeero committed May 12, 2019
    Copy the full SHA
    ce4b46a View commit details

Commits on May 13, 2019

  1. Fix Jekyll build error

    apzeero committed May 13, 2019
    Copy the full SHA
    35fc21b View commit details

Commits on May 17, 2019

  1. Updated Comment Section

    erwinpagulong committed May 17, 2019
    Copy the full SHA
    9dfe424 View commit details
  2. Copy the full SHA
    78c0b3b View commit details
  3. Update comments.php

    erwinpagulong authored May 17, 2019
    Copy the full SHA
    071b660 View commit details

Commits on May 20, 2019

  1. Update README.md

    apzeero authored May 20, 2019
    Copy the full SHA
    954b3c0 View commit details
  2. Merge branch 'master' of https://github.com/erwinpagulong/themewpugph

    …into erwinpagulong-master
    apzeero committed May 20, 2019
    Copy the full SHA
    6de1697 View commit details
  3. Update README.md

    Added installation instructions.
    apzeero authored May 20, 2019
    Copy the full SHA
    18f2048 View commit details

Commits on May 21, 2019

  1. Revised code

    Improved code structure, @see https://getuikit.com/docs/form. Added correct textdomain for i18n functions. Revised according to WordPress Coding Standards. Set input field width to "uk-form-width-large" for usablity. Updated global border color to ensure visiblity on white background.
    
    Recompile site.scss after update.
    apzeero committed May 21, 2019
    Copy the full SHA
    8e54003 View commit details
  2. Copy the full SHA
    4681f14 View commit details
  3. Copy the full SHA
    2f5216e View commit details
  4. Copy the full SHA
    ec89d0a View commit details

Commits on May 22, 2019

  1. Fix show-up header behavior

    apzeero committed May 22, 2019
    Copy the full SHA
    a2eaf0e View commit details

Commits on May 23, 2019

  1. Nightly commit

    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.
    apzeero committed May 23, 2019
    Copy the full SHA
    44c9db6 View commit details
  2. Fixed footer credit constants

    apzeero committed May 23, 2019
    Copy the full SHA
    0a318f9 View commit details

Commits on May 25, 2019

  1. Copy the full SHA
    15790ba View commit details
  2. Copy the full SHA
    068e434 View commit details
  3. Copy the full SHA
    38f5030 View commit details

Commits on May 28, 2019

  1. Added composer.jsonMoved uikit to vendor folder. Added Carbon Fields.…

    … Updated installation notes in README.md. Deleted lib folder.
    apzeero committed May 28, 2019
    Copy the full SHA
    439f8dd View commit details

Commits on May 29, 2019

  1. Initial core block override and custom blocks

    - Add Carbon Fields custom-panel block.
    - Overide core/quote block
    - PHP dependency cleanup.
    - Remove extra spaces in README.md
    - Initial folder structure
    apzeero committed May 29, 2019
    Copy the full SHA
    80a2569 View commit details
  2. Initial core block override and custom blocks- Add Carbon Fields cust…

    …om-panel block.- Overide core/quote block- PHP dependency cleanup.- Remove extra spaces in README.md- Initial folder structure
    apzeero committed May 29, 2019
    Copy the full SHA
    97e214b View commit details
  3. Resolved merge conficts

    apzeero committed May 29, 2019
    Copy the full SHA
    6241ac4 View commit details

Commits on Jun 7, 2019

  1. Copy the full SHA
    2eb1035 View commit details
Showing with 4,771 additions and 1,469 deletions.
  1. +6 −0 .gitignore
  2. +18 −16 404.php
  3. +40 −4 README.md
  4. +1 −0 _config.yml
  5. +12 −8 archive.php
  6. +91 −15 comments.php
  7. +13 −0 composer.json
  8. +326 −0 composer.lock
  9. +0 −190 css/blocks.css
  10. +28 −14 footer.php
  11. +116 −68 functions.php
  12. +57 −32 header.php
  13. +78 −0 inc/class-themewpugph-add-settings-field.php
  14. +96 −0 inc/class-themewpugph-comments.php
  15. +141 −0 inc/class-uikit3-walker-nav-menu.php
  16. +28 −0 inc/custom-blocks.php
  17. +38 −32 inc/custom-header.php
  18. +78 −0 inc/custom-settings.php
  19. +23 −17 inc/customizer.php
  20. +9 −0 inc/defines.php
  21. +6 −6 inc/jetpack.php
  22. +5 −5 inc/template-functions.php
  23. +18 −14 inc/template-tags.php
  24. +29 −0 inc/theme-options.php
  25. +12 −7 index.php
  26. 0 languages/{gutentheme.pot → teampwp.pot}
  27. +4 −2 page.php
  28. +3 −3 readme.txt
  29. BIN screenshot.png
  30. +3 −0 scss/_import-mixins.scss
  31. +80 −0 scss/_import-variables.scss
  32. +59 −0 scss/accordion.scss
  33. +46 −0 scss/alert.scss
  34. +14 −0 scss/align.scss
  35. +14 −0 scss/animation.scss
  36. +53 −0 scss/article.scss
  37. +14 −0 scss/background.scss
  38. +29 −0 scss/badge.scss
  39. +121 −0 scss/base.scss
  40. +45 −0 scss/breadcrumb.scss
  41. +162 −0 scss/button.scss
  42. +127 −0 scss/card.scss
  43. +29 −0 scss/close.scss
  44. +14 −0 scss/column.scss
  45. +69 −0 scss/comment.scss
  46. +14 −0 scss/container.scss
  47. +53 −0 scss/countdown.scss
  48. +32 −0 scss/description-list.scss
  49. +49 −0 scss/divider.scss
  50. +52 −0 scss/dotnav.scss
  51. +14 −0 scss/drop.scss
  52. +45 −0 scss/dropdown.scss
  53. +45 −0 scss/form-range.scss
  54. +134 −0 scss/form.scss
  55. +14 −0 scss/grid.scss
  56. +67 −0 scss/heading.scss
  57. +14 −0 scss/height.scss
  58. +50 −0 scss/icon.scss
  59. +34 −0 scss/iconnav.scss
  60. +14 −0 scss/inverse.scss
  61. +43 −0 scss/label.scss
  62. +26 −0 scss/leader.scss
  63. +48 −0 scss/lightbox.scss
  64. +55 −0 scss/link.scss
  65. +39 −0 scss/list.scss
  66. +14 −0 scss/margin.scss
  67. +29 −0 scss/marker.scss
  68. +85 −0 scss/modal.scss
  69. +94 −0 scss/nav.scss
  70. +140 −0 scss/navbar.scss
  71. +44 −0 scss/notification.scss
  72. +32 −0 scss/offcanvas.scss
  73. +33 −0 scss/overlay.scss
  74. +14 −0 scss/padding.scss
  75. +41 −0 scss/pagination.scss
  76. +29 −0 scss/placeholder.scss
  77. +14 −0 scss/position.scss
  78. +24 −0 scss/progress.scss
  79. +73 −0 scss/search.scss
  80. +32 −0 scss/section.scss
  81. +52 −0 scss/slidenav.scss
  82. +38 −0 scss/sortable.scss
  83. +14 −0 scss/spinner.scss
  84. +14 −0 scss/sticky.scss
  85. +74 −0 scss/subnav.scss
  86. +75 −0 scss/tab.scss
  87. +68 −0 scss/table.scss
  88. +51 −0 scss/text.scss
  89. 0 scss/theme.scss
  90. +42 −0 scss/thumbnav.scss
  91. +32 −0 scss/tile.scss
  92. +20 −0 scss/tooltip.scss
  93. +32 −0 scss/totop.scss
  94. +14 −0 scss/transition.scss
  95. +49 −0 scss/utility.scss
  96. +125 −0 scss/variables.scss
  97. +14 −0 scss/width.scss
  98. +14 −9 search.php
  99. +13 −0 searchform.php
  100. +10 −6 single.php
  101. +89 −0 site.scss
  102. +10 −976 style.css
  103. +106 −0 template-parts/blocks/class-core-blocks.php
  104. +55 −0 template-parts/blocks/custom-panel.php
  105. +16 −10 template-parts/content-none.php
  106. +22 −20 template-parts/content-page.php
  107. +5 −3 template-parts/content-search.php
  108. +22 −12 template-parts/content.php
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*.min.css
*.map
scss/*.css
site.css
vendor/*
wpcs/*
34 changes: 18 additions & 16 deletions 404.php
Original file line number Diff line number Diff line change
@@ -4,46 +4,48 @@
*
* @link https://codex.wordpress.org/Creating_an_Error_404_Page
*
* @package Gutenbergtheme
* @package ThemeWPUGPH
*/

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.', 'gutenbergtheme' ); ?></h1>
<h1 class="page-title"><?php esc_html_e( 'Oops! That page can&rsquo;t be found.', 'themewpugph' ); ?></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?', 'gutenbergtheme' ); ?></p>
<p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'themewpugph' ); ?></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', 'gutenbergtheme' ); ?></h2>
<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 -->

<?php

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

the_widget( 'WP_Widget_Tag_Cloud' );
44 changes: 40 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,44 @@
# Gutenberg theme
This theme is designed to showcase what Gutenberg can do with regards to themes. It is intended as a work in progress, at least until v1 of the new editor (and maybe beyond).
# Theme WPUGPH
Modern Theme using UIKit 3 with good support for Gutenberg block styling. Based on gutenbergtheme https://github.com/WordPress/gutenberg-starter-theme.

# Block focused
Work in progress.

## Block focused
If something isn't a block yet, this theme will not have it. As each block happens, the theme will gain that functionality.

# Styling just like Gutenberg
## Styling just like Gutenberg
The idea of the default look for this theme is to as closely replicate that of the Gutenberg editor output as possible. As a result the focus is on that styling not creating a new look.. yet. As things grow, we may have styles and go further into what the theme can have... who knows.

## GNU General Public License v2
This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others.

## Plugins and Test Data
After WordPress setup follow these steps:

1. Install plugin: [Query Monitor](https://wordpress.org/plugins/query-monitor/) by Jogn Blackbourn
2. Install test data: [WP Test](https://github.com/poststatus/wptest#installation)

## Theme Installation and Setup
1. Clone inside theme folder: /wp-content/themes
```git clone --recursive https://github.com/wpugph/themewpugph.git```
2. Install dependencies
```composer install```
3. Compile stylesheet site.scss
4. Activate the theme

## Dependecies
- [UIKit 3](https://github.com/uikit/uikit) - A lightweight and modular front-end framework for developing fast and powerful web interfaces
- [Carbon Fields](https://github.com/htmlburger/carbon-fields) - A developer-oriented library for WordPress custom fields for all types of WordPress content.

## Roadmap ([See v1](https://github.com/wpugph/gutenberg-starter-theme/projects/1))
- Integrate UIKit 3
- Basic Gutenblocks for UIKit 3 components
- WP UIkit Customizer
- A11y ready

## Philosophy
- Time is precious commodity
- Lean and DRY, minimum dependencies
- Simple but readable code
- Made for Child Theme developers and hackers
- Always take advantage of modern WordPress core
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
theme: jekyll-theme-cayman
20 changes: 12 additions & 8 deletions archive.php
Original file line number Diff line number Diff line change
@@ -4,15 +4,16 @@
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package Gutenbergtheme
* @package ThemeWPUGPH
*/

get_header(); ?>

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

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

<header class="page-header">
<?php
@@ -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.
@@ -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();
106 changes: 91 additions & 15 deletions comments.php
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package Gutenbergtheme
* @package ThemeWPUGPH
*/

/*
@@ -24,20 +24,21 @@

<?php
// You can start editing here -- including this comment!
if ( have_comments() ) : ?>
if ( have_comments() ) :
?>
<h2 class="comments-title">
<?php
$comment_count = get_comments_number();
if ( 1 === $comment_count ) {
printf(
/* translators: 1: title. */
esc_html_e( 'One thought on &ldquo;%1$s&rdquo;', 'gutenbergtheme' ),
'<span>' . get_the_title() . '</span>'
esc_html_e( 'One thought on &ldquo;%1$s&rdquo;', 'themewpugph' ),
'<span>' . esc_html( get_the_title() ) . '</span>'
);
} else {
printf( // WPCS: XSS OK.
/* translators: 1: comment count number, 2: title. */
esc_html( _nx( '%1$s thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', $comment_count, 'comments title', 'gutenbergtheme' ) ),
esc_html( _nx( '%1$s thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', $comment_count, 'comments title', 'themewpugph' ) ),
number_format_i18n( $comment_count ),
'<span>' . get_the_title() . '</span>'
);
@@ -49,24 +50,99 @@

<ol class="comment-list">
<?php
wp_list_comments( array(
'style' => 'ol',
'short_ping' => true,
) );
wp_list_comments(
array(
'walker' => new ThemeWPUGPH_Comments(),
'style' => 'ol',
'short_ping' => true,
'avatar_size' => 50,
)
);
?>
</ol><!-- .comment-list -->

<?php the_comments_navigation();

// If comments are closed and there are comments, let's leave a little note, shall we?
if ( ! comments_open() ) : ?>
<p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'gutenbergtheme' ); ?></p>
<?php
the_comments_navigation();

// If comments are closed and there are comments, let's leave a little note, shall we?
if ( ! comments_open() ) :
?>
<p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'themewpugph' ); ?></p>
<?php
endif;

endif; // Check for have_comments().

comment_form();
$field_required = $req ? 'required' : '';

// Comment field.
$comment_label = _x( 'Comment', 'noun', 'themewpugph' );
$comment_field = <<<UIKIT3
<div class="uk-margin">
<label class="uk-form-label" for="comment">
{$comment_label}
</label>
<div class="uk-form-controls">
<textarea id="comment" class="uk-textarea uk-form-width-large" name="comment" required></textarea>
</div>
</div>
UIKIT3;

// Author field.
$author_label = __( 'Name', 'themewpugph' ) . ( $req ? '<span class="required">*</span>' : '' );
$author_value = esc_attr( $commenter['comment_author'] );
$author_field = <<<UIKIT3
<div class="uk-margin">
<label class="uk-form-label" for="author">
{$author_label}
</label>
<div class="uk-form-controls">
<input id="author" class="uk-input uk-form-width-large" name="author" type="text" value="{$author_value}" {$field_required} />
</div>
</div>
UIKIT3;

// Email field.
$email_label = __( 'Email', 'themewpugph' ) . ( $req ? '<span class="required">*</span>' : '' );
$email_value = esc_attr( $commenter['comment_author_email'] );
$email_field = <<<UIKIT3
<div class="uk-margin">
<label class="uk-form-label" for="author">
{$email_label}
</label>
<div class="uk-form-controls">
<input id="email" class="uk-input uk-form-width-large" name="email" type="email" value="{$email_value}" {$field_required} />
</div>
</div>
UIKIT3;

// URL field.
$url_label = __( 'Website', 'themewpugph' );
$url_value = esc_attr( $commenter['comment_author_url'] );
$url_field = <<<UIKIT3
<div class="uk-margin">
<label class="uk-form-label" for="author">
{$url_label}
</label>
<div class="uk-form-controls">
<input id="url" class="uk-input uk-form-width-large" name="url" type="url" value="{$url_value}" />
</div>
</div>
UIKIT3;

comment_form(
array(
'class_form' => 'uk-form-stacked',
'class_submit' => 'uk-button uk-button-primary',
'comment_field' => $comment_field,
'fields' => array(
'author' => $author_field,
'email' => $email_field,
'url' => $url_field,
),
'submit_button' => '<input name="%1$s" type="submit" id="%2$s" class="%3$s" value="%4$s" />',
)
);
?>

</div><!-- #comments -->
13 changes: 13 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"require": {
"squizlabs/php_codesniffer": "*",
"htmlburger/carbon-fields": "^3.1",
"uikit/uikit": "^3.1"
},
"scripts": {
"install-wpcs": [
"composer create-project wp-coding-standards/wpcs --no-dev",
"./vendor/bin/phpcs --config-set installed_paths ./wpcs"
]
}
}
Loading