From d6d225d8c6355fc440b54fd90400896e68bf9281 Mon Sep 17 00:00:00 2001 From: Everaldo Matias Date: Thu, 22 Aug 2024 10:18:38 -0300 Subject: [PATCH 1/3] Add post_from on block latest-horizontal-posts #185 --- .../src/latest-horizontal-posts/latest-horizontal-posts.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/themes/midia-ninja-theme/library/blocks/src/latest-horizontal-posts/latest-horizontal-posts.php b/themes/midia-ninja-theme/library/blocks/src/latest-horizontal-posts/latest-horizontal-posts.php index 12f8572d..47591ce0 100644 --- a/themes/midia-ninja-theme/library/blocks/src/latest-horizontal-posts/latest-horizontal-posts.php +++ b/themes/midia-ninja-theme/library/blocks/src/latest-horizontal-posts/latest-horizontal-posts.php @@ -87,7 +87,8 @@ function latest_horizontal_posts_callback( $attributes ) { $apv_args = [ 'post_type' => ! empty( $attributes['postType'] ) ? sanitize_text_field( $attributes['postType'] ) : null, 'taxonomy' => ! empty( $attributes['taxonomy'] ) ? $attributes['taxonomy'] : null, - 'terms' => ! empty( $attributes['queryTerms'] ) ? array_map( function( $t ) { return $t['id']; }, $attributes['queryTerms'] ) : null + 'terms' => ! empty( $attributes['queryTerms'] ) ? array_map( function( $t ) { return $t['id']; }, $attributes['queryTerms'] ) : null, + 'post_from' => date( 'Y-m-d', strtotime( '-10 hours' ) ) ]; if ( is_plugin_active( 'co-authors-plus/co-authors-plus.php' ) ) { From 3033d2ba42c02ce8f6bd1ace0e16fa609b3ce5ef Mon Sep 17 00:00:00 2001 From: Everaldo Matias Date: Thu, 22 Aug 2024 10:27:37 -0300 Subject: [PATCH 2/3] Update theme version --- themes/midia-ninja-theme/style.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/midia-ninja-theme/style.css b/themes/midia-ninja-theme/style.css index 72d48a25..8136698a 100644 --- a/themes/midia-ninja-theme/style.css +++ b/themes/midia-ninja-theme/style.css @@ -4,7 +4,7 @@ Theme URI: https://hacklab.com.br/ Author: Hacklab Author URI: https://hacklab.com.br/ Description: Tema base para desenvolvimento de novos sites. -Version: 1.1.38 +Version: 1.1.40 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Tags: black, brown, orange, tan, white, yellow, light, one-column, two-columns, right-sidebar, flexible-width, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, translation-ready From 0eff893a254f141dc4bdb502444b3f72d47aea96 Mon Sep 17 00:00:00 2001 From: burns Date: Thu, 22 Aug 2024 10:58:23 -0300 Subject: [PATCH 3/3] ajuste de layout em singles-opiniao, issue #221 --- .../assets/scss/6-pages/_p-single-opiniao.scss | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/themes/midia-ninja-theme/assets/scss/6-pages/_p-single-opiniao.scss b/themes/midia-ninja-theme/assets/scss/6-pages/_p-single-opiniao.scss index f43e3b0c..720761e3 100644 --- a/themes/midia-ninja-theme/assets/scss/6-pages/_p-single-opiniao.scss +++ b/themes/midia-ninja-theme/assets/scss/6-pages/_p-single-opiniao.scss @@ -11,16 +11,14 @@ max-width: initial; margin: initial; - header { + header.post-header { width: 100%; - margin-left: auto; - margin-right: 120px; - max-width: 768px; + margin: auto; gap: 100px; &.has-thumbnail { gap: 20px; - max-width: none; + max-width: 970px; .post-info { margin-top: 0;