Skip to content

Commit

Permalink
Happening: fix skip links, underlines, and theme URI (#8080)
Browse files Browse the repository at this point in the history
* Happening: fix skip links, underlines, and theme URI

* Happening: updates version number

* Happening: removes esc_html_e added by BT
  • Loading branch information
henriqueiamarino committed Sep 6, 2024
1 parent 87ecf1c commit c5840a8
Show file tree
Hide file tree
Showing 11 changed files with 58 additions and 46 deletions.
18 changes: 9 additions & 9 deletions happening/patterns/404.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,36 +6,36 @@
* Inserter: no
*/
?>
<!-- wp:cover {"url":"<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/image-from-rawpixel-id-3306149_distorted.jpg","dimRatio":20,"isUserOverlayColor":true,"minHeight":100,"minHeightUnit":"vh","contentPosition":"top center","style":{"elements":{"link":{"color":{"text":"var:preset|color|base"}},"heading":{"color":{"text":"var:preset|color|base"}}},"spacing":{"padding":{"top":"3rem","bottom":"3rem"}}},"textColor":"base","layout":{"type":"constrained"}} -->
<div class="wp-block-cover has-custom-content-position is-position-top-center has-base-color has-text-color has-link-color" style="padding-top:3rem;padding-bottom:3rem;min-height:100vh"><span aria-hidden="true" class="wp-block-cover__background has-background-dim-20 has-background-dim"></span><img class="wp-block-cover__image-background" alt="<?php esc_attr_e( 'Distorted image of a man running from behind', 'happening' ); ?>" src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/image-from-rawpixel-id-3306149_distorted.jpg" data-object-fit="cover"/><div class="wp-block-cover__inner-container"><!-- wp:group {"align":"wide","style":{"dimensions":{"minHeight":"85vh"},"spacing":{"padding":{"top":"0rem","right":"0rem","bottom":"0rem","left":"0rem"},"margin":{"top":"0rem","bottom":"0rem"}}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch","verticalAlignment":"space-between","flexWrap":"wrap"}} -->
<!-- wp:cover {"url":"<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/image-from-rawpixel-id-3306149_distorted.jpg","alt":"Distorted image of a man running from behind","dimRatio":20,"minHeight":100,"minHeightUnit":"vh","contentPosition":"top center","style":{"elements":{"link":{"color":{"text":"var:preset|color|base"}},"heading":{"color":{"text":"var:preset|color|base"}}},"spacing":{"padding":{"top":"3rem","bottom":"3rem"}}},"textColor":"base","layout":{"type":"constrained"}} -->
<div class="wp-block-cover has-custom-content-position is-position-top-center has-base-color has-text-color has-link-color" style="padding-top:3rem;padding-bottom:3rem;min-height:100vh"><span aria-hidden="true" class="wp-block-cover__background has-background-dim-20 has-background-dim"></span><img class="wp-block-cover__image-background" alt="<?php esc_attr_e('Distorted image of a man running from behind', 'happening');?>" src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/image-from-rawpixel-id-3306149_distorted.jpg" data-object-fit="cover"/><div class="wp-block-cover__inner-container"><!-- wp:group {"align":"wide","style":{"dimensions":{"minHeight":"85vh"},"spacing":{"padding":{"top":"0rem","right":"0rem","bottom":"0rem","left":"0rem"},"margin":{"top":"0rem","bottom":"0rem"}}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch","verticalAlignment":"space-between","flexWrap":"wrap"}} -->
<div class="wp-block-group alignwide" style="min-height:85vh;margin-top:0rem;margin-bottom:0rem;padding-top:0rem;padding-right:0rem;padding-bottom:0rem;padding-left:0rem"><!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"0vh"},"border":{"bottom":{"width":"2px"},"top":{"width":"2px"},"right":[],"left":[]}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} -->
<div class="wp-block-group alignwide" style="border-top-width:2px;border-bottom-width:2px"><!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"0rem","padding":{"top":"0.5rem","right":"0rem","bottom":"0.5rem","left":"0rem"}}},"layout":{"type":"flex","justifyContent":"space-between","flexWrap":"wrap"}} -->
<div class="wp-block-group alignwide" style="padding-top:0.5rem;padding-right:0rem;padding-bottom:0.5rem;padding-left:0rem"><!-- wp:site-title /-->
<div class="wp-block-group alignwide" style="padding-top:0.5rem;padding-right:0rem;padding-bottom:0.5rem;padding-left:0rem"><!-- wp:site-title {"className":"no-underline"} /-->

