Skip to content

Commit

Permalink
release: fixes
Browse files Browse the repository at this point in the history
* fix content links visual difference
* add source files for minified scripts and styles to dist zip file
* escape alt attribute of image in dashboard notice
* handle site title size in theme.json
* fix block templates not wrapped into main tag
  • Loading branch information
abaicus authored Dec 20, 2022
2 parents 2823e60 + e73f8c0 commit c6a7756
Show file tree
Hide file tree
Showing 15 changed files with 382 additions and 216 deletions.
3 changes: 0 additions & 3 deletions .distignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ composer.json
composer.lock
themeisle.enc

assets/css/src
assets/js/src

.idea
vendor/codeinwp/themeisle-sdk/src/Modules/Dashboard_widget.php
**/*.css.map
Expand Down
1 change: 0 additions & 1 deletion assets/css/src/blocks/_main.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@import "site-title";
@import "image";
@import "separator";
@import "post-terms";
Expand Down
7 changes: 0 additions & 7 deletions assets/css/src/blocks/_site-title.scss

This file was deleted.

2 changes: 1 addition & 1 deletion inc/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function render_welcome_notice() {
$notice_html .= '<button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button>';
$notice_html .= '<div class="notice-content">';

$notice_html .= '<img class="otter-preview" src="' . esc_url( Assets_Manager::get_image_url( 'welcome-notice.png' ) ) . '" alt="' . __( 'Otter Blocks preview', 'fork' ) . '"/>';
$notice_html .= '<img class="otter-preview" src="' . esc_url( Assets_Manager::get_image_url( 'welcome-notice.png' ) ) . '" alt="' . esc_attr__( 'Otter Blocks preview', 'fork' ) . '"/>';

$notice_html .= '<div class="notice-copy">';

Expand Down
File renamed without changes.
13 changes: 11 additions & 2 deletions parts/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,22 @@
<div class="wp-block-group alignwide" style="border-bottom-width:2px;padding-top:24px;padding-bottom:24px">
<!-- wp:group {"className":"alignwide","layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} -->
<div class="wp-block-group alignwide">
<!-- wp:site-title {"style":{"typography":{"textTransform":"uppercase"}},"fontSize":"large"} /-->
<!-- wp:site-title {"style":{"typography":{"textTransform":"uppercase"}}} /-->

<!-- wp:navigation {"layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"right"},"style":{"spacing":{}}} -->
<!-- wp:navigation {"layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"right"}} -->
<!-- wp:navigation-link {"label":"Home","url":"#","kind":"custom","isTopLevelLink":true} /-->
<!-- wp:navigation-link {"label":"Patterns","url":"#","kind":"custom","isTopLevelLink":true} /-->
<!-- wp:navigation-link {"label":"Blog","url":"#","kind":"custom","isTopLevelLink":true} /-->
<!-- wp:navigation-link {"label":"Contact","url":"#","kind":"custom","isTopLevelLink":true} /-->

<!-- wp:social-links {"iconColor":"ti-fg","iconColorValue":"#202020","className":"is-style-logos-only","layout":{"type":"flex","justifyContent":"left","orientation":"horizontal","flexWrap":"nowrap"}} -->
<ul class="wp-block-social-links has-icon-color is-style-logos-only">
<!-- wp:social-link {"url":"#","service":"facebook"} /-->
<!-- wp:social-link {"url":"#","service":"instagram"} /-->
<!-- wp:social-link {"url":"#","service":"twitter"} /-->
</ul>
<!-- /wp:social-links -->

<!-- /wp:navigation -->
</div>
<!-- /wp:group -->
Expand Down
Empty file removed styles/.gitkeep
Empty file.
52 changes: 35 additions & 17 deletions templates/404.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,35 @@
<!-- wp:cover {"overlayColor":"ti-bg-inv","minHeight":100,"minHeightUnit":"vh"} -->
<div class="wp-block-cover" style="min-height:100vh"><span aria-hidden="true" class="wp-block-cover__background has-ti-bg-inv-background-color has-background-dim-100 has-background-dim"></span><div class="wp-block-cover__inner-container"><!-- wp:group {"style":{"spacing":{"padding":{"top":"64px","bottom":"64px"},"blockGap":"40px"}},"textColor":"ti-bg","layout":{"type":"constrained"}} -->
<div class="wp-block-group has-ti-bg-color has-text-color" style="padding-top:64px;padding-bottom:64px"><!-- wp:paragraph {"align":"center","style":{"typography":{"lineHeight":"1"}},"fontSize":"huge"} -->
<p class="has-text-align-center has-huge-font-size" style="line-height:1">404- Page not Found</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph {"align":"center","fontSize":"large"} -->
<p class="has-text-align-center has-large-font-size">Unfortunately the page was not found. Click the button below to return to the homepage</p>
<!-- /wp:paragraph -->

<!-- wp:buttons {"layout":{"type":"flex","justifyContent":"center"}} -->
<div class="wp-block-buttons"><!-- wp:button -->
<div class="wp-block-button"><a class="wp-block-button__link wp-element-button" href="#home">Return to Homepage</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons --></div>
<!-- /wp:group --></div></div>
<!-- /wp:cover -->
<!-- wp:group {"tagName":"main","style":{"spacing":{"padding":{"top":"0","right":"0","bottom":"0","left":"0"},"blockGap":"0","margin":{"top":"0","bottom":"0"}}}} -->
<main class="wp-block-group"
style="margin-top:0;margin-bottom:0;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0">
<!-- wp:cover {"overlayColor":"ti-bg-inv","minHeight":100,"minHeightUnit":"vh","align":"full"} -->
<div class="wp-block-cover alignfull" style="min-height:100vh">
<span aria-hidden="true"
class="wp-block-cover__background has-ti-bg-inv-background-color has-background-dim-100 has-background-dim"></span>
<div class="wp-block-cover__inner-container">
<!-- wp:group {"style":{"spacing":{"padding":{"top":"64px","bottom":"64px"},"blockGap":"40px"}},"textColor":"ti-bg","layout":{"type":"constrained"}} -->
<div class="wp-block-group has-ti-bg-color has-text-color" style="padding-top:64px;padding-bottom:64px">
<!-- wp:paragraph {"align":"center","style":{"typography":{"lineHeight":"1"}},"fontSize":"huge"} -->
<p class="has-text-align-center has-huge-font-size" style="line-height:1">404 - Page not Found</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph {"align":"center","fontSize":"large"} -->
<p class="has-text-align-center has-large-font-size">Unfortunately the page was not found. Click the
button below to return to the homepage</p>
<!-- /wp:paragraph -->

<!-- wp:buttons {"layout":{"type":"flex","justifyContent":"center"}} -->
<div class="wp-block-buttons">
<!-- wp:button -->
<div class="wp-block-button">
<a class="wp-block-button__link wp-element-button" href="/">Return to Homepage</a>
</div>
<!-- /wp:button -->
</div>
<!-- /wp:buttons -->
</div>
<!-- /wp:group -->
</div>
</div>
<!-- /wp:cover -->
</main>
<!-- /wp:group -->
98 changes: 56 additions & 42 deletions templates/archive.html
Original file line number Diff line number Diff line change
@@ -1,53 +1,67 @@
<!-- wp:template-part {"slug":"header","theme":"fork","tagName":"header"} /-->
<!-- wp:group {"tagName":"main","style":{"spacing":{"padding":{"top":"0","right":"0","bottom":"0","left":"0"},"blockGap":"0","margin":{"top":"0","bottom":"0"}}}} -->
<main class="wp-block-group"
style="margin-top:0;margin-bottom:0;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0">
<!-- wp:group {"style":{"spacing":{"padding":{"top":"64px","bottom":"64px","right":"0px","left":"0px"},"margin":{"top":"0px","bottom":"0px"},"blockGap":"0px"}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group"
style="margin-top:0px;margin-bottom:0px;padding-top:64px;padding-right:0px;padding-bottom:64px;padding-left:0px">
<!-- wp:query-title {"type":"archive","showPrefix":false,"align":"wide"} /-->
</div>
<!-- /wp:group -->

<!-- wp:group {"style":{"spacing":{"padding":{"top":"64px","bottom":"64px","right":"0px","left":"0px"},"margin":{"top":"0px","bottom":"0px"},"blockGap":"0px"}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="margin-top:0px;margin-bottom:0px;padding-top:64px;padding-right:0px;padding-bottom:64px;padding-left:0px"><!-- wp:query-title {"type":"archive","showPrefix":false,"align":"wide"} /--></div>
<!-- /wp:group -->
<!-- wp:group {"style":{"spacing":{"padding":{"top":"64px","bottom":"64px"},"margin":{"top":"0px","bottom":"0px"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="margin-top:0px;margin-bottom:0px;padding-top:64px;padding-bottom:64px">
<!-- wp:query {"queryId":4,"query":{"perPage":"4","pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true},"align":"wide","layout":{"type":"default"}} -->
<div class="wp-block-query alignwide"><!-- wp:post-template {"align":"wide"} -->
<!-- wp:group {"style":{"spacing":{"padding":{"right":"0px","left":"0px"},"margin":{"bottom":"0","top":"0"}}},"layout":{"type":"default"}} -->
<div class="wp-block-group" style="margin-top:0;margin-bottom:0;padding-right:0px;padding-left:0px">
<!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column {"verticalAlignment":"center","width":"25%"} -->
<div class="wp-block-column is-vertically-aligned-center" style="flex-basis:25%">
<!-- wp:post-date {"textAlign":"left"} /--></div>
<!-- /wp:column -->

<!-- wp:group {"style":{"spacing":{"padding":{"top":"64px","bottom":"64px"},"margin":{"top":"0px","bottom":"0px"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="margin-top:0px;margin-bottom:0px;padding-top:64px;padding-bottom:64px"><!-- wp:query {"queryId":4,"query":{"perPage":"4","pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true},"align":"wide","layout":{"type":"default"}} -->
<div class="wp-block-query alignwide"><!-- wp:post-template {"align":"wide"} -->
<!-- wp:group {"style":{"spacing":{"padding":{"right":"0px","left":"0px"},"margin":{"bottom":"0","top":"0"}}},"layout":{"type":"default"}} -->
<div class="wp-block-group" style="margin-top:0;margin-bottom:0;padding-right:0px;padding-left:0px"><!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column {"verticalAlignment":"center","width":"25%"} -->
<div class="wp-block-column is-vertically-aligned-center" style="flex-basis:25%"><!-- wp:post-date {"textAlign":"left"} /--></div>
<!-- /wp:column -->

<!-- wp:column {"width":"100%"} -->
<div class="wp-block-column" style="flex-basis:100%"><!-- wp:post-title {"textAlign":"left","isLink":true,"fontSize":"x-large"} /--></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->

<!-- wp:separator {"className":"is-style-wide"} -->
<hr class="wp-block-separator has-alpha-channel-opacity is-style-wide"/>
<!-- /wp:separator --></div>
<!-- /wp:group -->
<!-- /wp:post-template -->
<!-- wp:column {"width":"100%"} -->
<div class="wp-block-column" style="flex-basis:100%">
<!-- wp:post-title {"textAlign":"left","isLink":true,"fontSize":"x-large"} /--></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->

<!-- wp:group {"align":"wide","style":{"spacing":{"margin":{"top":"64px","bottom":"64px"}}}} -->
<div class="wp-block-group alignwide" style="margin-top:64px;margin-bottom:64px"><!-- wp:query-pagination {"textColor":"ti-fg","layout":{"type":"flex","justifyContent":"space-between"}} -->
<!-- wp:query-pagination-previous /-->
<!-- wp:separator {"className":"is-style-wide"} -->
<hr class="wp-block-separator has-alpha-channel-opacity is-style-wide"/>
<!-- /wp:separator --></div>
<!-- /wp:group -->
<!-- /wp:post-template -->

<!-- wp:query-pagination-numbers /-->
<!-- wp:group {"align":"wide","style":{"spacing":{"margin":{"top":"64px","bottom":"64px"}}}} -->
<div class="wp-block-group alignwide" style="margin-top:64px;margin-bottom:64px">
<!-- wp:query-pagination {"textColor":"ti-fg","layout":{"type":"flex","justifyContent":"space-between"}} -->
<!-- wp:query-pagination-previous /-->

<!-- wp:query-pagination-next /-->
<!-- /wp:query-pagination --></div>
<!-- /wp:group -->
<!-- wp:query-pagination-numbers /-->

<!-- wp:query-no-results -->
<!-- wp:paragraph {"align":"center","placeholder":"Add text or blocks that will display when the query returns no results.","backgroundColor":"ti-bg-inv","textColor":"ti-fg-alt"} -->
<p class="has-text-align-center has-ti-fg-alt-color has-ti-bg-inv-background-color has-text-color has-background">Unfortunately no posts were found</p>
<!-- /wp:paragraph -->
<!-- /wp:query-no-results --></div>
<!-- /wp:query --></div>
<!-- /wp:group -->
<!-- wp:query-pagination-next /-->
<!-- /wp:query-pagination --></div>
<!-- /wp:group -->

<!-- wp:group {"style":{"spacing":{"padding":{"top":"64px","bottom":"64px"},"margin":{"top":"0px","bottom":"0px"}}},"backgroundColor":"ti-bg-inv","textColor":"ti-fg-alt","layout":{"type":"constrained"}} -->
<div class="wp-block-group has-ti-fg-alt-color has-ti-bg-inv-background-color has-text-color has-background" style="margin-top:0px;margin-bottom:0px;padding-top:64px;padding-bottom:64px"><!-- wp:heading {"textAlign":"center"} -->
<h2 class="has-text-align-center">Search for an article</h2>
<!-- /wp:heading -->
<!-- wp:query-no-results -->
<!-- wp:paragraph {"align":"center","placeholder":"Add text or blocks that will display when the query returns no results.","backgroundColor":"ti-bg-inv","textColor":"ti-fg-alt"} -->
<p class="has-text-align-center has-ti-fg-alt-color has-ti-bg-inv-background-color has-text-color has-background">Unfortunately no posts were found</p>
<!-- /wp:paragraph -->
<!-- /wp:query-no-results --></div>
<!-- /wp:query --></div>
<!-- /wp:group -->

<!-- wp:search {"label":"Search","showLabel":false,"buttonText":"Search"} /--></div>
<!-- /wp:group -->
<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"64px","bottom":"64px"},"margin":{"top":"0px","bottom":"0px"}}},"backgroundColor":"ti-bg-inv","textColor":"ti-fg-alt","layout":{"type":"constrained"}} -->
<div class="wp-block-group alignfull has-ti-fg-alt-color has-ti-bg-inv-background-color has-text-color has-background"
style="margin-top:0px;margin-bottom:0px;padding-top:64px;padding-bottom:64px">
<!-- wp:heading {"textAlign":"center"} -->
<h2 class="has-text-align-center">Search for an article</h2>
<!-- /wp:heading -->
<!-- wp:search {"label":"Search","showLabel":false,"buttonText":"Search"} /-->
</div>
<!-- /wp:group -->

</main>
<!-- /wp:group -->
<!-- wp:template-part {"slug":"footer","theme":"fork","tagName":"footer"} /-->
21 changes: 14 additions & 7 deletions templates/front-page.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
<!-- wp:template-part {"slug":"header","theme":"fork","tagName":"header"} /-->

<!-- wp:pattern {"slug":"fork/front-page-hero"} /-->
<!-- wp:pattern {"slug":"fork/columns-with-icons"} /-->
<!-- wp:group {"tagName":"main","style":{"spacing":{"padding":{"top":"0","right":"0","bottom":"0","left":"0"},"blockGap":"0","margin":{"top":"0","bottom":"0"}}}} -->
<main class="wp-block-group"
style="margin-top:0;margin-bottom:0;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0">

<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"64px","bottom":"64px"},"margin":{"top":"0px","bottom":"0px"},"blockGap":"64px"}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group alignfull" style="margin-top:0px;margin-bottom:0px;padding-top:64px;padding-bottom:64px">
<!-- wp:post-content /-->
</div>
<!-- wp:pattern {"slug":"fork/front-page-hero"} /-->
<!-- wp:pattern {"slug":"fork/columns-with-icons"} /-->

<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"64px","bottom":"64px"},"margin":{"top":"0px","bottom":"0px"},"blockGap":"64px"}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group alignfull" style="margin-top:0px;margin-bottom:0px;padding-top:64px;padding-bottom:64px">
<!-- wp:post-content /-->
</div>
<!-- /wp:group -->

<!-- wp:pattern {"slug":"fork/content-with-image-and-button"} /-->
</main>
<!-- /wp:group -->

<!-- wp:pattern {"slug":"fork/content-with-image-and-button"} /-->
<!-- wp:template-part {"slug":"footer","theme":"fork","tagName":"footer"} /-->
Loading

0 comments on commit c6a7756

Please sign in to comment.