Skip to content

Commit

Permalink
Version 0.2.1 - Fixes usage of banners function.
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuswetah committed Nov 22, 2022
1 parent 422e393 commit deda57f
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion taina/assets/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Description: A full-site-editing block theme for WordPress. Tainá has emerged a
Requires at least: 6.0
Tested up to: 6.1
Requires PHP: 7.3
Version: 0.2.0
Version: 0.2.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: taina
Expand Down
18 changes: 9 additions & 9 deletions taina/inc/block-banners.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ function get_header_banner_pattern($title, $args = array()) {
<div class="wp-block-columns alignfull" style="margin-top:0px;margin-bottom:0px;padding-top:0px;padding-right:4.167%;padding-bottom:0px;padding-left:4.167%">
<!-- wp:column {"verticalAlignment":"top","width":"22%","style":{"spacing":{"padding":{"top":"0px","right":"0px","bottom":"0px","left":"0px"},"blockGap":"0px"}}} -->
<div class="wp-block-column is-vertically-aligned-top" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;flex-basis:22%">
<!-- wp:image {"sizeSlug":"large","linkDestination":"none","className":"is-style-default"} -->
<figure class="wp-block-image size-large is-style-default">' . $cover . '</figure>
<!-- wp:image {"linkDestination":"none"} -->
<figure class="wp-block-image">' . $thumbnail . '</figure>
<!-- /wp:image -->
</div>
<!-- /wp:column -->
Expand All @@ -46,12 +46,12 @@ function get_header_banner_pattern($title, $args = array()) {
<div class="wp-block-cover has-custom-content-position is-position-top-left" style="padding-top:0px;padding-right:0%;padding-bottom:0px;padding-left:0px"><span aria-hidden="true" class="wp-block-cover__background has-background-dim-100 has-background-dim wp-block-cover__gradient-background has-background-gradient" style="background:linear-gradient(180deg,rgba(7,146,227,0) 79%,var(--wp--preset--color--background) 79%)"></span>
<img class="wp-block-cover__image-background" alt="" src="' . $cover_url . '" style="object-position:48% 31%" data-object-fit="cover" data-object-position="48% 31%"/>
<div class="wp-block-cover__inner-container">
<!-- wp:image {"width":754,"height":236,"sizeSlug":"large","linkDestination":"none","className":"is-style-default"} -->
<figure class="wp-block-image size-large is-resized is-style-default">' . $thumbnail . '</figure>
<!-- wp:image {"width":754,"height":236,"sizeSlug":"large","linkDestination":"none","className":"is-resized is-style-default"} -->
<figure class="wp-block-image">' . $cover. '</figure>
<!-- /wp:image -->
<!-- wp:group {"style":{"spacing":{"blockGap":"1em"}},"backgroundColor":"background-alt","textColor":"foreground-alt","layout":{"inherit":true}} -->
<div class="wp-block-group has-background-alt-background-color has-background has-foreground-alt-color has-text-color">
<!-- wp:group {"style":{"spacing":{"blockGap":"1em","padding":{"top":"42px","bottom":"42px","right":"4.167vw","left":"4.167vw"}}},"backgroundColor":"background-alt","textColor":"foreground-alt","layout":{"inherit":true,"type":"constrained"}} -->
<div class="wp-block-group has-foreground-alt-color has-background-alt-background-color has-text-color has-background" style="padding-top:42px;padding-right:4.167vw;padding-bottom:42px;padding-left:4.167vw">
' . (
$title ?
'<!-- wp:heading {"textColor":"primary"} -->
Expand Down Expand Up @@ -104,8 +104,8 @@ function get_header_banner_pattern($title, $args = array()) {
<!-- /wp:column -->
<!-- wp:column {"width":""} -->
<div class="wp-block-column">
<!-- wp:group {"style":{"spacing":{"blockGap":"1em"}},"backgroundColor":"background-alt","textColor":"foreground-alt","layout":{"inherit":false}} -->
<div class="wp-block-group has-background-alt-background-color has-background has-foreground-alt-color has-text-color">
<!-- wp:group {"style":{"spacing":{"blockGap":"1em","padding":{"top":"42px","bottom":"42px","right":"4.167vw","left":"4.167vw"}}},"backgroundColor":"background-alt","textColor":"foreground-alt","layout":{"inherit":true,"type":"constrained"}} -->
<div class="wp-block-group has-foreground-alt-color has-background-alt-background-color has-text-color has-background" style="padding-top:42px;padding-right:4.167vw;padding-bottom:42px;padding-left:4.167vw">
' . (
$title ?
'<!-- wp:heading {"textColor":"primary"} -->
Expand Down
4 changes: 2 additions & 2 deletions taina/inc/patterns/collection-header-thumb-cover.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
*/
$title = esc_html__( 'Brazilian Original People', 'taina' );
$description = esc_html('Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.');
$thumbnail = '<img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/ilustracao_de_povos_indigenas.jpg" alt="' . esc_attr__( 'Illustration of three Brazilian Original People from different tribes. The first one has vertical lines painted over his body and carries a spear with a human head on top of it. The second one is a woman with a baby in her arms. The last one has what looks like a rowing in his arms. His skin has paintings that reming a camouflage for the forest.', 'taina' ) . '" width="754" height="236"/>';
$cover = '<img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/povos_indigenas_do_brasil.jpg" alt="' . esc_attr__( 'Facial illustration of three Brazilian Original People from different tribes. The first one appears twice, showing large adornments in his pout and ears. The second one does not carry any ornament. The third one has a sort of straw hat.', 'taina' ) . '"/>';
$thumbnail = '<img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/povos_indigenas_do_brasil.jpg" alt="' . esc_attr__( 'Facial illustration of three Brazilian Original People from different tribes. The first one appears twice, showing large adornments in his pout and ears. The second one does not carry any ornament. The third one has a sort of straw hat.', 'taina' ) . '"/>';
$cover = '<img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/ilustracao_de_povos_indigenas.jpg" alt="' . esc_attr__( 'Illustration of three Brazilian Original People from different tribes. The first one has vertical lines painted over his body and carries a spear with a human head on top of it. The second one is a woman with a baby in her arms. The last one has what looks like a rowing in his arms. His skin has paintings that reming a camouflage for the forest.', 'taina' ) . '" width="754" height="236"/>';
$cover_url = esc_url( get_template_directory_uri() ) . '/assets/images/ilustracao_de_povos_indigenas.jpg';

return array(
Expand Down
4 changes: 2 additions & 2 deletions taina/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion taina/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "taina",
"version": "0.2.0",
"version": "0.2.1",
"description": "A block theme for WordPress & Tainacan.",
"main": "style.css",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion taina/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Contributors: tainacan, wetah, vnmedeiros, daltonmartins, leogermani, ravipassos, omarceloavila
Requires at least: WordPress 6.0
Tested up to: WordPress 6.1
Version: 0.2.0
Version: 0.2.1
Requires PHP: 7.3
Stable tag: trunk
License: GNU General Public License v3
Expand Down
2 changes: 1 addition & 1 deletion taina/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion taina/style.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit deda57f

Please sign in to comment.