<!-- wp:navigation {"overlayMenu":"never","layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"space-between","orientation":"horizontal"},"style":{"spacing":{"margin":{"top":"0"},"blockGap":""},"layout":{"selfStretch":"fit","flexSize":null}}} /--></div>
<!-- wp:navigation {"overlayMenu":"never","style":{"spacing":{"margin":{"top":"0"},"blockGap":""},"layout":{"selfStretch":"fit","flexSize":null}},"layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"space-between","orientation":"horizontal"}} /--></div>
<!-- /wp:group -->

<!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"0rem","padding":{"top":"0.5rem","right":"0rem","bottom":"0.5rem","left":"0rem"}},"border":{"top":{"width":"2px"},"right":[],"bottom":[],"left":[]}},"layout":{"type":"flex","justifyContent":"space-between","flexWrap":"wrap"}} -->
<div class="wp-block-group alignwide" style="border-top-width:2px;padding-top:0.5rem;padding-right:0rem;padding-bottom:0.5rem;padding-left:0rem"><!-- wp:paragraph {"style":{"typography":{"textTransform":"uppercase","lineHeight":"1"}}} -->
<p style="line-height:1;text-transform:uppercase">5K relay</p>
<p style="line-height:1;text-transform:uppercase"><?php esc_html_e('5K relay', 'happening');?></p>
<!-- /wp:paragraph --></div>
<!-- /wp:group -->

<!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"0rem","padding":{"top":"0.5rem","right":"0rem","bottom":"0.5rem","left":"0rem"}},"border":{"top":{"width":"2px"},"right":[],"bottom":[],"left":[]}},"layout":{"type":"flex","justifyContent":"space-between","flexWrap":"wrap"}} -->
<div class="wp-block-group alignwide" style="border-top-width:2px;padding-top:0.5rem;padding-right:0rem;padding-bottom:0.5rem;padding-left:0rem"><!-- wp:paragraph {"style":{"typography":{"textTransform":"uppercase","lineHeight":"1"}}} -->
<p style="line-height:1;text-transform:uppercase">28 Mar 2023, Worldwide.</p>
<p style="line-height:1;text-transform:uppercase"><?php esc_html_e('28 Mar 2023, Worldwide.', 'happening');?></p>
<!-- /wp:paragraph --></div>
<!-- /wp:group --></div>
<!-- /wp:group -->

<!-- wp:group {"align":"full","style":{"layout":{"selfStretch":"fill","flexSize":null},"spacing":{"padding":{"top":"5vh","bottom":"5vh"}}},"layout":{"type":"constrained","justifyContent":"left"}} -->
<div class="wp-block-group alignfull" style="padding-top:5vh;padding-bottom:5vh"><!-- wp:heading {"level":1} -->
<h1 class="wp-block-heading">No page<br>was found.</h1>
<h1 class="wp-block-heading"><?php esc_html_e('No page was found.', 'happening');?></h1>
<!-- /wp:heading -->

<!-- wp:group {"layout":{"type":"default"}} -->
<div class="wp-block-group"><!-- wp:paragraph {"align":"left"} -->
<p class="has-text-align-left">Maybe try a new search?</p>
<p class="has-text-align-left"><?php esc_html_e('Maybe try a new search?', 'happening');?></p>
<!-- /wp:paragraph -->

<!-- wp:search {"label":"","showLabel":false,"width":100,"widthUnit":"%","buttonUseIcon":true} /--></div>
Expand All @@ -44,7 +44,7 @@

