Skip to content

Commit

Permalink
Inversum: fixes issues mentioned on issue 8501 (#8555)
Browse files Browse the repository at this point in the history
* Inversum: fixes issues mentioned on issue 8501

* Cleanup footer template part

---------

Co-authored-by: Takashi Irie <takashi@automattic.com>
  • Loading branch information
henriqueiamarino and iamtakashi authored Jan 13, 2025
1 parent cddcaf4 commit dc96f04
Show file tree
Hide file tree
Showing 21 changed files with 90 additions and 212 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file removed inversum/assets/images/upsidedown_sitelogo.png
Binary file not shown.
12 changes: 0 additions & 12 deletions inversum/parts/post-meta.html

This file was deleted.

13 changes: 6 additions & 7 deletions inversum/patterns/404.php
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Title: 404
* Slug: inversum/404
* Categories: hidden
* Inserter: no
*/
?>
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->

<!-- wp:group {"style":{"spacing":{"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="margin-top:0;margin-bottom:0"><!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"var:preset|spacing|70","bottom":"var:preset|spacing|70"},"blockGap":"var:preset|spacing|70"}},"layout":{"type":"default"}} -->
<div class="wp-block-group alignwide" style="padding-top:var(--wp--preset--spacing--70);padding-bottom:var(--wp--preset--spacing--70)"><!-- wp:heading {"textAlign":"left","style":{"typography":{"fontSize":"6.4rem","lineHeight":0.90000000000000002}},"className":"has-text-align-center"} -->
<h2 class="wp-block-heading has-text-align-left has-text-align-center" style="font-size:6.4rem;line-height:0.9"><?php echo __('Nothing here,<br>sorry.', 'inversum');?></h2>
<!-- wp:group {"metadata":{"name":"Content"},"style":{"spacing":{"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="margin-top:0;margin-bottom:0"><!-- wp:group {"metadata":{"name":"Content wrapper"},"align":"wide","style":{"spacing":{"padding":{"top":"var:preset|spacing|70","bottom":"var:preset|spacing|70"},"blockGap":"var:preset|spacing|70"}},"layout":{"type":"default"}} -->
<div class="wp-block-group alignwide" style="padding-top:var(--wp--preset--spacing--70);padding-bottom:var(--wp--preset--spacing--70)"><!-- wp:heading {"textAlign":"left","className":"has-text-align-center","style":{"typography":{"fontSize":"6.4rem","lineHeight":0.90000000000000002}}} -->
<h2 class="wp-block-heading has-text-align-left has-text-align-center" style="font-size:6.4rem;line-height:0.9"><?php /* Translators: 1. is a 'br' HTML element */
echo sprintf( esc_html__( 'Nothing here,%1$ssorry.', 'inversum' ), '<br>' ); ?></h2>
<!-- /wp:heading -->

<!-- wp:group {"style":{"spacing":{"blockGap":"20px"}},"layout":{"type":"constrained","justifyContent":"left"}} -->
<div class="wp-block-group"><!-- wp:paragraph {"align":"left"} -->
<p class="has-text-align-left"><?php echo __('This page or post could not be found. Maybe a search would help?', 'inversum');?></p>
<p class="has-text-align-left"><?php esc_html_e('This page or post could not be found. Maybe a search would help?', 'inversum');?></p>
<!-- /wp:paragraph -->

<!-- wp:search {"label":"Search","showLabel":false,"width":100,"widthUnit":"%","buttonText":"Search","buttonPosition":"button-inside","buttonUseIcon":true} /--></div>
Expand Down
53 changes: 0 additions & 53 deletions inversum/patterns/comments.php

This file was deleted.

35 changes: 13 additions & 22 deletions inversum/patterns/footer.php
Original file line number Diff line number Diff line change
@@ -1,58 +1,49 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Title: footer
* Slug: inversum/footer
* Categories: hidden
* Inserter: no
*/
?>
<!-- wp:group {"layout":{"type":"constrained"},"fontSize":"small"} -->
<!-- wp:group {"metadata":{"name":"Footer wrapper"},"fontSize":"small","layout":{"type":"constrained"}} -->
<div class="wp-block-group has-small-font-size"><!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|80"},"blockGap":"var:preset|spacing|70"}},"layout":{"type":"default"}} -->
<div class="wp-block-group alignwide" style="padding-top:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--80)"><!-- wp:columns {"style":{"spacing":{"blockGap":{"top":"var:preset|spacing|30"}}}} -->
<div class="wp-block-columns"><!-- wp:column {"width":"75%"} -->
<div class="wp-block-column" style="flex-basis:75%"><!-- wp:group {"style":{"spacing":{"blockGap":"0"}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} -->
<div class="wp-block-column" style="flex-basis:75%"><!-- wp:group {"metadata":{"name":"Intro Block"},"style":{"spacing":{"blockGap":"0"}},"layout":{"type":"constrained","justifyContent":"left"}} -->
<div class="wp-block-group"><!-- wp:paragraph -->
<p><?php echo __('Blogs typically adhere to well-established structures, but this design dares to break away from the norm. Instead of relying on winning formulas, it offers a refreshing approach to displaying your thoughts on a blog. This theme design is not about certainty; it\'s about embracing new perspectives. Maybe it\'s the one for you.', 'inversum');?></p>
<p><?php esc_html_e('Blogs typically adhere to well-established structures, but this design dares to break away from the norm. Instead of relying on winning formulas, it offers a refreshing approach to displaying your thoughts on a blog. This theme design is not about certainty; it\'s about embracing new perspectives. Maybe it\'s the one for you.', 'inversum');?></p>
<!-- /wp:paragraph -->

<!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"type":"flex","flexWrap":"nowrap"}} -->
<!-- wp:group {"metadata":{"name":"Title"},"style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"type":"flex","flexWrap":"nowrap"}} -->
<div class="wp-block-group"><!-- wp:paragraph -->
<p><?php echo __('Try', 'inversum');?></p>
<p><?php esc_html_e('Try', 'inversum');?></p>
<!-- /wp:paragraph -->

<!-- wp:site-title /-->

<!-- wp:paragraph -->
<p><?php echo __('now!', 'inversum');?></p>
<p><?php esc_html_e('now!', 'inversum');?></p>
<!-- /wp:paragraph --></div>
<!-- /wp:group --></div>
<!-- /wp:group --></div>
<!-- /wp:column -->

<!-- wp:column {"verticalAlignment":"top","width":"5%"} -->
<div class="wp-block-column is-vertically-aligned-top" style="flex-basis:5%"></div>
<!-- /wp:column -->

<!-- wp:column {"verticalAlignment":"top","width":"25%"} -->
<div class="wp-block-column is-vertically-aligned-top" style="flex-basis:25%"><!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|40"}},"layout":{"type":"flex","orientation":"vertical"}} -->
<div class="wp-block-group"><!-- wp:paragraph -->
<p><?php echo __('Designed with <a rel="nofollow" href="https://wordpress.org">WordPress</a> ', 'inversum');?></p>
<p><?php /* Translators: 1. is the start of a 'a' HTML element, 2. is the end of a 'a' HTML element */
echo sprintf( esc_html__( 'Designed with %1$sWordPress%2$s', 'inversum' ), '<a rel="nofollow" href="' . esc_url( 'https://wordpress.org' ) . '">', '</a>' ); ?></p>
<!-- /wp:paragraph -->

<!-- wp:social-links {"iconColor":"primary","iconColorValue":"var(\u002d\u002dwp\u002d\u002dpreset\u002d\u002dcolor\u002d\u002dprimary)","size":"has-small-icon-size","style":{"spacing":{"blockGap":{"top":"1rem","left":"1rem"}}},"className":"is-style-logos-only"} -->
<ul class="wp-block-social-links has-small-icon-size has-icon-color is-style-logos-only"><!-- wp:social-link {"url":"wordpress.org","service":"mastodon"} /-->

<!-- wp:social-link {"url":"wordpress.org/","service":"tumblr"} /-->

<!-- wp:social-link {"url":"wordpress.org","service":"github"} /-->
<!-- wp:social-links {"iconColor":"primary","iconColorValue":"#030201","size":"has-small-icon-size","className":"is-style-logos-only","style":{"spacing":{"blockGap":{"top":"1rem","left":"1rem"}}}} -->
<ul class="wp-block-social-links has-small-icon-size has-icon-color is-style-logos-only"><!-- wp:social-link {"url":"#","service":"mastodon"} /-->

<!-- wp:social-link {"url":"wordpress.org","service":"instagram"} /-->
<!-- wp:social-link {"url":"#","service":"tumblr"} /-->

<!-- wp:social-link {"url":"wordpress.org","service":"x"} /--></ul>
<!-- wp:social-link {"url":"#","service":"github"} /--></ul>
<!-- /wp:social-links --></div>
<!-- /wp:group --></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div>
<!-- /wp:group --></div>
<!-- /wp:group -->
<!-- /wp:group -->
17 changes: 6 additions & 11 deletions inversum/patterns/header.php
Original file line number Diff line number Diff line change
@@ -1,25 +1,19 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Title: header
* Slug: inversum/header
* Categories: hidden
* Inserter: no
*/
?>
<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|70"}}},"layout":{"type":"constrained"},"fontSize":"small"} -->
<!-- wp:group {"metadata":{"name":"Header wrapper"},"style":{"spacing":{"padding":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|70"}}},"fontSize":"small","layout":{"type":"constrained"}} -->
<div class="wp-block-group has-small-font-size" style="padding-top:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--70)"><!-- wp:columns {"verticalAlignment":"bottom","align":"wide","style":{"spacing":{"blockGap":{"top":"var:preset|spacing|30"}}}} -->
<div class="wp-block-columns alignwide are-vertically-aligned-bottom"><!-- wp:column {"verticalAlignment":"bottom","width":"75%","style":{"spacing":{"margin":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}}}} -->
<div class="wp-block-column is-vertically-aligned-bottom" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;flex-basis:75%"><!-- wp:navigation {"overlayMenu":"never","layout":{"type":"flex","orientation":"horizontal","flexWrap":"wrap"}} /--></div>
<!-- /wp:column -->

<!-- wp:column {"verticalAlignment":"bottom","width":"0%","style":{"spacing":{"margin":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}}}} -->
<div class="wp-block-column is-vertically-aligned-bottom" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;flex-basis:0%"></div>
<!-- /wp:column -->

<!-- wp:column {"verticalAlignment":"bottom","width":"25%"} -->
<div class="wp-block-column is-vertically-aligned-bottom" style="flex-basis:25%"><!-- wp:paragraph {"style":{"spacing":{"margin":{"bottom":"var:preset|spacing|20"}}}} -->
<p style="margin-bottom:var(--wp--preset--spacing--20)"><?php echo __('Wait, does the nav block sit on the footer for this theme? That\'s bold.', 'inversum');?></p>
<div class="wp-block-column is-vertically-aligned-bottom" style="flex-basis:25%"><!-- wp:paragraph -->
<p><?php esc_html_e('Wait, does the nav block sit on the footer for this theme? That\'s bold.', 'inversum');?></p>
<!-- /wp:paragraph --></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->
Expand All @@ -28,7 +22,7 @@
<div class="wp-block-group alignwide" style="border-top-width:2px;padding-top:var(--wp--preset--spacing--50);padding-bottom:0"><!-- wp:columns {"verticalAlignment":"center","align":"wide","style":{"spacing":{"blockGap":{"top":"var:preset|spacing|30"}}}} -->
<div class="wp-block-columns alignwide are-vertically-aligned-center"><!-- wp:column {"verticalAlignment":"center","width":"50%","style":{"spacing":{"margin":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}}}} -->
<div class="wp-block-column is-vertically-aligned-center" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;flex-basis:50%"><!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|50"}},"layout":{"type":"flex","flexWrap":"nowrap"}} -->
<div class="wp-block-group"><!-- wp:site-logo {"width":100,"shouldSyncIcon":true,"style":{"spacing":{"padding":{"top":"5px"}}}} /-->
<div class="wp-block-group"><!-- wp:site-logo {"width":64,"shouldSyncIcon":false,"style":{"spacing":{"padding":{"top":"5px"}}}} /-->

<!-- wp:group {"style":{"spacing":{"blockGap":"0"}},"layout":{"type":"flex","orientation":"vertical"}} -->
<div class="wp-block-group"><!-- wp:site-title /-->
Expand All @@ -44,7 +38,8 @@

<!-- wp:column {"verticalAlignment":"center","width":"25%","style":{"spacing":{"margin":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}}}} -->
<div class="wp-block-column is-vertically-aligned-center" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;flex-basis:25%"><!-- wp:paragraph -->
<p><?php echo __('Explore the style variations available. Go to <strong>Styles</strong> &gt; <strong>Browse styles</strong>.', 'inversum');?></p>
<p><?php /* Translators: 1. is the start of a 'strong' HTML element, 2. is the end of a 'strong' HTML element, 3. is the start of a 'strong' HTML element, 4. is the end of a 'strong' HTML element */
echo sprintf( esc_html__( 'Explore the style variations available. Go to %1$sStyles%2$s > %3$sBrowse styles%4$s.', 'inversum' ), '<strong>', '</strong>', '<strong>', '</strong>' ); ?></p>
<!-- /wp:paragraph --></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div>
Expand Down
Loading

0 comments on commit dc96f04

Please sign in to comment.