<!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"0rem","padding":{"top":"0.5rem","right":"0rem","bottom":"0.5rem","left":"0rem"}},"border":{"top":{"width":"2px"},"bottom":{"width":"2px"},"right":[],"left":[]}},"layout":{"type":"flex","justifyContent":"space-between","flexWrap":"wrap"}} -->
<div class="wp-block-group alignwide" style="border-top-width:2px;border-bottom-width:2px;padding-top:0.5rem;padding-right:0rem;padding-bottom:0.5rem;padding-left:0rem"><!-- wp:paragraph {"align":"left","style":{"typography":{"textTransform":"uppercase","lineHeight":"1"}},"fontSize":"small"} -->
<p class="has-text-align-left has-small-font-size" style="line-height:1;text-transform:uppercase">Designed with <a href="#" rel="nofollow">WordPress</a>.</p>
<p class="has-text-align-left has-small-font-size" style="line-height:1;text-transform:uppercase"><?php esc_html_e('Designed with &lt;a href="#" rel="nofollow"&gt;WordPress&lt;/a&gt;.', 'happening');?></p>
<!-- /wp:paragraph --></div>
<!-- /wp:group --></div>
<!-- /wp:group --></div></div>
Expand Down
20 changes: 10 additions & 10 deletions happening/patterns/front-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,24 @@
* Inserter: no
*/
?>
<!-- wp:cover {"url":"<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/image-from-rawpixel-id-5922463_distorted.jpg","dimRatio":20,"isUserOverlayColor":true,"minHeight":100,"minHeightUnit":"vh","contentPosition":"top center","style":{"elements":{"link":{"color":{"text":"var:preset|color|base"}},"heading":{"color":{"text":"var:preset|color|base"}}},"spacing":{"padding":{"top":"3rem","bottom":"3rem"}}},"textColor":"base","layout":{"type":"constrained"}} -->
<div class="wp-block-cover has-custom-content-position is-position-top-center has-base-color has-text-color has-link-color" style="padding-top:3rem;padding-bottom:3rem;min-height:100vh"><span aria-hidden="true" class="wp-block-cover__background has-background-dim-20 has-background-dim"></span><img class="wp-block-cover__image-background " alt="<?php esc_attr_e( 'Distorted image of a man running from above', 'happening' ); ?>" src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/image-from-rawpixel-id-5922463_distorted.jpg" data-object-fit="cover"/><div class="wp-block-cover__inner-container"><!-- wp:group {"align":"wide","style":{"dimensions":{"minHeight":"85vh"},"spacing":{"padding":{"top":"0rem","right":"0rem","bottom":"0rem","left":"0rem"},"margin":{"top":"0rem","bottom":"0rem"}}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch","verticalAlignment":"space-between","flexWrap":"wrap"}} -->
<div class="wp-block-group alignwide" style="min-height:85vh;margin-top:0rem;margin-bottom:0rem;padding-top:0rem;padding-right:0rem;padding-bottom:0rem;padding-left:0rem"><!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"0vh"},"border":{"bottom":{"width":"2px"},"top":{"width":"2px"}},"layout":{"selfStretch":"fit","flexSize":null}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} -->
<!-- wp:cover {"url":"<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/image-from-rawpixel-id-5922463_distorted.jpg","alt":"Distorted image of a man running from above","dimRatio":20,"minHeight":100,"minHeightUnit":"vh","contentPosition":"top center","style":{"elements":{"link":{"color":{"text":"var:preset|color|base"}},"heading":{"color":{"text":"var:preset|color|base"}}},"spacing":{"padding":{"top":"3rem","bottom":"3rem"}}},"textColor":"base","layout":{"type":"constrained"}} -->
<div class="wp-block-cover has-custom-content-position is-position-top-center has-base-color has-text-color has-link-color" style="padding-top:3rem;padding-bottom:3rem;min-height:100vh"><span aria-hidden="true" class="wp-block-cover__background has-background-dim-20 has-background-dim"></span><img class="wp-block-cover__image-background" alt="<?php esc_attr_e('Distorted image of a man running from above', 'happening');?>" src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/image-from-rawpixel-id-5922463_distorted.jpg" data-object-fit="cover"/><div class="wp-block-cover__inner-container"><!-- wp:group {"tagName":"main","align":"wide","style":{"dimensions":{"minHeight":"85vh"},"spacing":{"padding":{"top":"0rem","right":"0rem","bottom":"0rem","left":"0rem"},"margin":{"top":"0rem","bottom":"0rem"}}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch","verticalAlignment":"space-between","flexWrap":"wrap"}} -->
<main class="wp-block-group alignwide" style="min-height:85vh;margin-top:0rem;margin-bottom:0rem;padding-top:0rem;padding-right:0rem;padding-bottom:0rem;padding-left:0rem"><!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"0vh"},"border":{"bottom":{"width":"2px"},"top":{"width":"2px"}},"layout":{"selfStretch":"fit","flexSize":null}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} -->
<div class="wp-block-group alignwide" style="border-top-width:2px;border-bottom-width:2px"><!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"0rem","padding":{"top":"0.5rem","right":"0rem","bottom":"0.5rem","left":"0rem"}}},"layout":{"type":"flex","justifyContent":"space-between","flexWrap":"wrap"}} -->
<div class="wp-block-group alignwide" style="padding-top:0.5rem;padding-right:0rem;padding-bottom:0.5rem;padding-left:0rem"><!-- wp:site-title /-->
<div class="wp-block-group alignwide" style="padding-top:0.5rem;padding-right:0rem;padding-bottom:0.5rem;padding-left:0rem"><!-- wp:site-title {"className":"no-underline"} /-->

<!-- wp:navigation {"overlayMenu":"never","layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"space-between","orientation":"horizontal"},"style":{"spacing":{"margin":{"top":"0"},"blockGap":""},"layout":{"selfStretch":"fit","flexSize":null}}} /--></div>
<!-- wp:navigation {"overlayMenu":"never","style":{"spacing":{"margin":{"top":"0"},"blockGap":""},"layout":{"selfStretch":"fit","flexSize":null}},"layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"space-between","orientation":"horizontal"}} /--></div>
<!-- /wp:group -->

<!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"0rem","padding":{"top":"0.5rem","right":"0rem","bottom":"0.5rem","left":"0rem"}},"border":{"top":{"width":"2px"}}},"layout":{"type":"flex","justifyContent":"space-between","flexWrap":"wrap"}} -->
<div class="wp-block-group alignwide" style="border-top-width:2px;padding-top:0.5rem;padding-right:0rem;padding-bottom:0.5rem;padding-left:0rem"><!-- wp:paragraph {"style":{"typography":{"textTransform":"uppercase","lineHeight":"1"}}} -->
<p style="line-height:1;text-transform:uppercase">5K relay</p>
<p style="line-height:1;text-transform:uppercase"><?php esc_html_e('5K relay', 'happening');?></p>
<!-- /wp:paragraph --></div>
<!-- /wp:group -->

<!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"0rem","padding":{"top":"0.5rem","right":"0rem","bottom":"0.5rem","left":"0rem"}},"border":{"top":{"width":"2px"}}},"layout":{"type":"flex","justifyContent":"space-between","flexWrap":"wrap"}} -->
<div class="wp-block-group alignwide" style="border-top-width:2px;padding-top:0.5rem;padding-right:0rem;padding-bottom:0.5rem;padding-left:0rem"><!-- wp:paragraph {"style":{"typography":{"textTransform":"uppercase","lineHeight":"1"}}} -->
<p style="line-height:1;text-transform:uppercase">20 Sep 2024, Worldwide.</p>
<p style="line-height:1;text-transform:uppercase"><?php esc_html_e('20 Sep 2024, Worldwide', 'happening');?></p>
<!-- /wp:paragraph --></div>
<!-- /wp:group --></div>
<!-- /wp:group -->
Expand All @@ -32,7 +32,7 @@
<div class="wp-block-group alignwide" style="padding-top:5vh;padding-bottom:5vh"><!-- wp:columns {"verticalAlignment":"top","align":"wide","style":{"layout":{"selfStretch":"fill","flexSize":null},"spacing":{"blockGap":{"top":"0vh","left":"0vh"}}}} -->
<div class="wp-block-columns alignwide are-vertically-aligned-top"><!-- wp:column {"verticalAlignment":"top","width":"70%"} -->
<div class="wp-block-column is-vertically-aligned-top" style="flex-basis:70%"><!-- wp:heading {"level":1} -->
<h1 class="wp-block-heading">Global run,
September 20: Take action.</h1>
<h1 class="wp-block-heading"><?php esc_html_e('Global run,
September 20: Take action.', 'happening');?></h1>
<!-- /wp:heading --></div>
<!-- /wp:column -->

Expand All @@ -44,8 +44,8 @@

<!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"0rem","padding":{"top":"0.5rem","right":"0rem","bottom":"0.5rem","left":"0rem"}},"border":{"top":{"width":"2px"},"bottom":{"width":"2px"}}},"layout":{"type":"flex","justifyContent":"space-between","flexWrap":"wrap"}} -->
<div class="wp-block-group alignwide" style="border-top-width:2px;border-bottom-width:2px;padding-top:0.5rem;padding-right:0rem;padding-bottom:0.5rem;padding-left:0rem"><!-- wp:paragraph {"align":"left","style":{"typography":{"textTransform":"uppercase","lineHeight":"1"}},"fontSize":"small"} -->
<p class="has-text-align-left has-small-font-size" style="line-height:1;text-transform:uppercase">Designed with <a href="#" rel="nofollow">WordPress</a>.</p>
<p class="has-text-align-left has-small-font-size" style="line-height:1;text-transform:uppercase"><?php esc_html_e('Designed with WordPress', 'happening');?></p>
<!-- /wp:paragraph --></div>
<!-- /wp:group --></div>
<!-- /wp:group --></main>
<!-- /wp:group --></div></div>
<!-- /wp:cover -->
6 changes: 3 additions & 3 deletions happening/patterns/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
?>
<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"3rem"},"margin":{"top":"0vh","bottom":"0vh"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group alignwide" style="margin-top:0vh;margin-bottom:0vh;padding-top:3rem"><!-- wp:group {"align":"wide","layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} -->
<div class="wp-block-group alignwide"><!-- wp:site-logo {"width":160,"shouldSyncIcon":true} /-->
<div class="wp-block-group alignwide"><!-- wp:site-logo {"width":160,"shouldSyncIcon":false} /-->

<!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"0vh"},"border":{"bottom":{"width":"2px"},"top":{"width":"2px"},"right":[],"left":[]},"layout":{"selfStretch":"fill","flexSize":null}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} -->
<div class="wp-block-group alignwide" style="border-top-width:2px;border-bottom-width:2px"><!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"0rem","padding":{"top":"0.5rem","right":"0rem","bottom":"0.5rem","left":"0rem"}}},"layout":{"type":"flex","justifyContent":"space-between","flexWrap":"wrap"}} -->
<div class="wp-block-group alignwide" style="padding-top:0.5rem;padding-right:0rem;padding-bottom:0.5rem;padding-left:0rem"><!-- wp:site-title /-->
<div class="wp-block-group alignwide" style="padding-top:0.5rem;padding-right:0rem;padding-bottom:0.5rem;padding-left:0rem"><!-- wp:site-title {"className":"no-underline"} /-->

<!-- wp:navigation {"overlayMenu":"never","layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"space-between","orientation":"horizontal"},"style":{"spacing":{"margin":{"top":"0"},"blockGap":""},"layout":{"selfStretch":"fit","flexSize":null}}} /--></div>
<!-- wp:navigation {"overlayMenu":"never","style":{"spacing":{"margin":{"top":"0"},"blockGap":""},"layout":{"selfStretch":"fit","flexSize":null}},"layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"space-between","orientation":"horizontal"}} /--></div>
<!-- /wp:group -->

<!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"0rem","padding":{"top":"0.5rem","right":"0rem","bottom":"0.5rem","left":"0rem"}},"border":{"top":{"width":"2px"},"right":[],"bottom":[],"left":[]}},"layout":{"type":"flex","justifyContent":"space-between","flexWrap":"wrap"}} -->
Expand Down
15 changes: 13 additions & 2 deletions happening/style.css
Original file line number Diff line number Diff line change
@@ -1,18 +1,29 @@
/*
Theme Name: Happening
Theme URI: https://wordpress.com/theme/happening/
Theme URI: https://themeshaper.com/happening/
Author: Automattic
Author URI: https://automattic.com
Description: As its name states Happening is a theme designed for events and ceremonies. It is simple, and direct allowing users to display the essence of their subject with a large artwork on the Homepage.
Requires at least: 6.1
Tested up to: 6.5
Requires PHP: 5.7
Version: 1.0.1
Version: 1.0.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: happening
Tags: blog, food-and-drink, holiday, one-column, wide-blocks, block-patterns, custom-background, custom-colors, custom-header, custom-logo, custom-menu, editor-style, featured-images, flexible-header, full-site-editing, full-width-template, post-formats, rtl-language-support, theme-options, threaded-comments, translation-ready
/* Progresive enhancement to reduce widows and orphans.
/* https://github.com/WordPress/gutenberg/issues/55190
*/

h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption {
text-wrap: balance;
}
p {
text-wrap: pretty;
}

/*
* Control the hover stylings of outline block style.
* Unnecessary once block styles are configurable via theme.json
Expand Down
Loading

0 comments on commit c5840a8

Please sign in to comment.